Package com.formdev.flatlaf.ui
Class FlatListCellBorder
-
- All Implemented Interfaces:
Serializable,Border,UIResource
- Direct Known Subclasses:
FlatListCellBorder.Default,FlatListCellBorder.Focused,FlatListCellBorder.Selected
public class FlatListCellBorder extends FlatLineBorder
Cell border forDefaultListCellRenderer(used byJList).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 classFlatListCellBorder.DefaultBorder for unselected cell that uses margins, but does not paint focus indicator border.static classFlatListCellBorder.FocusedBorder for focused unselected cell that uses margins and paints focus indicator border.static classFlatListCellBorder.SelectedBorder for selected cell that uses margins and paints focus indicator border if enabled (List.showCellFocusIndicator=true) and multiple items are selected.
-
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 protectedFlatListCellBorder()
-
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
-
-