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 floatBorder alpha.protected SubstanceTableUI.TableCellIdprotected InsetsInsets ofthisborder.protected SubstanceTableUI -
Constructor Summary
ConstructorsConstructorDescriptionSubstanceTableCellBorder(Insets insets, SubstanceTableUI ui, SubstanceTableUI.TableCellId cellId) Creates a new border with the specified insets. -
Method Summary
Modifier and TypeMethodDescriptionbooleanvoidpaintBorder(Component c, Graphics g, int x, int y, int width, int height) voidsetAlpha(float alpha) Sets the alpha for this border.
-
Field Details
-
myInsets
Insets ofthisborder. -
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:
paintBorderin interfaceBorder
-
getBorderInsets
- Specified by:
getBorderInsetsin interfaceBorder
-
isBorderOpaque
public boolean isBorderOpaque()- Specified by:
isBorderOpaquein interfaceBorder
-
setAlpha
public void setAlpha(float alpha) Sets the alpha for this border.- Parameters:
alpha- Alpha factor.
-