Package com.formdev.flatlaf.ui
Class FlatListCellBorder
- All Implemented Interfaces:
Serializable
,Border
,UIResource
- Direct Known Subclasses:
FlatListCellBorder.Default
,FlatListCellBorder.Focused
,FlatListCellBorder.Selected
Cell border for
DefaultListCellRenderer
(used by JList
).
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 if enabled (List.showCellFocusIndicator=true) and multiple items are selected. -
Field Summary
FieldsFields inherited from class javax.swing.border.EmptyBorder
bottom, left, right, top
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetBorderInsets
(Component c, Insets insets) (package private) static <T> T
getStyleFromListUI
(Component c, Function<FlatListUI, T> f) Because this border is always shared for all lists, get border specific style from FlatListUI.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
-
Field Details
-
showCellFocusIndicator
protected boolean showCellFocusIndicator- Since:
- 2
-
c
-
-
Constructor Details
-
FlatListCellBorder
protected FlatListCellBorder()
-
-
Method Details
-
getBorderInsets
- Overrides:
getBorderInsets
in classFlatEmptyBorder
-
getLineColor
- Overrides:
getLineColor
in classFlatLineBorder
-
paintBorder
- Specified by:
paintBorder
in interfaceBorder
- Overrides:
paintBorder
in classFlatLineBorder
-
getStyleFromListUI
Because this border is always shared for all lists, get border specific style from FlatListUI.
-