Home » openjdk-7 » javax » swing » border » [javadoc | source]
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:
    TiledMatteBorder, MatteBorder, RolloverMarginBorder, BasicBorder, PanelBorder, RolloverMarginBorder, EmptyBorderUIResource, 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     
Constructor:
 public EmptyBorder(Insets borderInsets) 
    Creates an empty border with the specified insets.
    Parameters:
    borderInsets - the insets of the border
 public EmptyBorder(int top,
    int left,
    int bottom,
    int right) 
Method from javax.swing.border.EmptyBorder Summary:
getBorderInsets,   getBorderInsets,   isBorderOpaque,   paintBorder
Methods from javax.swing.border.AbstractBorder:
getBaseline,   getBaselineResizeBehavior,   getBorderInsets,   getBorderInsets,   getInteriorRectangle,   getInteriorRectangle,   isBorderOpaque,   isLeftToRight,   paintBorder
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() 
    Returns the insets of the border.
 public Insets getBorderInsets(Component c,
    Insets insets) 
    Reinitialize the insets parameter with this Border's current Insets.
 public boolean isBorderOpaque() 
    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.