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 classBorder for unselected cell that uses margins, but does not paint focus indicator border.static classBorder for focused unselected cell that uses margins and paints focus indicator border.static classBorder 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 EmptyBorder
bottom, left, right, top -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetBorderInsets(Component c, Insets insets) (package private) static <T> TgetStyleFromListUI(Component c, Function<FlatListUI, T> f) Because this border is always shared for all lists, get border specific style from FlatListUI.voidpaintBorder(Component c, Graphics g, int x, int y, int width, int height) Methods inherited from class FlatLineBorder
getArc, getLineThicknessMethods inherited from class FlatEmptyBorder
applyStyleProperty, getBorderInsets, getStyleableValue, getUnscaledBorderInsets, scaleInsetsMethods inherited from class EmptyBorder
isBorderOpaqueMethods inherited from class AbstractBorder
getBaseline, getBaselineResizeBehavior, getBorderInsets, getInteriorRectangle, getInteriorRectangle
-
Field Details
-
showCellFocusIndicator
protected boolean showCellFocusIndicator- Since:
- 2
-
c
-
-
Constructor Details
-
FlatListCellBorder
protected FlatListCellBorder()
-
-
Method Details
-
getBorderInsets
- Overrides:
getBorderInsetsin classFlatEmptyBorder
-
getLineColor
- Overrides:
getLineColorin classFlatLineBorder
-
paintBorder
- Specified by:
paintBorderin interfaceBorder- Overrides:
paintBorderin classFlatLineBorder
-
getStyleFromListUI
Because this border is always shared for all lists, get border specific style from FlatListUI.
-