Package org.jdesktop.swingx.plaf.synth
Class SynthBorder
- java.lang.Object
-
- javax.swing.border.AbstractBorder
-
- org.jdesktop.swingx.plaf.synth.SynthBorder
-
- All Implemented Interfaces:
java.io.Serializable
,javax.swing.border.Border
,javax.swing.plaf.UIResource
class SynthBorder extends javax.swing.border.AbstractBorder implements javax.swing.plaf.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
-
-
Constructor Summary
Constructors Constructor Description SynthBorder(SynthUI ui)
SynthBorder(SynthUI ui, java.awt.Insets insets)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.awt.Insets
getBorderInsets(java.awt.Component c)
This default implementation returns a newInsets
instance where thetop
,left
,bottom
, andright
fields are set to0
.java.awt.Insets
getBorderInsets(java.awt.Component c, java.awt.Insets insets)
Reinitializes the insets parameter with this Border's current Insets.boolean
isBorderOpaque()
This default implementation returns false.void
paintBorder(java.awt.Component c, java.awt.Graphics g, int x, int y, int width, int height)
-
-
-
Field Detail
-
ui
private SynthUI ui
-
insets
private java.awt.Insets insets
-
-
Method Detail
-
paintBorder
public void paintBorder(java.awt.Component c, java.awt.Graphics g, int x, int y, int width, int height)
- Specified by:
paintBorder
in interfacejavax.swing.border.Border
- Overrides:
paintBorder
in classjavax.swing.border.AbstractBorder
-
getBorderInsets
public java.awt.Insets getBorderInsets(java.awt.Component c)
This default implementation returns a newInsets
instance where thetop
,left
,bottom
, andright
fields are set to0
.- Specified by:
getBorderInsets
in interfacejavax.swing.border.Border
- Overrides:
getBorderInsets
in classjavax.swing.border.AbstractBorder
- Parameters:
c
- the component for which this border insets value applies- Returns:
- the new
Insets
object initialized to 0
-
getBorderInsets
public java.awt.Insets getBorderInsets(java.awt.Component c, java.awt.Insets insets)
Reinitializes the insets parameter with this Border's current Insets.- Overrides:
getBorderInsets
in classjavax.swing.border.AbstractBorder
- 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 interfacejavax.swing.border.Border
- Overrides:
isBorderOpaque
in classjavax.swing.border.AbstractBorder
- Returns:
- false
-
-