Package com.formdev.flatlaf.ui
Class FlatTableHeaderBorder
- java.lang.Object
-
- javax.swing.border.AbstractBorder
-
- javax.swing.border.EmptyBorder
-
- javax.swing.plaf.BorderUIResource.EmptyBorderUIResource
-
- com.formdev.flatlaf.ui.FlatEmptyBorder
-
- com.formdev.flatlaf.ui.FlatTableHeaderBorder
-
- All Implemented Interfaces:
Serializable
,Border
,UIResource
public class FlatTableHeaderBorder extends FlatEmptyBorder
Cell border forsun.swing.table.DefaultTableCellHeaderRenderer
(used byJTableHeader
).Uses separate cell margins from UI defaults to allow easy customizing.
- Since:
- 1.2
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected Color
bottomSeparatorColor
protected Color
separatorColor
protected boolean
showTrailingVerticalLine
-
Fields inherited from class javax.swing.border.EmptyBorder
bottom, left, right, top
-
-
Constructor Summary
Constructors Constructor Description FlatTableHeaderBorder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Insets
getBorderInsets(Component c, Insets insets)
protected boolean
hideTrailingVerticalLine(JTableHeader header)
protected boolean
isDraggedColumn(JTableHeader header, int x)
void
paintBorder(Component c, Graphics g, int x, int y, int width, int height)
-
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
-
paintBorder
public void paintBorder(Component c, Graphics g, int x, int y, int width, int height)
- Specified by:
paintBorder
in interfaceBorder
- Overrides:
paintBorder
in classEmptyBorder
-
isDraggedColumn
protected boolean isDraggedColumn(JTableHeader header, int x)
-
hideTrailingVerticalLine
protected boolean hideTrailingVerticalLine(JTableHeader header)
-
-