Package org.jdesktop.swingx.plaf.synth
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 newInsets
instance where thetop
,left
,bottom
, andright
fields are set to0
.getBorderInsets
(Component c, Insets insets) Reinitializes the insets parameter with this Border's current Insets.boolean
This default implementation returns false.void
paintBorder
(Component c, Graphics g, int x, int y, int width, int height) Methods inherited from class javax.swing.border.AbstractBorder
getBaseline, getBaselineResizeBehavior, getInteriorRectangle, getInteriorRectangle
-
Field Details
-
ui
-
insets
-
-
Constructor Details
-
SynthBorder
-
SynthBorder
SynthBorder(SynthUI ui)
-
-
Method Details
-
paintBorder
- Specified by:
paintBorder
in interfaceBorder
- Overrides:
paintBorder
in classAbstractBorder
-
getBorderInsets
This default implementation returns a newInsets
instance where thetop
,left
,bottom
, andright
fields are set to0
.- Specified by:
getBorderInsets
in interfaceBorder
- Overrides:
getBorderInsets
in classAbstractBorder
- Parameters:
c
- the component for which this border insets value applies- Returns:
- the new
Insets
object initialized to 0
-
getBorderInsets
Reinitializes the insets parameter with this Border's current Insets.- Overrides:
getBorderInsets
in classAbstractBorder
- Parameters:
c
- the component for which this border insets value appliesinsets
- the object to be reinitialized- Returns:
- the
insets
object
-
isBorderOpaque
public boolean isBorderOpaque()This default implementation returns false.- Specified by:
isBorderOpaque
in interfaceBorder
- Overrides:
isBorderOpaque
in classAbstractBorder
- Returns:
- false
-