All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.sun.java.swing.border.AbstractBorder

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

public abstract class AbstractBorder
extends Object
implements Border, Serializable
A class which implements an empty border with no size. This provides a convenient base class from which other border classes can be easily derived.


Constructor Index

 o AbstractBorder()

Method Index

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

Constructors

 o AbstractBorder
 public AbstractBorder()

Methods

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

 o getBorderInsets
 public Insets getBorderInsets(Component c)
This default implementation returns the value of getBorderMargins.

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

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

 o getInteriorRectangle
 public static Rectangle getInteriorRectangle(Component c,
                                              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