com.jgoodies.forms.factories

Class Borders.EmptyBorder

public static final class Borders.EmptyBorder extends AbstractBorder

An empty border that uses 4 instances of ConstantSize to define the top, left, bottom and right gap.
Method Summary
ConstantSizebottom()
Returns this border's bottom size.
InsetsgetBorderInsets(Component c, Insets insets)
Returns the insets of the border.
InsetsgetBorderInsets(Component c)
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

bottom

public ConstantSize bottom()
Returns this border's bottom size.

Returns: this border's bottom size

getBorderInsets

public Insets getBorderInsets(Component c, Insets insets)
Returns the insets of the border.

Parameters: c the component for which this border insets value applies insets the insets to be reinitialized

Returns: the insets object

getBorderInsets

public Insets getBorderInsets(Component c)
Returns the insets of the border.

Parameters: c the component for which this border insets value applies

Returns: the border's Insets

left

public ConstantSize left()
Returns this border's left size.

Returns: this border's left size

right

public ConstantSize right()
Returns this border's right size.

Returns: this border's right size

top

public ConstantSize top()
Returns this border's top size.

Returns: this border's top size

Copyright © 2002-2008 JGoodies Karsten Lentzsch. All Rights Reserved.