| java.lang.Object javax.swing.border.AbstractBorder javax.swing.border.EmptyBorder
All known Subclasses: javax.swing.border.MatteBorder,
EmptyBorder | public class EmptyBorder extends AbstractBorder implements Serializable(Code) | | 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 .
version: 1.33 05/05/07 author: David Kloba |
Constructor Summary | |
public | EmptyBorder(int top, int left, int bottom, int right) Creates an empty border with the specified insets. | public | EmptyBorder(Insets borderInsets) Creates an empty border with the specified insets. |
leftrighttopbottom | protected int leftrighttopbottom(Code) | | |
EmptyBorder | public EmptyBorder(int top, int left, int bottom, int right)(Code) | | Creates an empty border with the specified insets.
Parameters: top - the top inset of the border Parameters: left - the left inset of the border Parameters: bottom - the bottom inset of the border Parameters: right - the right inset of the border |
EmptyBorder | public EmptyBorder(Insets borderInsets)(Code) | | Creates an empty border with the specified insets.
Parameters: borderInsets - the insets of the border |
getBorderInsets | public Insets getBorderInsets(Component c)(Code) | | Returns the insets of the border.
Parameters: c - the component for which this border insets value applies since: 1.3 |
getBorderInsets | public Insets getBorderInsets(Component c, Insets insets)(Code) | | Reinitialize the insets parameter with this Border's current Insets.
Parameters: c - the component for which this border insets value applies Parameters: insets - the object to be reinitialized |
getBorderInsets | public Insets getBorderInsets()(Code) | | Returns the insets of the border.
since: 1.3 |
isBorderOpaque | public boolean isBorderOpaque()(Code) | | Returns whether or not the border is opaque.
Returns false by default.
|
paintBorder | public void paintBorder(Component c, Graphics g, int x, int y, int width, int height)(Code) | | Does no drawing by default.
|
Methods inherited from javax.swing.border.AbstractBorder | public int getBaseline(Component c, int width, int height)(Code)(Java Doc) public Component.BaselineResizeBehavior getBaselineResizeBehavior(Component c)(Code)(Java Doc) public Insets getBorderInsets(Component c)(Code)(Java Doc) public Insets getBorderInsets(Component c, Insets insets)(Code)(Java Doc) public Rectangle getInteriorRectangle(Component c, int x, int y, int width, int height)(Code)(Java Doc) public static Rectangle getInteriorRectangle(Component c, Border b, int x, int y, int width, int height)(Code)(Java Doc) public boolean isBorderOpaque()(Code)(Java Doc) static boolean isLeftToRight(Component c)(Code)(Java Doc) public void paintBorder(Component c, Graphics g, int x, int y, int width, int height)(Code)(Java Doc)
|
|
|