All Packages  Class Hierarchy  This Package  Previous  Next  Index

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.


Constructor Index

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

Method Index

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

Constructors

 o 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
 o EmptyBorder
 public EmptyBorder(Insets insets)
Creates an empty border with the specified insets.

Parameters:
insets - the insets of the border

Methods

 o 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
 o 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
 o isBorderOpaque
 public boolean isBorderOpaque()
Returns whether or not the border is opaque. Returns false by default.

Overrides:
isBorderOpaque in class AbstractBorder

All Packages  Class Hierarchy  This Package  Previous  Next  Index