org.xnap.commons.gui
Class ThinBevelBorder
java.lang.Object
javax.swing.border.AbstractBorder
javax.swing.border.BevelBorder
org.xnap.commons.gui.ThinBevelBorder
- All Implemented Interfaces:
- Serializable, Border
public class ThinBevelBorder
- extends BevelBorder
Provides a simple 1 line bevel border. If the Border is raised it will look
like the component it is used with is raised a little bit. If it is lowered it
will look like the component is lowered a bit.
Very similiar to Swing's BevelBorder
except
it looks a bit prettier.
- See Also:
- Serialized Form
Constructor Summary |
ThinBevelBorder(int bevelType)
Constructs a border with the given etchType . |
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)
- Constructs a border with the given
etchType
.
- Parameters:
bevelType
- either BevelBoder.RAISED
or BevelBorder.LOWERED
- See Also:
BevelBorder.BevelBorder(int)
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
paintLoweredBevel
protected void paintLoweredBevel(Component c,
Graphics g,
int x,
int y,
int width,
int height)
- Overrides:
paintLoweredBevel
in class BevelBorder
paintRaisedBevel
protected void paintRaisedBevel(Component c,
Graphics g,
int x,
int y,
int width,
int height)
- Overrides:
paintRaisedBevel
in class BevelBorder
Copyright © 2004-2007 XNap Commons Team. All Rights Reserved.