API Overview API Index Package Overview Direct link to this page
JDK 1.6
  javax.swing.border. EtchedBorder View Source
Author(s)
David Kloba
Amy Fowler
Since
Version
1.20 04/07/06
Serial
Hierarchy
 Object
      AbstractBorder
          EtchedBorder
Implements
Subclasses
Description
public class EtchedBorder
  A class which implements a simple etched border which can either be etched-in or etched-out.
See also:   
Constructors
public EtchedBorder ()
Creates a lowered etched border whose colors will be derived from the background color of the component passed into the paintBorder method.
public EtchedBorder (Color highlight, Color shadow)
  Creates a lowered etched border with the specified highlight and shadow colors.
public EtchedBorder (int etchType)
  Creates an etched border with the specified etch-type whose colors will be derived from the background color of the component passed into the paintBorder method.
public EtchedBorder (int etchType, Color highlight, Color shadow)
  Creates an etched border with the specified etch-type, highlight and shadow colors.
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 border.
public Insets getBorderInsets (Component c, Insets insets) [Overrides AbstractBorder]
  Reinitialize the insets parameter with this Border's current Insets.
public int getEtchType ()
Returns which etch-type is set on the etched border.
public Color getHighlightColor ()
  Returns the highlight color of the etched border.
public Color getHighlightColor (Component c)
  Returns the highlight color of the etched border when rendered on the specified component.
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 getShadowColor ()
  Returns the shadow color of the etched border.
public Color getShadowColor (Component c)
  Returns the shadow color of the etched border when rendered on the specified component.
public boolean isBorderOpaque () [Overrides AbstractBorder]
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 AbstractBorder]
  Paints the border for the specified component with the specified position and size.
Fields
Hide/Show inherited fields
protected int etchType
protected Color highlight
publicfinalstatic int LOWERED = "1"
Lowered etched type.
publicfinalstatic int RAISED = "0"
Raised etched type.
protected Color shadow
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar