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

java.lang.Object
  extended by uk.ac.ic.doc.automed.editor.DrawVertex
      extended by uk.ac.ic.doc.automed.editor.DefaultDrawConstraintVertex
All Implemented Interfaces:
Drawable, DrawableVertex
Direct Known Subclasses:
DrawHDMConstraintVertex, DrawOWLEnumerationVertex, DrawRDBForeignKeyVertex

public class DefaultDrawConstraintVertex
extends DrawVertex


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
DefaultDrawConstraintVertex(EditorPanel ep, Positionable p)
           
DefaultDrawConstraintVertex(EditorPanel ep, Positionable p, Positionable[] d)
           
 
Method Summary
 java.awt.Rectangle getBounds()
          Implements getBounds() from Drawable
 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)
          Draw a rounded box to represent a constraint
 
Methods inherited from class uk.ac.ic.doc.automed.editor.DrawVertex
getCentre, getCentreOffset, getConnectionPointMovableCentre, getConnectsTo, getPositionable, intersectLine, paintComponent, paintText, setText
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultDrawConstraintVertex

public DefaultDrawConstraintVertex(EditorPanel ep,
                                   Positionable p)

DefaultDrawConstraintVertex

public DefaultDrawConstraintVertex(EditorPanel ep,
                                   Positionable p,
                                   Positionable[] d)
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

getBounds

public java.awt.Rectangle getBounds()
Description copied from class: DrawVertex
Implements getBounds() from Drawable

Specified by:
getBounds in interface DrawableVertex
Overrides:
getBounds in class DrawVertex
Returns:
A rectangle that defines the area this Drawable takes up in the editor panel

paintSymbol

public void paintSymbol(java.awt.Graphics2D g)
Draw a rounded box to represent a constraint

Overrides:
paintSymbol in class DrawVertex