dsto.dfc.swing.controls
Class ThinBevelBorder

java.lang.Object
  extended by javax.swing.border.AbstractBorder
      extended by javax.swing.border.BevelBorder
          extended by dsto.dfc.swing.controls.ThinBevelBorder
All Implemented Interfaces:
Serializable, Border

public class ThinBevelBorder
extends BevelBorder

This extends BevelBorder and overrides the paint methods so that we can get thin borders instead of the usual thick ones.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.border.BevelBorder
bevelType, highlightInner, highlightOuter, LOWERED, RAISED, shadowInner, shadowOuter
 
Constructor Summary
ThinBevelBorder(int bevelType)
           
 
Method Summary
 Insets getBorderInsets(Component c)
           
 Insets getBorderInsets(Component c, Insets insets)
           
protected  void paintLoweredBevel(Component c, Graphics g, int x, int y, int width, int height)
           
protected  void paintRaisedBevel(Component c, Graphics g, int x, int y, int width, int height)
           
 
Methods inherited from class javax.swing.border.BevelBorder
getBevelType, getHighlightInnerColor, getHighlightInnerColor, getHighlightOuterColor, getHighlightOuterColor, getShadowInnerColor, getShadowInnerColor, getShadowOuterColor, getShadowOuterColor, isBorderOpaque, paintBorder
 
Methods inherited from class javax.swing.border.AbstractBorder
getBaseline, getBaselineResizeBehavior, getInteriorRectangle, getInteriorRectangle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ThinBevelBorder

public ThinBevelBorder(int bevelType)
Method Detail

paintRaisedBevel

protected void paintRaisedBevel(Component c,
                                Graphics g,
                                int x,
                                int y,
                                int width,
                                int height)
Overrides:
paintRaisedBevel in class BevelBorder

paintLoweredBevel

protected void paintLoweredBevel(Component c,
                                 Graphics g,
                                 int x,
                                 int y,
                                 int width,
                                 int height)
Overrides:
paintLoweredBevel in class BevelBorder

getBorderInsets

public Insets getBorderInsets(Component c)
Specified by:
getBorderInsets in interface Border
Overrides:
getBorderInsets in class BevelBorder

getBorderInsets

public Insets getBorderInsets(Component c,
                              Insets insets)
Overrides:
getBorderInsets in class BevelBorder


Copyright © 2008 Commonwealth of Australia