Class RadianceTextComponentBorder
java.lang.Object
org.pushingpixels.radiance.theming.internal.utils.border.RadianceTextComponentBorder
- All Implemented Interfaces:
Border, UIResource
Text component border for the Radiance look and feel.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate BladeContainerColorTokensprotected InsetsInsets ofthisborder. -
Constructor Summary
ConstructorsConstructorDescriptionRadianceTextComponentBorder(Insets insets) 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 xOffset, int yOffset, int width, int height, boolean isEnabled) Paints border instance for the specified component.
-
Field Details
-
myInsets
Insets ofthisborder. -
mutableContainerTokens
-
-
Constructor Details
-
RadianceTextComponentBorder
Creates a new border with the specified insets.- Parameters:
insets- Insets.
-
-
Method Details
-
paintBorderImpl
private void paintBorderImpl(JComponent c, Graphics g, int xOffset, int yOffset, int width, int height, boolean isEnabled) Paints border instance for the specified component.- Parameters:
c- The component.g- Graphics context.width- Component width.height- Component height.isEnabled- Component enabled status.x- Component left X (in graphics context).y- Component top Y (in graphics context).
-
paintBorder
- Specified by:
paintBorderin interfaceBorder
-
getBorderInsets
- Specified by:
getBorderInsetsin interfaceBorder
-
isBorderOpaque
public boolean isBorderOpaque()- Specified by:
isBorderOpaquein interfaceBorder
-