com.jgraph.example
Class JGraphShadowBorder
java.lang.Object
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
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
sharedInstance
public static JGraphShadowBorder sharedInstance
- Shared class instance
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