API Overview API Index Package Overview Direct link to this page
JDK 1.6
  javax.swing.border. SoftBevelBorder View Source
Author(s)
Amy Fowler
Chester Rose
Since
Version
1.17 11/17/05
Serial
Hierarchy
 Object
      AbstractBorder
          BevelBorder
              SoftBevelBorder
Implements
Subclasses
Description
public class SoftBevelBorder
  A class which implements a raised or lowered bevel with softened corners.
See also:   
Constructors
public SoftBevelBorder (int bevelType)
  Creates a bevel border with the specified type and whose colors will be derived from the background color of the component passed into the paintBorder method.
public SoftBevelBorder (int bevelType, Color highlight, Color shadow)
  Creates a bevel border with the specified type, highlight and shadow colors.
public SoftBevelBorder (int bevelType, Color highlightOuterColor, Color highlightInnerColor, Color shadowOuterColor, Color shadowInnerColor)
  Creates a bevel border with the specified type, highlight 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 int getBevelType () [Inherited From BevelBorder]
Returns the type of the bevel border.
public Insets getBorderInsets (Component c) [Overrides BevelBorder]
  Returns the insets of the border.
public Insets getBorderInsets (Component c, Insets insets) [Overrides BevelBorder]
  Reinitialize the insets parameter with this Border's current Insets.
public Color getHighlightInnerColor () [Inherited From BevelBorder]
  Returns the inner highlight color of the bevel border.
public Color getHighlightInnerColor (Component c) [Inherited From BevelBorder]
  Returns the inner highlight color of the bevel border when rendered on the specified component.
public Color getHighlightOuterColor () [Inherited From BevelBorder]
  Returns the outer highlight color of the bevel border.
public Color getHighlightOuterColor (Component c) [Inherited From BevelBorder]
  Returns the outer highlight color of the bevel 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 getShadowInnerColor () [Inherited From BevelBorder]
  Returns the inner shadow color of the bevel border.
public Color getShadowInnerColor (Component c) [Inherited From BevelBorder]
  Returns the inner shadow color of the bevel border when rendered on the specified component.
public Color getShadowOuterColor () [Inherited From BevelBorder]
  Returns the outer shadow color of the bevel border.
public Color getShadowOuterColor (Component c) [Inherited From BevelBorder]
  Returns the outer shadow color of the bevel border when rendered on the specified component.
public boolean isBorderOpaque () [Overrides BevelBorder]
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 BevelBorder]
  Paints the border for the specified component with the specified position and size.
protected void paintLoweredBevel (Component c, Graphics g, int x, int y, int width, int height) [Inherited From BevelBorder]
protected void paintRaisedBevel (Component c, Graphics g, int x, int y, int width, int height) [Inherited From BevelBorder]
Fields
Hide/Show inherited fields
protected int bevelType [Inherited From BevelBorder]
protected Color highlightInner [Inherited From BevelBorder]
protected Color highlightOuter [Inherited From BevelBorder]
publicfinalstatic int LOWERED = "1" [Inherited From BevelBorder]
Lowered bevel type.
publicfinalstatic int RAISED = "0" [Inherited From BevelBorder]
Raised bevel type.
protected Color shadowInner [Inherited From BevelBorder]
protected Color shadowOuter [Inherited From BevelBorder]
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar