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 class
FlatListCellBorder.Default
Border for unselected cell that uses margins, but does not paint focus indicator border.static class
FlatListCellBorder.Focused
Border for focused unselected cell that uses margins and paints focus indicator border.static class
FlatListCellBorder.Selected
Border 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 boolean
showCellFocusIndicator
-
Fields inherited from class javax.swing.border.EmptyBorder
bottom, left, right, top
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
FlatListCellBorder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Insets
getBorderInsets(Component c, Insets insets)
Color
getLineColor()
void
paintBorder(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:
getBorderInsets
in classFlatEmptyBorder
-
getLineColor
public Color getLineColor()
- Overrides:
getLineColor
in classFlatLineBorder
-
paintBorder
public void paintBorder(Component c, Graphics g, int x, int y, int width, int height)
- Specified by:
paintBorder
in interfaceBorder
- Overrides:
paintBorder
in classFlatLineBorder
-
-