com.jgoodies.forms.factories
Class Borders.EmptyBorder
- Borders
- Border
public static final class Borders.EmptyBorder
implements Border
An empty border that uses 4 instances of
ConstantSize
to define the gaps on all sides.
bottom
public ConstantSize bottom()
Returns this border's bottom size.
- this border's bottom size
getBorderInsets
public Insets getBorderInsets(Component c)
Returns the insets of the border.
c
- the component for which this border insets value applies
isBorderOpaque
public boolean isBorderOpaque()
Returns whether or not the border is opaque. If the border
is opaque, it is responsible for filling in it's own
background when painting.
- false - because the empty border is not opaque
left
public ConstantSize left()
Returns this border's left size.
paintBorder
public void paintBorder(Component c,
Graphics g,
int x,
int y,
int width,
int height)
Paints the border for the specified component with the specified
position and size.
c
- the component for which this border is being paintedg
- the paint graphicsx
- the x position of the painted bordery
- the y position of the painted borderwidth
- the width of the painted borderheight
- the height of the painted border
right
public ConstantSize right()
Returns this border's right size.
top
public ConstantSize top()
Returns this border's top size.
Copyright © 2002-2004 JGoodies Karsten Lentzsch. All Rights Reserved.