|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--Diagram | +--org.argouml.ui.ArgoDiagram | +--org.argouml.uml.diagram.ui.UMLDiagram
This class provides support for writing a UML diagram for argo using the GEF framework.
It adds common buttons, a namespace, capability to delete itself when its namespace is deleted, some help with creating a valid diagram name.
Field Summary | |
protected static javax.swing.Action |
_actionBroom
|
protected static javax.swing.Action |
_actionCircle
|
protected static javax.swing.Action |
_actionInk
|
protected static javax.swing.Action |
_actionLine
|
protected static javax.swing.Action |
_actionPoly
|
protected static javax.swing.Action |
_actionRectangle
|
protected static javax.swing.Action |
_actionRRectangle
|
protected static javax.swing.Action |
_actionSelect
|
protected static javax.swing.Action |
_actionSpline
|
protected static javax.swing.Action |
_actionText
|
protected DiagramInfo |
_diagramName
|
protected MNamespace |
_namespace
|
protected static Category |
cat
|
Fields inherited from class org.argouml.ui.ArgoDiagram |
TheInstance |
Constructor Summary | |
UMLDiagram()
|
|
UMLDiagram(MNamespace ns)
|
|
UMLDiagram(java.lang.String diagramName,
MNamespace ns)
|
Method Summary | |
java.lang.Object[] |
getActions()
Return actions available for building toolbar or similar. |
java.lang.String |
getClassAndModelID()
|
MNamespace |
getNamespace()
|
MModelElement |
getOwner()
|
ToolBar |
getToolBar()
Get the toolbar for the diagram |
protected abstract java.lang.Object[] |
getUmlActions()
Implement on the ancestor to get actions to populate toolbar. |
void |
initialize(java.lang.Object owner)
|
void |
initToolBar()
This is a template method. |
void |
listRoleItemSet(MElementEvent e)
not used the UMLDiagram is only interested in the removed() event. |
void |
propertySet(MElementEvent e)
not used the UMLDiagram is only interested in the removed() event. |
void |
recovered(MElementEvent e)
not used the UMLDiagram is only interested in the removed() event. |
void |
removeAsTarget()
Removes the UMLDiagram and all the figs on it as listener to UmlModelEventPump. |
void |
removed(MElementEvent e)
This diagram listens to events from is namespace ModelElement; When the modelelement is removed, we also want to delete this diagram too. |
void |
roleAdded(MElementEvent e)
not used the UMLDiagram is only interested in the removed() event. |
void |
roleRemoved(MElementEvent e)
not used the UMLDiagram is only interested in the removed() event. |
void |
setAsTarget()
Adds the UMLDiagram and all the figs on it as listener to UmlModelEventPump. |
void |
setName(java.lang.String n)
|
void |
setNamespace(java.lang.Object ns)
sets the namespace of the Diagram, and adds the diagram as a listener of its namspace in the UML model. |
Methods inherited from class org.argouml.ui.ArgoDiagram |
addChangeRegistryAsListener, damage, getContainingFig, getEdges, getItemUID, getNodes, getVetoMessage, removeChangeRegistryAsListener, setItemUID |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static Category cat
protected static javax.swing.Action _actionSelect
protected static javax.swing.Action _actionBroom
protected static javax.swing.Action _actionRectangle
protected static javax.swing.Action _actionRRectangle
protected static javax.swing.Action _actionCircle
protected static javax.swing.Action _actionLine
protected static javax.swing.Action _actionText
protected static javax.swing.Action _actionPoly
protected static javax.swing.Action _actionSpline
protected static javax.swing.Action _actionInk
protected MNamespace _namespace
protected DiagramInfo _diagramName
Constructor Detail |
public UMLDiagram()
public UMLDiagram(MNamespace ns)
public UMLDiagram(java.lang.String diagramName, MNamespace ns)
Method Detail |
public void initialize(java.lang.Object owner)
initialize
in class ArgoDiagram
org.tigris.gef.base.Diagram#initialize(Object)
public MNamespace getNamespace()
public void setNamespace(java.lang.Object ns)
public java.lang.String getClassAndModelID()
public MModelElement getOwner()
public void setName(java.lang.String n) throws java.beans.PropertyVetoException
setName
in class ArgoDiagram
java.beans.PropertyVetoException
public ToolBar getToolBar()
public void initToolBar()
org.tigris.gef.base.Diagram#initToolBar()
public java.lang.Object[] getActions()
protected abstract java.lang.Object[] getUmlActions()
public void removed(MElementEvent e)
There is also a risk that if this diagram was the one shown in the diagram panel, then it will remain after it has been deleted. so we need to deselect this diagram.
public void propertySet(MElementEvent e)
public void roleAdded(MElementEvent e)
public void roleRemoved(MElementEvent e)
public void listRoleItemSet(MElementEvent e)
public void recovered(MElementEvent e)
public void removeAsTarget()
public void setAsTarget()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ArgoUML © 1996-2003 (20030919) | ArgoUML Project Home | ArgoUML Cookbook |