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.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected floatBorder alpha.protected RadianceTableUI.TableCellIdprivate BladeContainerColorTokensprotected 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) private voidpaintBorderImpl(JComponent c, Graphics g, int x, int y, int width, int height) Paints border instance for the specified component.voidsetAlpha(float alpha) Sets the alpha for this border.
-
Field Details
-
myInsets
Insets ofthisborder. -
ui
-
cellId
-
alpha
protected float alphaBorder alpha. -
mutableColorTokens
-
-
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
-
paintBorderImpl
Paints border instance for the specified component.- Parameters:
c- The component.g- Graphics context.x- Component left X (in graphics context).y- Component top Y (in graphics context).width- Component width.height- Component height.
-
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.
-