Package com.jgoodies.forms.factories
Class Borders.EmptyBorder
java.lang.Object
javax.swing.border.AbstractBorder
com.jgoodies.forms.factories.Borders.EmptyBorder
- All Implemented Interfaces:
Serializable
,Border
- Enclosing class:
Borders
An empty border that uses 4 instances of
ConstantSize
to define the top, left, bottom and right gap.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionbottom()
Returns this border's bottom size.Returns the insets of the border.getBorderInsets
(Component c, Insets insets) Returns the insets of the border.left()
Returns this border's left size.right()
Returns this border's right size.top()
Returns this border's top size.Methods inherited from class javax.swing.border.AbstractBorder
getBaseline, getBaselineResizeBehavior, getInteriorRectangle, getInteriorRectangle, isBorderOpaque, paintBorder
-
Method Details
-
getBorderInsets
Returns the insets of the border.- Overrides:
getBorderInsets
in classAbstractBorder
- Parameters:
c
- the component for which this border insets value appliesinsets
- the insets to be reinitialized- Returns:
- the
insets
object
-
getBorderInsets
Returns the insets of the border.- Specified by:
getBorderInsets
in interfaceBorder
- Overrides:
getBorderInsets
in classAbstractBorder
- Parameters:
c
- the component for which this border insets value applies- Returns:
- the border's Insets
-
top
Returns this border's top size.- Returns:
- this border's top size
-
left
Returns this border's left size.- Returns:
- this border's left size
-
bottom
Returns this border's bottom size.- Returns:
- this border's bottom size
-
right
Returns this border's right size.- Returns:
- this border's right size
-