Package com.jgoodies.forms.factories
Class Borders.EmptyBorder
- java.lang.Object
-
- javax.swing.border.AbstractBorder
-
- com.jgoodies.forms.factories.Borders.EmptyBorder
-
- All Implemented Interfaces:
java.io.Serializable,javax.swing.border.Border
- Enclosing class:
- Borders
public static final class Borders.EmptyBorder extends javax.swing.border.AbstractBorderAn empty border that uses 4 instances ofConstantSizeto define the top, left, bottom and right gap.- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConstantSizebottom()Returns this border's bottom size.java.awt.InsetsgetBorderInsets(java.awt.Component c)Returns the insets of the border.java.awt.InsetsgetBorderInsets(java.awt.Component c, java.awt.Insets insets)Returns the insets of the border.ConstantSizeleft()Returns this border's left size.ConstantSizeright()Returns this border's right size.ConstantSizetop()Returns this border's top size.
-
-
-
Method Detail
-
getBorderInsets
public java.awt.Insets getBorderInsets(java.awt.Component c, java.awt.Insets insets)Returns the insets of the border.- Overrides:
getBorderInsetsin classjavax.swing.border.AbstractBorder- Parameters:
c- the component for which this border insets value appliesinsets- the insets to be reinitialized- Returns:
- the
insetsobject
-
getBorderInsets
public java.awt.Insets getBorderInsets(java.awt.Component c)
Returns the insets of the border.- 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 border's Insets
-
top
public ConstantSize top()
Returns this border's top size.- Returns:
- this border's top size
-
left
public ConstantSize left()
Returns this border's left size.- Returns:
- this border's left size
-
bottom
public ConstantSize bottom()
Returns this border's bottom size.- Returns:
- this border's bottom size
-
right
public ConstantSize right()
Returns this border's right size.- Returns:
- this border's right size
-
-