Class SubstanceTableCellBorder
java.lang.Object
org.pushingpixels.substance.internal.utils.border.SubstanceTableCellBorder
- All Implemented Interfaces:
Border
,UIResource
Table cell border for the Substance look and feel.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected float
Border alpha.protected SubstanceTableUI.TableCellId
protected Insets
Insets ofthis
border.protected SubstanceTableUI
-
Constructor Summary
ConstructorsConstructorDescriptionSubstanceTableCellBorder
(Insets insets, SubstanceTableUI ui, SubstanceTableUI.TableCellId cellId) Creates a new border with the specified insets. -
Method Summary
Modifier and TypeMethodDescriptionboolean
void
paintBorder
(Component c, Graphics g, int x, int y, int width, int height) void
setAlpha
(float alpha) Sets the alpha for this border.
-
Field Details
-
myInsets
Insets ofthis
border. -
ui
-
cellId
-
alpha
protected float alphaBorder alpha.
-
-
Constructor Details
-
SubstanceTableCellBorder
public SubstanceTableCellBorder(Insets insets, SubstanceTableUI ui, SubstanceTableUI.TableCellId cellId) Creates a new border with the specified insets.- Parameters:
insets
- Insets.
-
-
Method Details
-
paintBorder
- Specified by:
paintBorder
in interfaceBorder
-
getBorderInsets
- Specified by:
getBorderInsets
in interfaceBorder
-
isBorderOpaque
public boolean isBorderOpaque()- Specified by:
isBorderOpaque
in interfaceBorder
-
setAlpha
public void setAlpha(float alpha) Sets the alpha for this border.- Parameters:
alpha
- Alpha factor.
-