uci.gef
Class Diagram
java.lang.Object
|
+--uci.gef.Diagram
- Direct Known Subclasses:
- UMLDiagram
- public class Diagram
- extends Object
- implements Serializable, GraphListener
A diagram is just combination of a GraphModel, a Layer, and a
title. The GraphModel stores the connected graph representation,
without any graphics. The Layer stores all the Figs.
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
_name
protected String _name
_comments
protected String _comments
_lay
protected LayerPerspective _lay
_toolBar
protected transient ToolBar _toolBar
vetoListeners
public transient Vector vetoListeners
Diagram
public Diagram()
Diagram
public Diagram(String name)
Diagram
public Diagram(String name,
GraphModel gm)
Diagram
public Diagram(String name,
GraphModel gm,
LayerPerspective lay)
initToolBar
protected void initToolBar()
initialize
public void initialize(Object owner)
getToolBar
public ToolBar getToolBar()
setToolBar
public void setToolBar(ToolBar tb)
getComments
public String getComments()
setComments
public void setComments(String c)
throws PropertyVetoException
getName
public String getName()
setName
public void setName(String n)
throws PropertyVetoException
getClassAndModelID
public String getClassAndModelID()
getGraphModel
public GraphModel getGraphModel()
setGraphModel
public void setGraphModel(GraphModel gm)
getLayer
public LayerPerspective getLayer()
setLayer
public void setLayer(LayerPerspective lay)
countContained
public int countContained(VectorSet owners)
getNodes
public Vector getNodes()
getEdges
public Vector getEdges()
add
public void add(Fig f)
remove
public void remove(Fig f)
removeAll
public void removeAll(Fig f)
elements
public Enumeration elements()
hit
public Fig hit(Rectangle r)
elementsIn
public Enumeration elementsIn(Rectangle r)
presentationFor
public Fig presentationFor(Object obj)
sendToBack
public void sendToBack(Fig f)
bringForward
public void bringForward(Fig f)
sendBackward
public void sendBackward(Fig f)
bringToFront
public void bringToFront(Fig f)
reorder
public void reorder(Fig f,
int function)
nodeAdded
public void nodeAdded(GraphEvent e)
- Specified by:
- nodeAdded in interface GraphListener
edgeAdded
public void edgeAdded(GraphEvent e)
- Specified by:
- edgeAdded in interface GraphListener
nodeRemoved
public void nodeRemoved(GraphEvent e)
- Specified by:
- nodeRemoved in interface GraphListener
edgeRemoved
public void edgeRemoved(GraphEvent e)
- Specified by:
- edgeRemoved in interface GraphListener
graphChanged
public void graphChanged(GraphEvent e)
- Specified by:
- graphChanged in interface GraphListener
preSave
public void preSave()
postSave
public void postSave()
postLoad
public void postLoad()
addVetoableChangeListener
public void addVetoableChangeListener(VetoableChangeListener listener)
removeVetoableChangeListener
public void removeVetoableChangeListener(VetoableChangeListener listener)
fireVetoableChange
public void fireVetoableChange(String propertyName,
boolean oldValue,
boolean newValue)
throws PropertyVetoException
fireVetoableChange
public void fireVetoableChange(String propertyName,
int oldValue,
int newValue)
throws PropertyVetoException
fireVetoableChange
public void fireVetoableChange(String propertyName,
Object oldValue,
Object newValue)
throws PropertyVetoException