Where Am I? Class Hierarchy (JFC) All Classes (JFC)

Class com.sun.java.swing.border.EmptyBorder

java.lang.Object
   |
   +----com.sun.java.swing.border.AbstractBorder
           |
           +----com.sun.java.swing.border.EmptyBorder

public class EmptyBorder
extends AbstractBorder
implements Serializable

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 Swing1.0 applications. It will not be possible to load serialized Swing1.0 objects with future releases of Swing. The JDK1.2 release of Swing will be the compatibility baseline for the serialized form of Swing objects.


Variable Index

bottom
left
right
top

Constructor Index

EmptyBorder(Insets)
Creates an empty border with the specified insets.
EmptyBorder(int, int, int, int)
Creates an empty border with the specified insets.

Method Index

getBorderInsets(Component)
Returns the insets of the border.
isBorderOpaque()
Returns whether or not the border is opaque.
paintBorder(Component, Graphics, int, int, int, int)
Does no drawing by default.

Variables

left
 protected int left
right
 protected int right
top
 protected int top
bottom
 protected int bottom

Constructors

EmptyBorder
 public EmptyBorder(int top,
                    int left,
                    int bottom,
                    int right)
Creates an empty border with the specified insets.

Parameters:
top - the top inset of the border
left - the left inset of the border
bottom - the bottom inset of the border
right - the right inset of the border
EmptyBorder
 public EmptyBorder(Insets insets)
Creates an empty border with the specified insets.

Parameters:
insets - the insets of the border

Methods

paintBorder
 public void paintBorder(Component c,
                         Graphics g,
                         int x,
                         int y,
                         int width,
                         int height)
Does no drawing by default.

Overrides:
paintBorder in class AbstractBorder
getBorderInsets
 public Insets getBorderInsets(Component c)
Returns the insets of the border.

Parameters:
c - the component for which this border insets value applies
Overrides:
getBorderInsets in class AbstractBorder
isBorderOpaque
 public boolean isBorderOpaque()
Returns whether or not the border is opaque. Returns false by default.

Overrides:
isBorderOpaque in class AbstractBorder

Where Am I? Class Hierarchy (JFC) All Classes (JFC)