uk.ac.ic.doc.automed.editor
Class DrawSchema

java.lang.Object
  extended by uk.ac.ic.doc.automed.editor.DrawVertex
      extended by uk.ac.ic.doc.automed.editor.DrawSchema
All Implemented Interfaces:
Drawable, DrawableVertex

public class DrawSchema
extends DrawVertex

Draw a symbol the represents a Schema in an AutoMed EditorPanel.

Author:
Peter McBrien (pjm@doc.ic.ac.uk)

Field Summary
 
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
 
Constructor Summary
DrawSchema(EditorPanel ep, Positionable p)
           
 
Method Summary
 java.awt.Point getConnectionPoint(java.awt.Point other)
          Calculate the Point where a DrawableArc connecting to this DrawableVertex should be drawn to, no
 
Methods inherited from class uk.ac.ic.doc.automed.editor.DrawVertex
getBounds, getCentre, getCentreOffset, getConnectionPointMovableCentre, getConnectsTo, getPositionable, intersectLine, paintComponent, paintSymbol, paintText, setText
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DrawSchema

public DrawSchema(EditorPanel ep,
                  Positionable p)
Method Detail

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