Package com.formdev.flatlaf.ui
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 class
Border for unselected cell that uses margins, but does not paint focus indicator border.static class
Border for focused unselected cell that uses margins and paints focus indicator border.static class
Border for selected cell that uses margins and paints focus indicator border. -
Field Summary
FieldsFields inherited from class javax.swing.border.EmptyBorder
bottom, left, right, top
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
getArc()
Returns the (unscaled) arc diameter of the border corners.getBorderInsets
(Component c, Insets insets) (package private) static <T> T
getStyleFromTableUI
(Component c, Function<FlatTableUI, T> f) Because this border is always shared for all tables, get border specific style from FlatTableUI.void
paintBorder
(Component c, Graphics g, int x, int y, int width, int height) Methods inherited from class com.formdev.flatlaf.ui.FlatLineBorder
getLineThickness
Methods inherited from class com.formdev.flatlaf.ui.FlatEmptyBorder
applyStyleProperty, getBorderInsets, getStyleableValue, getUnscaledBorderInsets, scaleInsets
Methods inherited from class javax.swing.border.EmptyBorder
isBorderOpaque
Methods inherited from class javax.swing.border.AbstractBorder
getBaseline, getBaselineResizeBehavior, getBorderInsets, getInteriorRectangle, getInteriorRectangle
-
Field Details
-
showCellFocusIndicator
protected boolean showCellFocusIndicator- Since:
- 2
-
c
-
-
Constructor Details
-
FlatTableCellBorder
protected FlatTableCellBorder()
-
-
Method Details
-
getBorderInsets
- Overrides:
getBorderInsets
in classFlatEmptyBorder
-
getLineColor
- Overrides:
getLineColor
in classFlatLineBorder
-
getArc
public int getArc()Description copied from class:FlatLineBorder
Returns the (unscaled) arc diameter of the border corners.- Overrides:
getArc
in classFlatLineBorder
-
paintBorder
- Specified by:
paintBorder
in interfaceBorder
- Overrides:
paintBorder
in classFlatLineBorder
-
getStyleFromTableUI
Because this border is always shared for all tables, get border specific style from FlatTableUI.
-