Package org.graffiti.plugin.tool
Class EdgeBorder
java.lang.Object
javax.swing.border.AbstractBorder
org.graffiti.plugin.tool.EdgeBorder
- All Implemented Interfaces:
Serializable
,Border
public class EdgeBorder extends AbstractBorder
DOCUMENT ME!
- Version:
- $Revision: 1.7.2.1 $ Provides a border used to mark selected nodes.
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description EdgeBorder(Color color, int size, boolean showBends)
Constructor for EdgeBorder. -
Method Summary
Modifier and Type Method Description Insets
getBorderInsets(Component c)
Insets
getBorderInsets(Component c, Insets insets)
Sets the insets to the value ofwidth
.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
-
Constructor Details
-
EdgeBorder
Constructor for EdgeBorder.- Parameters:
color
- The color of the edge border.size
- Must be between 1 and 15.showBends
- True to show bends.
-
-
Method Details
-
getBorderInsets
Sets the insets to the value ofwidth
.- Overrides:
getBorderInsets
in classAbstractBorder
- See Also:
AbstractBorder.getBorderInsets(java.awt.Component, java.awt.Insets)
-
getBorderInsets
- Specified by:
getBorderInsets
in interfaceBorder
- Overrides:
getBorderInsets
in classAbstractBorder
- See Also:
AbstractBorder.getBorderInsets(java.awt.Component)
-
isBorderOpaque
public boolean isBorderOpaque()DOCUMENT ME!- Specified by:
isBorderOpaque
in interfaceBorder
- Overrides:
isBorderOpaque
in classAbstractBorder
- Returns:
- true.
- See Also:
Returns true.
-
paintBorder
Paints the border.- Specified by:
paintBorder
in interfaceBorder
- Overrides:
paintBorder
in classAbstractBorder
- Parameters:
c
- DOCUMENT ME!g
- DOCUMENT ME!bx
- DOCUMENT ME!by
- DOCUMENT ME!width
- DOCUMENT ME!height
- DOCUMENT ME!
-