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.UIResourceSynthBorder 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.InsetsgetBorderInsets(java.awt.Component c)This default implementation returns a newInsetsinstance where thetop,left,bottom, andrightfields are set to0.java.awt.InsetsgetBorderInsets(java.awt.Component c, java.awt.Insets insets)Reinitializes the insets parameter with this Border's current Insets.booleanisBorderOpaque()This default implementation returns false.voidpaintBorder(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:
paintBorderin interfacejavax.swing.border.Border- Overrides:
paintBorderin classjavax.swing.border.AbstractBorder
-
getBorderInsets
public java.awt.Insets getBorderInsets(java.awt.Component c)
This default implementation returns a newInsetsinstance where thetop,left,bottom, andrightfields are set to0.- Specified by:
getBorderInsetsin interfacejavax.swing.border.Border- Overrides:
getBorderInsetsin classjavax.swing.border.AbstractBorder- Parameters:
c- the component for which this border insets value applies- Returns:
- the new
Insetsobject 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:
getBorderInsetsin classjavax.swing.border.AbstractBorder- 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 interfacejavax.swing.border.Border- Overrides:
isBorderOpaquein classjavax.swing.border.AbstractBorder- Returns:
- false
-
-