Class FlatTableCellBorder
- All Implemented Interfaces:
Serializable, Border, UIResource
- Direct Known Subclasses:
FlatTableCellBorder.Default, FlatTableCellBorder.Focused, FlatTableCellBorder.Selected
Cell border for
DefaultTableCellRenderer
(used by JTable).
Uses separate cell margins from UI defaults to allow easy customizing.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBorder for unselected cell that uses margins, but does not paint focus indicator border.static classBorder for focused unselected cell that uses margins and paints focus indicator border.static classBorder for selected cell that uses margins and paints focus indicator border. -
Field Summary
FieldsFields inherited from class EmptyBorder
bottom, left, right, top -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetArc()Returns the (unscaled) arc diameter of the border corners.getBorderInsets(Component c, Insets insets) (package private) static <T> TgetStyleFromTableUI(Component c, Function<FlatTableUI, T> f) Because this border is always shared for all tables, get border specific style from FlatTableUI.voidpaintBorder(Component c, Graphics g, int x, int y, int width, int height) Methods inherited from class FlatLineBorder
getLineThicknessMethods inherited from class FlatEmptyBorder
applyStyleProperty, getBorderInsets, getStyleableValue, getUnscaledBorderInsets, scaleInsetsMethods inherited from class EmptyBorder
isBorderOpaqueMethods inherited from class AbstractBorder
getBaseline, getBaselineResizeBehavior, getBorderInsets, getInteriorRectangle, getInteriorRectangle
-
Field Details
-
showCellFocusIndicator
protected boolean showCellFocusIndicator- Since:
- 2
-
c
-
-
Constructor Details
-
FlatTableCellBorder
protected FlatTableCellBorder()
-
-
Method Details
-
getBorderInsets
- Overrides:
getBorderInsetsin classFlatEmptyBorder
-
getLineColor
- Overrides:
getLineColorin classFlatLineBorder
-
getArc
public int getArc()Description copied from class:FlatLineBorderReturns the (unscaled) arc diameter of the border corners.- Overrides:
getArcin classFlatLineBorder
-
paintBorder
- Specified by:
paintBorderin interfaceBorder- Overrides:
paintBorderin classFlatLineBorder
-
getStyleFromTableUI
Because this border is always shared for all tables, get border specific style from FlatTableUI.
-