|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.tigris.gef.base.Diagram
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.
Field Summary | |
protected java.lang.String |
_comments
|
protected java.lang.String |
_name
|
protected ToolBar |
_toolBar
|
static java.lang.String |
NAME_KEY
The bean property name denoting the diagram's name. |
static java.lang.String |
SCALE_KEY
The bean property name denoting the scale factor. |
Constructor Summary | |
Diagram()
|
|
Diagram(java.lang.String name)
|
|
Diagram(java.lang.String name,
GraphModel graphModel)
|
|
Diagram(java.lang.String name,
GraphModel graphModel,
LayerPerspective layer)
|
Method Summary | |
void |
add(org.tigris.gef.presentation.Fig f)
|
void |
addPropertyChangeListener(java.beans.PropertyChangeListener l)
|
void |
addPropertyChangeListener(java.lang.String propertyName,
java.beans.PropertyChangeListener l)
|
void |
addVetoableChangeListener(java.beans.VetoableChangeListener listener)
|
void |
bringForward(org.tigris.gef.presentation.Fig f)
|
void |
bringToFront(org.tigris.gef.presentation.Fig f)
|
int |
countContained(java.util.List owners)
|
void |
edgeAdded(GraphEvent e)
|
void |
edgeRemoved(GraphEvent e)
|
java.util.Enumeration |
elements()
|
java.util.Enumeration |
elementsIn(java.awt.Rectangle r)
|
void |
firePropertyChange(java.lang.String propertyName,
java.lang.Object oldValue,
java.lang.Object newValue)
|
void |
fireVetoableChange(java.lang.String propertyName,
boolean oldValue,
boolean newValue)
|
void |
fireVetoableChange(java.lang.String propertyName,
int oldValue,
int newValue)
|
void |
fireVetoableChange(java.lang.String propertyName,
java.lang.Object oldValue,
java.lang.Object newValue)
|
java.lang.String |
getClassAndModelID()
USED BY SVG.tee |
java.lang.String |
getComments()
|
java.util.Collection |
getEdges(java.util.Collection edges)
Get all the figs that are edges. |
GraphController |
getGraphController()
|
GraphModel |
getGraphModel()
|
LayerPerspective |
getLayer()
|
java.lang.String |
getName()
USED BY SVG.tee |
java.util.Collection |
getNodes(java.util.Collection nodes)
Get all the figs that are a node. |
double |
getScale()
|
boolean |
getShowSingleMultiplicity()
|
ToolBar |
getToolBar()
|
void |
graphChanged(GraphEvent e)
|
org.tigris.gef.presentation.Fig |
hit(java.awt.Rectangle r)
|
void |
initialize(java.lang.Object owner)
|
protected void |
initToolBar()
|
void |
nodeAdded(GraphEvent e)
|
void |
nodeRemoved(GraphEvent e)
|
void |
postLoad()
|
void |
postSave()
|
void |
preSave()
|
org.tigris.gef.presentation.Fig |
presentationFor(java.lang.Object obj)
|
void |
remove()
|
void |
remove(org.tigris.gef.presentation.Fig f)
|
void |
removeAll(org.tigris.gef.presentation.Fig f)
|
void |
removePropertyChangeListener(java.beans.PropertyChangeListener l)
|
void |
removePropertyChangeListener(java.lang.String propertyName,
java.beans.PropertyChangeListener l)
|
void |
removeVetoableChangeListener(java.beans.VetoableChangeListener listener)
|
void |
reorder(org.tigris.gef.presentation.Fig f,
int function)
|
void |
sendBackward(org.tigris.gef.presentation.Fig f)
|
void |
sendToBack(org.tigris.gef.presentation.Fig f)
|
void |
setComments(java.lang.String c)
|
void |
setGraphModel(GraphModel gm)
|
void |
setLayer(LayerPerspective layer)
|
void |
setName(java.lang.String name)
|
void |
setScale(double scale)
|
void |
setShowSingleMultiplicity(boolean enable)
|
void |
setToolBar(ToolBar tb)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected java.lang.String _name
protected java.lang.String _comments
protected transient ToolBar _toolBar
public static final java.lang.String SCALE_KEY
public static final java.lang.String NAME_KEY
Constructor Detail |
public Diagram()
public Diagram(java.lang.String name)
public Diagram(java.lang.String name, GraphModel graphModel)
public Diagram(java.lang.String name, GraphModel graphModel, LayerPerspective layer)
Method Detail |
protected void initToolBar()
public void initialize(java.lang.Object owner)
public ToolBar getToolBar()
public void setToolBar(ToolBar tb)
public java.lang.String getComments()
public void setComments(java.lang.String c) throws java.beans.PropertyVetoException
java.beans.PropertyVetoException
public java.lang.String getName()
public void setName(java.lang.String name) throws java.beans.PropertyVetoException
java.beans.PropertyVetoException
public void setShowSingleMultiplicity(boolean enable)
public boolean getShowSingleMultiplicity()
public double getScale()
public void setScale(double scale)
public java.lang.String getClassAndModelID()
public GraphModel getGraphModel()
public void setGraphModel(GraphModel gm)
public GraphController getGraphController()
public LayerPerspective getLayer()
public void setLayer(LayerPerspective layer)
public int countContained(java.util.List owners)
public java.util.Collection getNodes(java.util.Collection nodes)
nodes
- the collection in which to place the nodes or null
if a new collection should be created
public java.util.Collection getEdges(java.util.Collection edges)
edges
- the collection in which to place the edges or null
if a new collection should be created
public void add(org.tigris.gef.presentation.Fig f)
public void remove(org.tigris.gef.presentation.Fig f)
public void removeAll(org.tigris.gef.presentation.Fig f)
public java.util.Enumeration elements()
public org.tigris.gef.presentation.Fig hit(java.awt.Rectangle r)
public java.util.Enumeration elementsIn(java.awt.Rectangle r)
public org.tigris.gef.presentation.Fig presentationFor(java.lang.Object obj)
public void sendToBack(org.tigris.gef.presentation.Fig f)
public void bringForward(org.tigris.gef.presentation.Fig f)
public void sendBackward(org.tigris.gef.presentation.Fig f)
public void bringToFront(org.tigris.gef.presentation.Fig f)
public void reorder(org.tigris.gef.presentation.Fig f, int function)
public void nodeAdded(GraphEvent e)
nodeAdded
in interface GraphListener
public void edgeAdded(GraphEvent e)
edgeAdded
in interface GraphListener
public void nodeRemoved(GraphEvent e)
nodeRemoved
in interface GraphListener
public void edgeRemoved(GraphEvent e)
edgeRemoved
in interface GraphListener
public void graphChanged(GraphEvent e)
graphChanged
in interface GraphListener
public void preSave()
public void postSave()
public void postLoad()
public void addVetoableChangeListener(java.beans.VetoableChangeListener listener)
public void removeVetoableChangeListener(java.beans.VetoableChangeListener listener)
public void fireVetoableChange(java.lang.String propertyName, boolean oldValue, boolean newValue) throws java.beans.PropertyVetoException
java.beans.PropertyVetoException
public void fireVetoableChange(java.lang.String propertyName, int oldValue, int newValue) throws java.beans.PropertyVetoException
java.beans.PropertyVetoException
public void fireVetoableChange(java.lang.String propertyName, java.lang.Object oldValue, java.lang.Object newValue) throws java.beans.PropertyVetoException
java.beans.PropertyVetoException
public void addPropertyChangeListener(java.beans.PropertyChangeListener l)
public void addPropertyChangeListener(java.lang.String propertyName, java.beans.PropertyChangeListener l)
public void removePropertyChangeListener(java.beans.PropertyChangeListener l)
public void removePropertyChangeListener(java.lang.String propertyName, java.beans.PropertyChangeListener l)
public void firePropertyChange(java.lang.String propertyName, java.lang.Object oldValue, java.lang.Object newValue)
public void remove()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |