Package mgui.interfaces.graphs.shapes
Class GraphShape
java.lang.Object
mgui.interfaces.AbstractInterfaceObject
mgui.interfaces.graphs.shapes.GraphShape
- All Implemented Interfaces:
edu.uci.ics.jung.visualization.VisualizationServer.Paintable,InterfaceObject,NamedObject,TreeObject,CleanableObject
- Direct Known Subclasses:
GraphImage
public abstract class GraphShape extends AbstractInterfaceObject implements edu.uci.ics.jung.visualization.VisualizationServer.Paintable
Abstract class for objects which implement
VisualizationServer.Paintable; these can be used
to render shapes on a graph display window. Shape coordinates are either relative
to the screen, or to the graph layout; this is specified by the 'IsScreen' attribute.- Since:
- 1.0
- Version:
- 1.0
- Author:
- Andrew Reid
-
Field Summary
Fields inherited from class mgui.interfaces.AbstractInterfaceObject
isDestroyed, tree_nodes -
Constructor Summary
Constructors Constructor Description GraphShape() -
Method Summary
Modifier and Type Method Description DrawingEnginegetDrawingEngine()voidpaint(java.awt.Graphics g)booleanuseTransform()Methods inherited from class mgui.interfaces.AbstractInterfaceObject
clean, destroy, getName, getTreeLabel, isDestroyed, issueTreeNode, setName, setTreeNode, updateTreeNodesMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
GraphShape
public GraphShape()
-
-
Method Details
-
paint
public void paint(java.awt.Graphics g)- Specified by:
paintin interfaceedu.uci.ics.jung.visualization.VisualizationServer.Paintable
-
useTransform
public boolean useTransform()- Specified by:
useTransformin interfaceedu.uci.ics.jung.visualization.VisualizationServer.Paintable
-
getDrawingEngine
-