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.


Constructor Index

 o DefaultBorder()

Method Index

 o getBorderInsets()
This default implementation returns new Insets(0, 0, 0, 0).
 o getInteriorRectangle(Border, int, int, int, int)
This method returns a rectangle using the arguements minus the insets of the border.
 o getInteriorRectangle(int, int, int, int)
This is a convience method that calls the static method.
 o isBorderOpaque()
This default implementation returns false.
 o paintBorder(Graphics, int, int, int, int)
This default implementation does no painting.

Constructors

 o DefaultBorder
 public DefaultBorder()

Methods

 o paintBorder
 public void paintBorder(Graphics g,
                         int x,
                         int y,
                         int width,
                         int height)
This default implementation does no painting.

 o getBorderInsets
 public Insets getBorderInsets()
This default implementation returns new Insets(0, 0, 0, 0).

 o isBorderOpaque
 public boolean isBorderOpaque()
This default implementation returns false.

 o getInteriorRectangle
 public Rectangle getInteriorRectangle(int x,
                                       int y,
                                       int width,
                                       int height)
This is a convience method that calls the static method.

 o 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