org.xnap.commons.gui
Class ThinEtchedBorder
java.lang.Object
   javax.swing.border.AbstractBorder
javax.swing.border.AbstractBorder
       org.xnap.commons.gui.ThinEtchedBorder
org.xnap.commons.gui.ThinEtchedBorder
- All Implemented Interfaces: 
- Serializable, Border
- public class ThinEtchedBorder 
- extends AbstractBorder
Provides a simple 2 line bevel border. If the Border is raised it will look
 like a tiny wall around the component it is used with. If it is lowered it
 will look like a thin trench.
- See Also:
- Serialized Form
 
 
 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
RAISED
public static final int RAISED
- See Also:
- Constant Field Values
LOWERED
public static final int LOWERED
- See Also:
- Constant Field Values
etchType
protected int etchType
ThinEtchedBorder
public ThinEtchedBorder(int etchType)
- Constructs a border with the given etchType.
 
- Parameters:
- etchType- either- BevelBoder.RAISEDor- BevelBorder.LOWERED
- See Also:
- BevelBorder.BevelBorder(int)
 
ThinEtchedBorder
public ThinEtchedBorder()
- Constructs a lowered border.
 
- See Also:
- BevelBorder.BevelBorder(int)
 
paintBorder
public void paintBorder(Component c,
                        Graphics g,
                        int x,
                        int y,
                        int w,
                        int h)
- 
- Specified by:
- paintBorderin interface- Border
- Overrides:
- paintBorderin class- AbstractBorder
 
- 
 
getBorderInsets
public Insets getBorderInsets(Component c)
- 
- Specified by:
- getBorderInsetsin interface- Border
- Overrides:
- getBorderInsetsin class- AbstractBorder
 
- 
 
getBorderInsets
public Insets getBorderInsets(Component c,
                              Insets insets)
- 
- Overrides:
- getBorderInsetsin class- AbstractBorder
 
- 
 
isBorderOpaque
public boolean isBorderOpaque()
- Returns true.
 
- 
- Specified by:
- isBorderOpaquein interface- Border
- Overrides:
- isBorderOpaquein class- AbstractBorder
 
- 
 
getEtchType
public int getEtchType()
- Returns the etch type.
 
- 
 
Copyright © 2004-2007 XNap Commons Team. All Rights Reserved.