|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--uk.ac.ic.doc.automed.editor.DrawVertex
| Field Summary | |
protected java.awt.Rectangle |
bounds
|
protected java.awt.Point |
centre
|
protected Positionable[] |
dependent
|
protected EditorPanel |
ep
|
protected static java.awt.FontMetrics |
fm
|
protected Positionable |
p
The underlying Positionable that this Drawable
instace is representing |
protected static java.awt.Stroke |
standardStroke
|
protected int |
symbolHeight
|
protected int |
symbolWidth
|
protected java.lang.String |
text
|
protected int |
textHeight
|
protected int |
textWidth
|
protected static int |
thickness
|
protected static int |
xInset
|
protected static int |
yInset
|
| Constructor Summary | |
DrawVertex(EditorPanel ep,
Positionable p)
|
|
DrawVertex(EditorPanel ep,
Positionable p,
Positionable[] dependent)
|
|
| Method Summary | |
java.awt.Rectangle |
getBounds()
Describe the rectangular area within the EditorPanel
where this Drawable vertex is to be painted. |
java.awt.Point |
getCentre()
Describe where the centre of the Drawable visually appears
to a viewer. |
java.awt.Point |
getCentreOffset()
Implements the Drawable |
java.awt.Point |
getConnectionPoint(java.awt.Point other)
Calculate the Point where a DrawableArc connecting
to this DrawableVertex should be drawn to, no |
Positionable |
getPositionable()
|
Positionable[] |
getRelativeTo()
If the coordinates of the Positionable that this Drawable is for are specified relatitive to some other Positionables, return those other Positionables |
void |
paint(java.awt.Graphics2D g)
|
void |
paintSymbol(java.awt.Graphics2D g)
|
void |
paintText(java.awt.Graphics2D g)
|
protected void |
setText(java.lang.String s)
Set the text that will be used in this {link @Drawable}, and record its width and heigh in textBounds. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected static java.awt.FontMetrics fm
protected static final int thickness
protected static final java.awt.Stroke standardStroke
protected static final int xInset
protected static final int yInset
protected java.lang.String text
protected int textWidth
protected int textHeight
protected int symbolWidth
protected int symbolHeight
protected java.awt.Rectangle bounds
protected java.awt.Point centre
protected Positionable p
Positionable that this Drawable
instace is representing
protected Positionable[] dependent
protected EditorPanel ep
| Constructor Detail |
public DrawVertex(EditorPanel ep,
Positionable p,
Positionable[] dependent)
public DrawVertex(EditorPanel ep,
Positionable p)
| Method Detail |
protected final void setText(java.lang.String s)
textBounds.
public Positionable[] getRelativeTo()
getRelativeTo in interface DrawableVertexpublic java.awt.Rectangle getBounds()
DrawableVertexEditorPanel
where this Drawable vertex is to be painted.
getBounds in interface DrawableVertexpublic java.awt.Point getCentreOffset()
Drawable
getCentreOffset in interface DrawableVertexgetBounds(),
where the graphical centre of this
Drawable liespublic java.awt.Point getCentre()
Drawable visually appears
to a viewer.
getCentre in interface DrawableVertexDrawable.public Positionable getPositionable()
getPositionable in interface DrawableVertexpublic java.awt.Point getConnectionPoint(java.awt.Point other)
DrawableVertexPoint where a DrawableArc connecting
to this DrawableVertex should be drawn to, no
getConnectionPoint in interface DrawableVertexpublic void paintSymbol(java.awt.Graphics2D g)
public void paintText(java.awt.Graphics2D g)
public void paint(java.awt.Graphics2D g)
paint in interface Drawable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||