|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.tigris.gef.base.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 java.lang.Object |
_namespace
|
protected static org.apache.log4j.Logger |
cat
|
(package private) static long |
serialVersionUID
|
private javax.swing.JToolBar |
toolBar
|
Fields inherited from class org.argouml.ui.ArgoDiagram |
TheInstance |
Fields inherited from class org.tigris.gef.base.Diagram |
_comments, _name, _toolBar, NAME_KEY, SCALE_KEY |
Constructor Summary | |
UMLDiagram()
|
|
UMLDiagram(java.lang.Object ns)
|
|
UMLDiagram(java.lang.String diagramName,
java.lang.Object ns)
|
Method Summary | |
void |
deselectAllTools()
Set all toolbar buttons to unselected other then the toolbar button with the supplied action. |
void |
deselectOtherTools(javax.swing.Action otherThanAction)
Set all toolbar buttons to unselected other then the toolbar button with the supplied action. |
java.lang.Object[] |
getActions()
Return actions available for building toolbar or similar. |
java.lang.String |
getClassAndModelID()
|
javax.swing.JToolBar |
getJToolBar()
Get the toolbar for the diagram |
private java.lang.Object[] |
getManipulateActions()
|
java.lang.Object |
getNamespace()
|
java.lang.Object |
getOwner()
|
private java.lang.Object[] |
getShapeActions()
|
private java.lang.Object[] |
getShapePopupActions()
|
protected abstract java.lang.Object[] |
getUmlActions()
Implement on the ancestor to get actions to populate toolbar. |
void |
initialize(java.lang.Object owner)
|
void |
initToolBar()
Create the toolbar based on actions for the spcific diagram subclass. |
void |
listRoleItemSet(ru.novosoft.uml.MElementEvent e)
not used the UMLDiagram is only interested in the removed() event. |
void |
propertySet(ru.novosoft.uml.MElementEvent e)
not used the UMLDiagram is only interested in the removed() event. |
void |
recovered(ru.novosoft.uml.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(ru.novosoft.uml.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(ru.novosoft.uml.MElementEvent e)
not used the UMLDiagram is only interested in the removed() event. |
void |
roleRemoved(ru.novosoft.uml.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, getNodes, getVetoMessage, removeChangeRegistryAsListener, setItemUID, toString |
Methods inherited from class org.tigris.gef.base.Diagram |
add, addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, bringForward, bringToFront, countContained, edgeAdded, edgeRemoved, elements, elementsIn, firePropertyChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, getComments, getGraphController, getGraphModel, getLayer, getName, getScale, getShowSingleMultiplicity, getToolBar, graphChanged, hit, nodeAdded, nodeRemoved, postLoad, postSave, preSave, presentationFor, remove, remove, removeAll, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, reorder, sendBackward, sendToBack, setComments, setGraphModel, setLayer, setScale, setShowSingleMultiplicity, setToolBar |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected static org.apache.log4j.Logger 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 java.lang.Object _namespace
protected DiagramInfo _diagramName
private javax.swing.JToolBar toolBar
static final long serialVersionUID
Constructor Detail |
public UMLDiagram()
public UMLDiagram(java.lang.Object ns)
public UMLDiagram(java.lang.String diagramName, java.lang.Object ns)
Method Detail |
public void initialize(java.lang.Object owner)
initialize
in class ArgoDiagram
Diagram.initialize(Object)
public java.lang.Object getNamespace()
public void setNamespace(java.lang.Object ns)
public java.lang.String getClassAndModelID()
public java.lang.Object getOwner()
public void setName(java.lang.String n) throws java.beans.PropertyVetoException
setName
in class ArgoDiagram
java.beans.PropertyVetoException
public javax.swing.JToolBar getJToolBar()
public void initToolBar()
Diagram.initToolBar()
public java.lang.Object[] getActions()
protected abstract java.lang.Object[] getUmlActions()
private java.lang.Object[] getManipulateActions()
private java.lang.Object[] getShapeActions()
private java.lang.Object[] getShapePopupActions()
public void removed(ru.novosoft.uml.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.
removed
in interface ru.novosoft.uml.MElementListener
public void propertySet(ru.novosoft.uml.MElementEvent e)
propertySet
in interface ru.novosoft.uml.MElementListener
public void roleAdded(ru.novosoft.uml.MElementEvent e)
roleAdded
in interface ru.novosoft.uml.MElementListener
public void roleRemoved(ru.novosoft.uml.MElementEvent e)
roleRemoved
in interface ru.novosoft.uml.MElementListener
public void listRoleItemSet(ru.novosoft.uml.MElementEvent e)
listRoleItemSet
in interface ru.novosoft.uml.MElementListener
public void recovered(ru.novosoft.uml.MElementEvent e)
recovered
in interface ru.novosoft.uml.MElementListener
public void removeAsTarget()
public void setAsTarget()
public void deselectOtherTools(javax.swing.Action otherThanAction)
public void deselectAllTools()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ArgoUML © 1996-2004 (20040316) | ArgoUML Homepage | ArgoUML Developers' page | ArgoUML Cookbook |