org.graffiti.plugin.tool
Class EdgeBorder

java.lang.Object
  extended by javax.swing.border.AbstractBorder
      extended by org.graffiti.plugin.tool.EdgeBorder
All Implemented Interfaces:
Serializable, Border

public class EdgeBorder
extends AbstractBorder

DOCUMENT ME!

Version:
$Revision: 5768 $ Provides a border used to mark selected nodes.
See Also:
Serialized Form

Field Summary
protected  int bulletSize
          Size of bullets used to mark bends.
protected  Color color
          Color used to paint border.
protected  boolean showBends
          DOCUMENT ME!
 
Constructor Summary
EdgeBorder(Color color, int size, boolean showBends)
          Constructor for NodeBorder.
 
Method Summary
 Insets getBorderInsets(Component c)
           
 Insets getBorderInsets(Component c, Insets insets)
          Sets the insets to the value of width.
 boolean isBorderOpaque()
          DOCUMENT ME!
 void paintBorder(Component c, Graphics g, int bx, int by, int width, int height)
          Paints the border.
 
Methods inherited from class javax.swing.border.AbstractBorder
getBaseline, getBaselineResizeBehavior, getInteriorRectangle, getInteriorRectangle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

color

protected Color color
Color used to paint border.


showBends

protected boolean showBends
DOCUMENT ME!


bulletSize

protected int bulletSize
Size of bullets used to mark bends.

Constructor Detail

EdgeBorder

public EdgeBorder(Color color,
                  int size,
                  boolean showBends)
Constructor for NodeBorder.

Parameters:
color - DOCUMENT ME!
size - DOCUMENT ME!
showBends - DOCUMENT ME!
Method Detail

getBorderInsets

public Insets getBorderInsets(Component c,
                              Insets insets)
Sets the insets to the value of width.

Overrides:
getBorderInsets in class AbstractBorder
See Also:
AbstractBorder.getBorderInsets(java.awt.Component, java.awt.Insets)

getBorderInsets

public Insets getBorderInsets(Component c)
Specified by:
getBorderInsets in interface Border
Overrides:
getBorderInsets in class AbstractBorder
See Also:
AbstractBorder.getBorderInsets(java.awt.Component)

isBorderOpaque

public boolean isBorderOpaque()
DOCUMENT ME!

Specified by:
isBorderOpaque in interface Border
Overrides:
isBorderOpaque in class AbstractBorder
Returns:
true.
See Also:
Returns true.

paintBorder

public void paintBorder(Component c,
                        Graphics g,
                        int bx,
                        int by,
                        int width,
                        int height)
Paints the border.

Specified by:
paintBorder in interface Border
Overrides:
paintBorder in class AbstractBorder
Parameters:
c - DOCUMENT ME!
g - DOCUMENT ME!
bx - DOCUMENT ME!
by - DOCUMENT ME!
width - DOCUMENT ME!
height - DOCUMENT ME!


Generated at 2012-05-30 11:00:36 PM CEST