API Overview API Index Package Overview Direct link to this page
JDK 1.6
  javax.swing.border. CompoundBorder View Source
Author(s)
David Kloba
Since
Version
1.21 11/17/05
Serial
Hierarchy
 Object
      AbstractBorder
          CompoundBorder
Implements
Subclasses
Description
public class CompoundBorder
  A composite Border class used to compose two Border objects into a single border by nesting an inside Border object within the insets of an outside Border object.
See also:   
Constructors
public CompoundBorder ()
Creates a compound border with null outside and inside borders.
public CompoundBorder (Border outsideBorder, Border insideBorder)
  Creates a compound border with the specified outside and inside borders.
Methods
Hide/Show inherited methods
public int getBaseline (Component c, int width, int height) [Inherited From AbstractBorder]
  Returns the baseline.
public BaselineResizeBehavior getBaselineResizeBehavior (Component c) [Inherited From AbstractBorder]
  Returns an enum indicating how the baseline of a component changes as the size changes.
public Insets getBorderInsets (Component c) [Overrides AbstractBorder]
  Returns the insets of the composite border by adding the insets of the outside border to the insets of the inside border.
public Insets getBorderInsets (Component c, Insets insets) [Overrides AbstractBorder]
  Reinitialize the insets parameter with this Border's current Insets.
public Border getInsideBorder ()
Returns the inside border object.
publicstatic Rectangle getInteriorRectangle (Component c, Border b, int x, int y, int width, int height) [Inherited From AbstractBorder]
  Returns a rectangle using the arguments minus the insets of the border.
public Rectangle getInteriorRectangle (Component c, int x, int y, int width, int height) [Inherited From AbstractBorder]
  This convenience method calls the static method.
public Border getOutsideBorder ()
Returns the outside border object.
public boolean isBorderOpaque () [Overrides AbstractBorder]
  Returns whether or not this compound border is opaque.
pack-privatestatic boolean isLeftToRight (Component c) [Inherited From AbstractBorder]
public void paintBorder (Component c, Graphics g, int x, int y, int width, int height) [Overrides AbstractBorder]
  Paints the compound border by painting the outside border with the specified position and size and then painting the inside border at the specified position and size offset by the insets of the outside border.
Fields
Hide/Show inherited fields
protected Border insideBorder
protected Border outsideBorder
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar