javax.swing.border
public class: EmptyBorder [javadoc |
source]
java.lang.Object
javax.swing.border.AbstractBorder
javax.swing.border.EmptyBorder
All Implemented Interfaces:
Serializable, Border
Direct Known Subclasses:
RolloverMarginBorder, EmptyBorderUIResource, MatteBorder, BasicBorder, TiledMatteBorder, RolloverMarginBorder, PanelBorder, MatteBorderUIResource
A class which provides an empty, transparent border which
takes up space but does no drawing.
Warning:
Serialized objects of this class will not be compatible with
future Swing releases. The current serialization support is
appropriate for short term storage or RMI between applications running
the same version of Swing. As of 1.4, support for long term storage
of all JavaBeansTM
has been added to the java.beans package.
Please see java.beans.XMLEncoder .
| Field Summary |
|---|
| protected int | left | |
| protected int | right | |
| protected int | top | |
| protected int | bottom | |
| Methods from java.lang.Object: |
|---|
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method from javax.swing.border.EmptyBorder Detail: |
public Insets getBorderInsets() {
return new Insets(top, left, bottom, right);
}
Returns the insets of the border. |
public Insets getBorderInsets(Component c,
Insets insets) {
insets.left = left;
insets.top = top;
insets.right = right;
insets.bottom = bottom;
return insets;
}
Reinitialize the insets parameter with this Border's current Insets. |
public boolean isBorderOpaque() {
return false;
}
Returns whether or not the border is opaque.
Returns false by default. |
public void paintBorder(Component c,
Graphics g,
int x,
int y,
int width,
int height) {
}
Does no drawing by default. |