Class SynthBorder
java.lang.Object
javax.swing.border.AbstractBorder
org.jdesktop.swingx.plaf.synth.SynthBorder
- All Implemented Interfaces:
Serializable, Border, UIResource
SynthBorder is a border that delegates to a Painter. The Insets
are determined at construction time.
Copied from core
- Version:
- 1.15, 11/30/06
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThis default implementation returns a newInsetsinstance where thetop,left,bottom, andrightfields are set to0.getBorderInsets(Component c, Insets insets) Reinitializes the insets parameter with this Border's current Insets.booleanThis default implementation returns false.voidpaintBorder(Component c, Graphics g, int x, int y, int width, int height) Methods inherited from class AbstractBorder
getBaseline, getBaselineResizeBehavior, getInteriorRectangle, getInteriorRectangle
-
Field Details
-
ui
-
insets
-
-
Constructor Details
-
SynthBorder
-
SynthBorder
SynthBorder(SynthUI ui)
-
-
Method Details
-
paintBorder
- Specified by:
paintBorderin interfaceBorder- Overrides:
paintBorderin classAbstractBorder
-
getBorderInsets
This default implementation returns a newInsetsinstance where thetop,left,bottom, andrightfields are set to0.- Specified by:
getBorderInsetsin interfaceBorder- Overrides:
getBorderInsetsin classAbstractBorder- Parameters:
c- the component for which this border insets value applies- Returns:
- the new
Insetsobject initialized to 0
-
getBorderInsets
Reinitializes the insets parameter with this Border's current Insets.- Overrides:
getBorderInsetsin classAbstractBorder- Parameters:
c- the component for which this border insets value appliesinsets- the object to be reinitialized- Returns:
- the
insetsobject
-
isBorderOpaque
public boolean isBorderOpaque()This default implementation returns false.- Specified by:
isBorderOpaquein interfaceBorder- Overrides:
isBorderOpaquein classAbstractBorder- Returns:
- false
-