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.
-
EmptyBorder(Insets)
- Creates an empty border with the specified insets.
-
EmptyBorder(int, int, int, int)
- Creates an empty border with the specified insets.
-
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.
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
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
All Packages Class Hierarchy This Package Previous Next Index