org.argouml.uml.diagram.static_structure.ui
Class UMLClassDiagram
java.lang.Object
org.tigris.gef.base.Diagram
org.argouml.ui.ArgoDiagram
org.argouml.uml.diagram.ui.UMLDiagram
org.argouml.uml.diagram.static_structure.ui.UMLClassDiagram
- All Implemented Interfaces:
- EventListener, org.tigris.gef.graph.GraphListener, PropertyChangeListener, Serializable
- public class UMLClassDiagram
- extends UMLDiagram
- See Also:
- Serialized Form
Fields inherited from class org.argouml.uml.diagram.ui.UMLDiagram |
|
Fields inherited from class org.tigris.gef.base.Diagram |
_comments, _name, _toolBar, NAME_KEY, SCALE_KEY |
Methods inherited from class org.argouml.uml.diagram.ui.UMLDiagram |
deselectAllTools, deselectOtherTools, getActions, getClassAndModelID, getJToolBar, getNamespace, getNextDiagramSerial, getOwner, initialize, initToolBar, makeCreateAssociationAction, makeCreateEdgeAction, makeCreateNodeAction, needsToBeRemoved, propertyChange, removeAsTarget, resetDiagramSerial, setAsTarget |
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 |
LOG
private static final Logger LOG
actionAssociationClass
private Action actionAssociationClass
actionClass
private Action actionClass
actionObject
private Action actionObject
actionInterface
private Action actionInterface
actionDependency
private Action actionDependency
actionPermission
private Action actionPermission
actionUsage
private Action actionUsage
actionLink
private Action actionLink
actionGeneralization
private Action actionGeneralization
actionRealization
private Action actionRealization
actionPackage
private Action actionPackage
actionModel
private Action actionModel
actionSubsystem
private Action actionSubsystem
actionAssociation
private Action actionAssociation
actionAggregation
private Action actionAggregation
actionComposition
private Action actionComposition
actionUniAssociation
private Action actionUniAssociation
actionUniAggregation
private Action actionUniAggregation
actionUniComposition
private Action actionUniComposition
actionAttribute
private Action actionAttribute
actionOperation
private Action actionOperation
UMLClassDiagram
public UMLClassDiagram()
- Constructor.
UMLClassDiagram
public UMLClassDiagram(String name,
Object namespace)
- Constructor.
- Parameters:
name
- the name for the new diagramnamespace
- the namespace for the new diagram
UMLClassDiagram
public UMLClassDiagram(Object m)
- The constructor. A default unique diagram name is constructed.
- Parameters:
m
- the namespace
setNamespace
public void setNamespace(Object ns)
- Description copied from class:
UMLDiagram
- Sets the namespace of the Diagram, and
adds the diagram as a listener of its namespace in the UML model
(so that it can delete itself when the model element is deleted).
- Overrides:
setNamespace
in class UMLDiagram
- Parameters:
ns
- the namespace for the diagram- See Also:
UMLDiagram.setNamespace(java.lang.Object)
getUmlActions
protected Object[] getUmlActions()
- Get the actions from which to create a toolbar or equivilent
graphic trigger.
- Specified by:
getUmlActions
in class UMLDiagram
- Returns:
- the actions structure
- See Also:
UMLDiagram.getUmlActions()
getPackageActions
private Object[] getPackageActions()
getDependencyActions
private Object[] getDependencyActions()
- Return an array of dependency actions in the
pattern of which to build a popup toolbutton.
getAssociationActions
private Object[] getAssociationActions()
- Return an array of association actions in the
pattern of which to build a popup toolbutton.
getNewDiagramName
protected String getNewDiagramName()
- Creates a new diagramname.
- Returns:
- String
getLabelName
public String getLabelName()
- Specified by:
getLabelName
in class UMLDiagram
- Returns:
- a string that can be used as a label for this kind of diagram
- See Also:
UMLDiagram.getLabelName()
getActionAggregation
protected Action getActionAggregation()
- Returns:
- Returns the actionAggregation.
getActionAssociation
protected Action getActionAssociation()
- Returns:
- Returns the actionAssociation.
getActionClass
protected Action getActionClass()
- Returns:
- Returns the actionClass.
getActionAssociationClass
protected Action getActionAssociationClass()
- Returns:
- Returns the actionAssociationClass.
getActionComposition
protected Action getActionComposition()
- Returns:
- Returns the actionComposition.
getActionDependency
protected Action getActionDependency()
- Returns:
- Returns the actionDepend.
getActionGeneralization
protected Action getActionGeneralization()
- Returns:
- Returns the actionGeneralize.
getActionInterface
protected Action getActionInterface()
- Returns:
- Returns the actionInterface.
getActionLink
protected Action getActionLink()
- Returns:
- Returns the actionLink.
getActionModel
protected Action getActionModel()
- Returns:
- Returns the actionModel.
getActionObject
protected Action getActionObject()
- Returns:
- Returns the actionObject.
getActionPackage
protected Action getActionPackage()
- Returns:
- Returns the actionPackage.
getActionPermission
protected Action getActionPermission()
- Returns:
- Returns the actionPermission.
getActionRealization
protected Action getActionRealization()
- Returns:
- Returns the actionRealize.
getActionSubsystem
protected Action getActionSubsystem()
- Returns:
- Returns the actionSubsystem.
getActionUniAggregation
protected Action getActionUniAggregation()
- Returns:
- Returns the actionUniAggregation.
getActionUniAssociation
protected Action getActionUniAssociation()
- Returns:
- Returns the actionUniAssociation.
getActionUniComposition
protected Action getActionUniComposition()
- Returns:
- Returns the actionUniComposition.
getActionUsage
protected Action getActionUsage()
- Returns:
- Returns the actionUsage.
getActionAttribute
private Action getActionAttribute()
- Returns:
- Returns the actionAttribute.
getActionOperation
private Action getActionOperation()
- Returns:
- Returns the actionOperation.