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 float
Border alpha.protected RadianceTableUI.TableCellId
private BladeColorScheme
protected Insets
Insets ofthis
border.protected RadianceTableUI
-
Constructor Summary
ConstructorsConstructorDescriptionRadianceTableCellBorder
(Insets insets, RadianceTableUI ui, RadianceTableUI.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) private void
paintBorderImpl
(JComponent c, Graphics g, int x, int y, int width, int height) Paints border instance for the specified component.void
setAlpha
(float alpha) Sets the alpha for this border.
-
Field Details
-
myInsets
Insets ofthis
border. -
ui
-
cellId
-
alpha
protected float alphaBorder alpha. -
mutableBorderColorScheme
-
-
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:
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.
-