dsto.dfc.swing.controls
Class ThinBevelBorder
java.lang.Object
javax.swing.border.AbstractBorder
javax.swing.border.BevelBorder
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
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ThinBevelBorder
public ThinBevelBorder(int bevelType)
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