com.jgraph.example
Class JGraphShadowBorder

java.lang.Object
  extended by com.jgraph.example.JGraphShadowBorder
All Implemented Interfaces:
java.io.Serializable, javax.swing.border.Border

public class JGraphShadowBorder
extends java.lang.Object
implements javax.swing.border.Border, java.io.Serializable

Example of a shadowed border

See Also:
Serialized Form

Field Summary
static JGraphShadowBorder sharedInstance
          Shared class instance
 
Method Summary
 java.awt.Insets getBorderInsets(java.awt.Component c)
           
static JGraphShadowBorder getSharedInstance()
           
 boolean isBorderOpaque()
           
 void paintBorder(java.awt.Component c, java.awt.Graphics g, int x, int y, int w, int h)
          The paint method for this border
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

sharedInstance

public static JGraphShadowBorder sharedInstance
Shared class instance

Method Detail

getBorderInsets

public java.awt.Insets getBorderInsets(java.awt.Component c)
Specified by:
getBorderInsets in interface javax.swing.border.Border
Returns:
the insets value

isBorderOpaque

public boolean isBorderOpaque()
Specified by:
isBorderOpaque in interface javax.swing.border.Border
Returns:
whether not the border is opaque

paintBorder

public void paintBorder(java.awt.Component c,
                        java.awt.Graphics g,
                        int x,
                        int y,
                        int w,
                        int h)
The paint method for this border

Specified by:
paintBorder in interface javax.swing.border.Border

getSharedInstance

public static JGraphShadowBorder getSharedInstance()
Returns:
the shared instance of this class