All Packages Class Hierarchy This Package Previous Next Index
Class com.sun.java.swing.border.DefaultBorder
java.lang.Object
|
+----com.sun.java.swing.border.DefaultBorder
- public class DefaultBorder
- extends Object
- implements Border
Object capable of rendering a border.
-
DefaultBorder()
-
-
getBorderInsets()
- This default implementation returns new Insets(0, 0, 0, 0).
-
getInteriorRectangle(Border, int, int, int, int)
- This method returns a rectangle using the arguements minus the
insets of the border.
-
getInteriorRectangle(int, int, int, int)
- This is a convience method that calls the static method.
-
isBorderOpaque()
- This default implementation returns false.
-
paintBorder(Graphics, int, int, int, int)
- This default implementation does no painting.
DefaultBorder
public DefaultBorder()
paintBorder
public void paintBorder(Graphics g,
int x,
int y,
int width,
int height)
- This default implementation does no painting.
getBorderInsets
public Insets getBorderInsets()
- This default implementation returns new Insets(0, 0, 0, 0).
isBorderOpaque
public boolean isBorderOpaque()
- This default implementation returns false.
getInteriorRectangle
public Rectangle getInteriorRectangle(int x,
int y,
int width,
int height)
- This is a convience method that calls the static method.
getInteriorRectangle
public static Rectangle getInteriorRectangle(Border b,
int x,
int y,
int width,
int height)
- This method returns a rectangle using the arguements minus the
insets of the border. This is useful for determining the area
that components should draw in that will not intersect the border.
All Packages Class Hierarchy This Package Previous Next Index