uk.ac.ic.doc.automed.editor
Class DefaultDrawLinkVertex
java.lang.Object
uk.ac.ic.doc.automed.editor.DrawVertex
uk.ac.ic.doc.automed.editor.DefaultDrawLinkVertex
- All Implemented Interfaces:
- Drawable, DrawableVertex
public class DefaultDrawLinkVertex
- extends DrawVertex
Fields inherited from class uk.ac.ic.doc.automed.editor.DrawVertex |
bounds, dashedStroke, dependent, ep, fm, p, standardStroke, symbolHeight, symbolWidth, text, textHeight, textWidth, thickness, thickStroke, thinStroke, xInset, yInset, zeroOffset |
Method Summary |
static void |
drawDiamond(java.awt.Graphics2D g,
int x,
int y,
int width,
int height)
|
static void |
fillDiamond(java.awt.Graphics2D g,
int x,
int y,
int width,
int height)
|
java.awt.Point |
getConnectionPoint(java.awt.Point other)
Calculate the Point where a DrawableArc connecting
to this DrawableVertex should be drawn to, no |
void |
paintSymbol(java.awt.Graphics2D g)
The default implementation of paintSymbol for a vertex, an elipse
with a black forground and white background |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultDrawLinkVertex
public DefaultDrawLinkVertex(EditorPanel ep,
Positionable p)
DefaultDrawLinkVertex
public DefaultDrawLinkVertex(EditorPanel ep,
Positionable p,
Positionable[] dependent)
getConnectionPoint
public java.awt.Point getConnectionPoint(java.awt.Point other)
- Description copied from interface:
DrawableVertex
- Calculate the
Point
where a DrawableArc
connecting
to this DrawableVertex
should be drawn to, no
- Specified by:
getConnectionPoint
in interface DrawableVertex
- Overrides:
getConnectionPoint
in class DrawVertex
- Returns:
- Point
paintSymbol
public void paintSymbol(java.awt.Graphics2D g)
- Description copied from class:
DrawVertex
- The default implementation of
paintSymbol
for a vertex, an elipse
with a black forground and white background
- Overrides:
paintSymbol
in class DrawVertex
fillDiamond
public static void fillDiamond(java.awt.Graphics2D g,
int x,
int y,
int width,
int height)
drawDiamond
public static void drawDiamond(java.awt.Graphics2D g,
int x,
int y,
int width,
int height)