API Overview API Index Package Overview Direct link to this page
JDK 1.6
  javax.swing.border. MatteBorder View Source
Author(s)
Amy Fowler
Since
Version
1.24 04/07/06
Serial
Hierarchy
 Object
      AbstractBorder
          EmptyBorder
              MatteBorder
Implements
Subclasses
Description
public class MatteBorder
  A class which provides a matte-like border of either a solid color or a tiled icon.
See also:   
Constructors
public MatteBorder (Icon tileIcon)
  Creates a matte border with the specified tile icon.
public MatteBorder (Insets borderInsets, Color matteColor)
  Creates a matte border with the specified insets and color.
public MatteBorder (Insets borderInsets, Icon tileIcon)
  Creates a matte border with the specified insets and tile icon.
public MatteBorder (int top, int left, int bottom, int right, Color matteColor)
  Creates a matte border with the specified insets and color.
public MatteBorder (int top, int left, int bottom, int right, Icon tileIcon)
  Creates a matte border with the specified insets and tile icon.
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 () [Overrides EmptyBorder]
  Returns the insets of the border.
public Insets getBorderInsets (Component c) [Overrides EmptyBorder]
  Returns the insets of the border.
public Insets getBorderInsets (Component c, Insets insets) [Overrides EmptyBorder]
  Reinitialize the insets parameter with this Border's current Insets.
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 Color getMatteColor ()
  Returns the color used for tiling the border or null if a tile icon is being used.
public Icon getTileIcon ()
  Returns the icon used for tiling the border or null if a solid color is being used.
public boolean isBorderOpaque () [Overrides EmptyBorder]
Returns whether or not the 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 EmptyBorder]
Paints the matte border.
Fields
Hide/Show inherited fields
protected int bottom [Inherited From EmptyBorder]
protected Color color
protected int left [Inherited From EmptyBorder]
protected int right [Inherited From EmptyBorder]
protected Icon tileIcon
protected int top [Inherited From EmptyBorder]
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar