uk.ac.ic.doc.automed.editor
Interface DrawableVertex

All Superinterfaces:
Drawable
All Known Implementing Classes:
DefaultDrawConstraintVertex, DefaultDrawLinkNodalVertex, DefaultDrawLinkVertex, DefaultDrawNodalVertex, DrawEERAttributeVertex, DrawERGeneralisationVertex, DrawERRelationshipVertex, DrawHDMVertex, DrawNetwork, DrawRDBForeignKeyVertex, DrawRDBPrimaryKeyVertex, DrawRDBTableVertex, DrawSchema, DrawUMLAssociationVertex, DrawUMLAttributeVertex, DrawUMLClassVertex, DrawUMLGeneralisationVertex, DrawVertex

public interface DrawableVertex
extends Drawable


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()
          Describe where the centre of the Drawable visually appears to a viewer.
 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 interface uk.ac.ic.doc.automed.editor.Drawable
getConnectsTo, getPositionable, paintComponent
 

Method Detail

getBounds

java.awt.Rectangle getBounds()
Describe the rectangular area within the EditorPanel where this Drawable vertex is to be painted.


getCentre

java.awt.Point getCentre()
Describe where the centre of the Drawable visually appears to a viewer.

Returns:
A point that is the absolute coordinate of the , graphical centre of this Drawable.

getCentreOffset

java.awt.Point getCentreOffset()
Describe where the centre of the Drawable visually appears to a viewer.

Returns:
A point that is an offset within getBounds(), where the graphical centre of this Drawable lies.

getConnectionPoint

java.awt.Point getConnectionPoint(java.awt.Point other)
Calculate the Point where a DrawableArc connecting to this DrawableVertex should be drawn to, no

Returns:
Point