uk.ac.ic.doc.automed.gui
Class SchemaManager
java.lang.Object
|
+--uk.ac.ic.doc.automed.gui.SchemaManager
- All Implemented Interfaces:
- uk.ac.ic.doc.automed.gui.GraphicManager
- public class SchemaManager
- extends java.lang.Object
- implements uk.ac.ic.doc.automed.gui.GraphicManager
|
Constructor Summary |
SchemaManager(uk.ac.ic.doc.automed.gui.GraphicCanvas canvas)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OBJECT_HDISTANCE
public static final int OBJECT_HDISTANCE
- See Also:
- Constant Field Values
OBJECT_VDISTANCE
public static final int OBJECT_VDISTANCE
- See Also:
- Constant Field Values
IN_ROW
public static final int IN_ROW
- See Also:
- Constant Field Values
SchemaManager
public SchemaManager(uk.ac.ic.doc.automed.gui.GraphicCanvas canvas)
load
public void load(Schema schema)
throws GUIException
- Loads the schema specified into this SchemaManager. The GraphicObject objects are created and are draw on the canvas.
- Specified by:
load in interface uk.ac.ic.doc.automed.gui.GraphicManager
GUIException
getBoundingBox
public java.awt.Dimension getBoundingBox()
- Specified by:
getBoundingBox in interface uk.ac.ic.doc.automed.gui.GraphicManager
getGraphicObject
public uk.ac.ic.doc.automed.gui.GraphicObject getGraphicObject(SchemaObject so)
repaint
public void repaint(java.awt.Graphics g,
boolean fullRefresh)
throws GUIException
- Specified by:
repaint in interface uk.ac.ic.doc.automed.gui.GraphicManager
GUIException
createBox
public static Box createBox()
createArc
public static Arc createArc()
createLine
public static Line createLine()
createRhombus
public static Rhombus createRhombus()
getGeneralisationExtend
public int getGeneralisationExtend()
getExtend
public int getExtend(boolean isGeneralisation)
getGraphics
public java.awt.Graphics getGraphics()
setFocus
public uk.ac.ic.doc.automed.gui.GraphicObject setFocus(java.awt.Point p)
- Specified by:
setFocus in interface uk.ac.ic.doc.automed.gui.GraphicManager