org.stringer.ui.statusbar
Class ThreeDBorder

java.lang.Object
  |
  +--org.stringer.ui.statusbar.ThreeDBorder
All Implemented Interfaces:
javax.swing.border.Border

public class ThreeDBorder
extends java.lang.Object
implements javax.swing.border.Border

ThreeDBorder.java

Author:
unknown

Field Summary
protected  java.awt.Color highlight
           
static int LOWERED
           
static int RAISED
           
protected  java.awt.Color shadow
           
protected  int thickness
           
protected  int type
           
 
Constructor Summary
ThreeDBorder()
           
ThreeDBorder(int type)
           
ThreeDBorder(int type, int thickness)
           
ThreeDBorder(int type, int thickness, java.awt.Color highlight, java.awt.Color shadow)
           
 
Method Summary
 java.awt.Insets getBorderInsets(java.awt.Component component)
           
 java.awt.Color getHightlightColor(java.awt.Component c)
           
 java.awt.Color getShadowColor(java.awt.Component c)
           
 boolean isBorderOpaque()
           
 void paintBorder(java.awt.Component c, java.awt.Graphics g, int x, int y, int w, int h)
           
 
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

type

protected int type

thickness

protected int thickness

highlight

protected java.awt.Color highlight

shadow

protected java.awt.Color shadow
Constructor Detail

ThreeDBorder

public ThreeDBorder()

ThreeDBorder

public ThreeDBorder(int type)

ThreeDBorder

public ThreeDBorder(int type,
                    int thickness)

ThreeDBorder

public ThreeDBorder(int type,
                    int thickness,
                    java.awt.Color highlight,
                    java.awt.Color shadow)
Method Detail

isBorderOpaque

public boolean isBorderOpaque()
Specified by:
isBorderOpaque in interface javax.swing.border.Border

getBorderInsets

public java.awt.Insets getBorderInsets(java.awt.Component component)
Specified by:
getBorderInsets in interface javax.swing.border.Border

getHightlightColor

public java.awt.Color getHightlightColor(java.awt.Component c)

getShadowColor

public java.awt.Color getShadowColor(java.awt.Component c)

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


Copyright © R. Kevin Cole. All Rights Reserved.