Class RadianceTableCellBorder
java.lang.Object
org.pushingpixels.radiance.theming.internal.utils.border.RadianceTableCellBorder
- All Implemented Interfaces:
Border, UIResource
Table cell border for the Radiance look and feel.
- Author:
- Kirill Grouchnikov
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected floatBorder alpha.protected RadianceTableUI.TableCellIdprotected InsetsInsets ofthisborder.protected RadianceTableUI -
Constructor Summary
ConstructorsConstructorDescriptionRadianceTableCellBorder(Insets insets, RadianceTableUI ui, RadianceTableUI.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
-
RadianceTableCellBorder
public RadianceTableCellBorder(Insets insets, RadianceTableUI ui, RadianceTableUI.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.
-