org.xnap.gui.component
Class XNapEtchedBorder

java.lang.Object
  extended by javax.swing.border.AbstractBorder
      extended by org.xnap.gui.component.XNapEtchedBorder
All Implemented Interfaces:
java.io.Serializable, javax.swing.border.Border

public class XNapEtchedBorder
extends javax.swing.border.AbstractBorder

See Also:
Serialized Form

Field Summary
protected  int etchType
           
static int LOWERED
           
static int RAISED
           
 
Constructor Summary
XNapEtchedBorder()
           
XNapEtchedBorder(int etchType)
           
 
Method Summary
 java.awt.Insets getBorderInsets(java.awt.Component c)
           
 java.awt.Insets getBorderInsets(java.awt.Component c, java.awt.Insets insets)
           
 int getEtchType()
          Returns the etch type.
 boolean isBorderOpaque()
          Returns true.
 void paintBorder(java.awt.Component c, java.awt.Graphics g, int x, int y, int w, int h)
           
 
Methods inherited from class javax.swing.border.AbstractBorder
getInteriorRectangle, getInteriorRectangle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

XNapEtchedBorder

public XNapEtchedBorder(int etchType)

XNapEtchedBorder

public XNapEtchedBorder()
Method Detail

paintBorder

public void paintBorder(java.awt.Component c,
                        java.awt.Graphics g,
                        int x,
                        int y,
                        int w,
                        int h)
Specified by:
paintBorder in interface javax.swing.border.Border
Overrides:
paintBorder in class javax.swing.border.AbstractBorder

getBorderInsets

public java.awt.Insets getBorderInsets(java.awt.Component c)
Specified by:
getBorderInsets in interface javax.swing.border.Border
Overrides:
getBorderInsets in class javax.swing.border.AbstractBorder

getBorderInsets

public java.awt.Insets getBorderInsets(java.awt.Component c,
                                       java.awt.Insets insets)
Overrides:
getBorderInsets in class javax.swing.border.AbstractBorder

isBorderOpaque

public boolean isBorderOpaque()
Returns true.

Specified by:
isBorderOpaque in interface javax.swing.border.Border
Overrides:
isBorderOpaque in class javax.swing.border.AbstractBorder

getEtchType

public int getEtchType()
Returns the etch type.



Copyright © 2001-2005 XNap Team. All Rights Reserved.