Package com.formdev.flatlaf.ui
Class FlatTableCellBorder
-
- All Implemented Interfaces:
Serializable,Border,UIResource
- Direct Known Subclasses:
FlatTableCellBorder.Default,FlatTableCellBorder.Focused,FlatTableCellBorder.Selected
public class FlatTableCellBorder extends FlatLineBorder
Cell border forDefaultTableCellRenderer(used byJTable).Uses separate cell margins from UI defaults to allow easy customizing.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classFlatTableCellBorder.DefaultBorder for unselected cell that uses margins, but does not paint focus indicator border.static classFlatTableCellBorder.FocusedBorder for focused unselected cell that uses margins and paints focus indicator border.static classFlatTableCellBorder.SelectedBorder for selected cell that uses margins and paints focus indicator border if enabled (Table.showCellFocusIndicator=true) or at least one selected cell is editable.
-
Field Summary
Fields Modifier and Type Field Description protected booleanshowCellFocusIndicator-
Fields inherited from class javax.swing.border.EmptyBorder
bottom, left, right, top
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedFlatTableCellBorder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InsetsgetBorderInsets(Component c, Insets insets)ColorgetLineColor()voidpaintBorder(Component c, Graphics g, int x, int y, int width, int height)-
Methods inherited from class com.formdev.flatlaf.ui.FlatLineBorder
getArc, 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
-
-
-
-
Method Detail
-
getBorderInsets
public Insets getBorderInsets(Component c, Insets insets)
- Overrides:
getBorderInsetsin classFlatEmptyBorder
-
getLineColor
public Color getLineColor()
- Overrides:
getLineColorin classFlatLineBorder
-
paintBorder
public void paintBorder(Component c, Graphics g, int x, int y, int width, int height)
- Specified by:
paintBorderin interfaceBorder- Overrides:
paintBorderin classFlatLineBorder
-
-