uk.ac.ic.doc.automed.editor.drawables
Class DrawERGeneralisationVertex

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

public class DrawERGeneralisationVertex
extends DrawVertex


Field Summary
(package private)  java.awt.Polygon hexbox
           
 
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
DrawERGeneralisationVertex(EditorPanel ep, Positionable schemaObject, Positionable[] d)
           
 
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
 void paintSymbol(java.awt.Graphics2D g)
          Replace the paintSymbol with one that draws an irregular hexagon
 
Methods inherited from class uk.ac.ic.doc.automed.editor.DrawVertex
getBounds, 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
 

Field Detail

hexbox

java.awt.Polygon hexbox
Constructor Detail

DrawERGeneralisationVertex

public DrawERGeneralisationVertex(EditorPanel ep,
                                  Positionable schemaObject,
                                  Positionable[] d)
Method Detail

paintSymbol

public void paintSymbol(java.awt.Graphics2D g)
Replace the paintSymbol with one that draws an irregular hexagon

Overrides:
paintSymbol in class DrawVertex

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