Poseidon for UMLTM
  UMLdoc
 PREV      NEXT       FRAMES    NO FRAMES      

com.gentleware.jboogie.openapi

Interface DiCommandFactory

com.gentleware.jboogie.openapi.DiCommandFactory

public interface DiCommandFactory


This factory provides some commands that only affect diagram elements, not the underlying model


 Association Summary
public DiagramFacade  diagramFacade
 
public ProjectImpl  projectImpl
 
public ProjectImpl  projectImpl_1
 
arrow_up
 

 Method Summary
public Command   getFontColorCommand(DiId diId, Color color)
If you want to set the font color in an undo-safe way, do it with this command. 
public Command   getStrokeWidthCommand(DiId diId, Double width)
If you want to set the line width of an element in an undo-safe way, do it with this command. 
public Command   makeCommandAddNodeFromSmElement(DiId newElementDiId, SmId elementSmId, DiId newContainerDiId, Point2D newLocation, GraphNodePointLocator locator)
 
public Command   makeCommandAddNodeFromUmlSmElement(DiId newNodeDiId, SmId exisitingUmlSmNodeSmId, DiId containerDiId, NewPositioner newPositioner, SemanticModelBridgePresentation presentation)
 
public Command   makeCommandAddNodeFromUmlSmElement(DiId newNodeDiId, SmId exisitingUmlSmNodeSmId, DiId containerDiId, Point2D newPosition, SemanticModelBridgePresentation presentation)
 
public Command   makeCommandAddNodeFromUmlSmElement(DiId newNodeDiId, SmId exisitingUmlSmNodeSmId, DiId containerDiId, Point2D newPosition)
 
public Command   makeCommandAddToContainer(DiId containerDiId, Integer indexAsInteger, DiId nodeDiId)
Adds the node given by nodeDiId to the container at the specified index. 
public Command   makeCommandAlign(java.util.List selectedDiIds, Alignment alignment)
 
public Command   makeCommandArrangement(DiId selectedElementDiID, Arrangement arrangement)
 
public Command   makeCommandClearContainedElements(DiId containerDiId)
 
public Command   makeCommandClearWaypoints(DiId edgeDiId)
 
public Command   makeCommandCopy(Collection copyElementDiIds)
 
public Command   makeCommandCreateDiagram(SimpleTypeInfo typeInfo, SmId ownerSmId, String diagramName, DiId diagramDiId, ResourceId resourceId)
 
public Command   makeCommandCreateEllipse(DiId containerDiId, DiId newElementdiId, Double centerX, Double centerY, Double radiusX, Double radiusY)
 
public Command   makeCommandCreateGraphConnector(DiId graphConnectorDiId, DiId graphElementDiId)
 
public Command   makeCommandCreateGraphEdge(DiId id, DiId containerDiId, SimpleTypeInfo simpleTypeInfo)
 
public Command   makeCommandCreateGraphEdge(DiId edgeDiId, DiId containerDiId, SmId modelElementSmId)
 
public Command   makeCommandCreateGraphEdge(DiId edgeDiId, DiId containerDiId, SmId modelElementSmId, SemanticModelBridgePresentation presentation)
 
public Command   makeCommandCreateGraphEdge(DiId edgeDiId, DiId containerDiId, SmId modelElementSmId, SemanticModelBridgePresentation presentation, DiId sourceConnectorDiId, DiId targetConnectorDiId)
 
public Command   makeCommandCreateGraphEdge(DiId edgeDiId, DiId containerDiId, SimpleTypeInfo simpleTypeInfo, DiId sourceConnectorDiId, DiId targetConnectorDiId)
 
public Command   makeCommandCreateGraphNode(DiId nodeDiId, DiId containerDiId, SimpleTypeInfo typeInfo)
 
public Command   makeCommandCreateGraphNode(DiId nodeDiId, DiId containerDiId, SimpleTypeInfo typeInfo, Integer index)
 
public Command   makeCommandCreateGraphNode(DiId nodeDiId, SimpleTypeInfo typeInfo)
 
public Command   makeCommandCreateGraphNode(DiId nodeDiId, SmId modelElementSmId)
 
public Command   makeCommandCreateGraphNode(DiId nodeDiId, DiId containerDiId, SmId modelElementSmId)
 
public Command   makeCommandCreateGraphNode(DiId nodeDiId, DiId containerDiId, SmId modelElementSmId, SemanticModelBridgePresentation presentation)
 
public Command   makeCommandCreateGraphNode(DiId nodeDiId, SmId modelElementSmId, SemanticModelBridgePresentation presentation)
 
public Command   makeCommandCreateGraphNode(DiId nodeDiId, DiId containerDiId, SmId modelElementSmId, Integer containedIndex)
 
public Command   makeCommandCreatePolyline(DiId containerDiId, DiId newElementdiId, List waypoints, Boolean closed)
 
public Command   makeCommandCreateRectangle(DiId containerDiId, DiId newElementdiId, Double x, Double y, Double width, Double height)
 
public Command   makeCommandCreateTextElement(DiId containerDiId, DiId textElementNodeDiId, DiId textElementDiId, Point2D position)
 
public Command   makeCommandCreateTransferable(Object elementMementos)
 
public Command   makeCommandCut(Collection selectedDiIds)
 
public Command   makeCommandDiChangeLayout(DiId diagramDiId, ResourceId resourceId)
Creates a new change layout command. 
public Command   makeCommandDiChangeLayoutInternal(DiId diId, ResourceId resourceId, List positionChangesIds, List propertyChangesIds, List wayPointsChangesIds, List connectorChangesIds, List positionChangesValues, List propertyChangesPropertyNames, List propertyChangesPropertyValues, List wayPointsChangesValues, List connectorChangesValues)
 
public Command   makeCommandDiPaste(DiId diagramElementDiId, DiId containerElementDiId, DiMemento elementMemento)
 
public Command   makeCommandDistribute(List selectedDiIds, Distribute distribute)
 
public Command   makeCommandDropDependentEdgesOnContainer(Collection nodeDiIds)
 
public Command   makeCommandDropNodesOnContainer(DiId containerDiId, Collection nodeDiIds)
 
public Command   makeCommandNudge(List selectedDiIds, Nudge nudge, Double delta)
 
public Command   makeCommandPaste(Collection selectedElementDiIds, Collection transferedElements)
 
public Command   makeCommandReDiPulize(SmId smId)
To redraw all representations of the element based on the current state of the UML element. 
public Command   makeCommandRelayout(DiId diId)
 
public Command   makeCommandRelayout(DiId diId, Boolean recursive)
 
public Command   makeCommandRemoveContainedElement(DiId containerDiId, Integer containedIndex, UpdatePolicy updatePolicy)
 
public Command   makeCommandRemoveDiElement(DiId elementDiId)
This method creates a command that removes one diagram element from the diagram, leaving the underlying modelelements unchanged  
public Command   makeCommandRemoveMultipleDiElements(Collection elementDiIds)
This method creates a command that removes diagram elements from the diagram, leaving the underlying modelelements unchanged  
public Command   makeCommandRemoveMultipleDiElements(Collection elementDiIds, Boolean selectVisibleDiagram)
This method creates a command that removes diagram elements from the diagram, leaving the underlying modelelements unchanged  
public Command   makeCommandRestoreFromDiMemento(DiMemento elementMemento, DiId newDiagramElementDiId)
This method is for the enterprise-edition only, do not use it or you might screw up poseidons internal state  
public Command   makeCommandSameSize(Collection selectedDiIds, Sizement sizement)
 
public Command   makeCommandSetBounds(DiId elementDiID, Double x, Double y, Double width, Double height)
This method returns a command that reshapes a diagram element  
public Command   makeCommandSetBounds(Collection elementDiIds, Double x, Double y, Double width, Double height)
 
public Command   makeCommandSetContainedElement(DiId containerDiId, DiId elementDiId, Integer containedIndex, UpdatePolicy updatePolicy)
 
public Command   makeCommandSetContainedVisibility(DiId graphElementId, SimpleTypeInfo containedTypeInfo, Boolean visibility)
Returns a commands to set the visibility of a contained graph element. 
public Command   makeCommandSetGraphConnectorGraphElement(DiId graphConnectorDiId, DiId graphElementDiId)
 
public Command   makeCommandSetGraphElementElement(DiId diId, SmId smId)
 
public Command   makeCommandSetPolylineClosed(DiId polylineDiId, Boolean closed)
 
public Command   makeCommandSetProperties(DiId diId, String key, String value, Boolean invalidateLayout)
 
public Command   makeCommandSetProperties(DiId diId, String key, String value, List modelElementClassesToCallDiPulizerUpdateFor)
Creates a command that sets a property value at a single DI element. 
public Command   makeCommandSetTextElementText(DiId textElementDiId, String text)
 
public Command   makeCommandSetVisibility(DiId diagramElementId, Boolean visibility)
This method returns a command that sets the visibility of the specified diagram element. 
public Command   makeCommandSwitchSemanticModelBridgePresentation(DiId selectedElementDiID, SemanticModelBridgePresentation tobePresentation)
 
public Command   makeCommandSwitchSemanticModelBridgePresentation(DiId selectedElementDiID, SemanticModelBridgePresentation tobePresentation, Collection smIdsToUpdate)
 
public Command   makeCommandSwitchSemanticModelBridgePresentation(DiId diId, SemanticModelBridgePresentation presentation, Boolean reDiPulize)
Switches the presentation of the given di element. 
public Command   makeCommandTransferToDi(DiMemento undoMemento, DiMemento redoMemento)
 
public Command   makeCommandUpdateAllRenderer(SmId modelElementSmId)
 
public Command   makeDiagramDocumentationCommand(DiId diagramDiId, String doc)
 
public Command   makeFillColorCommand(DiId elementDiId, Color color)
If you want to set the fill color (also known as background color) in an undo-safe way, do it with this command. 
public MacroCommand   makeMacroCommand(ResourceId descriptionResourceId)
Produces an empty macro command. 
public Command   makeStrokeColorCommand(DiId elementDiId, Color color)
If you want to set the stroke color (also known as line color) in an undo-safe way, do it with this command. 
arrow_up
 

Tagged Values
static false
gentleware-imported-line-number 22
gentleware-imported-package-statement-line-number 5
 

 Association Detail

diagramFacade

public DiagramFacade diagramFacade

arrow_up


projectImpl

public ProjectImpl projectImpl

arrow_up


projectImpl_1

public ProjectImpl projectImpl_1

arrow_up
 Method Detail

getFontColorCommand

public Command getFontColorCommand(DiId diId, Color color)


If you want to set the font color in an undo-safe way, do it with this command.  
Parameters:
diId - The modified element.
color - The new color.
Returns:
A command that sets the new color.
arrow_up


getStrokeWidthCommand

public Command getStrokeWidthCommand(DiId diId, Double width)


If you want to set the line width of an element in an undo-safe way, do it with this command.  
Parameters:
diId - The modified element.
width - The new width.
Returns:
A command that sets the new line width.
arrow_up


makeCommandAddNodeFromSmElement

public Command makeCommandAddNodeFromSmElement(DiId newElementDiId, SmId elementSmId, DiId newContainerDiId, Point2D newLocation, GraphNodePointLocator locator)

Parameters:
newElementDiId -
elementSmId -
newContainerDiId -
newLocation -
locator -
Returns:
arrow_up


makeCommandAddNodeFromUmlSmElement

public Command makeCommandAddNodeFromUmlSmElement(DiId newNodeDiId, SmId exisitingUmlSmNodeSmId, DiId containerDiId, NewPositioner newPositioner, SemanticModelBridgePresentation presentation)

Parameters:
newNodeDiId -
exisitingUmlSmNodeSmId -
containerDiId -
newPositioner -
presentation -
Returns:
arrow_up


makeCommandAddNodeFromUmlSmElement

public Command makeCommandAddNodeFromUmlSmElement(DiId newNodeDiId, SmId exisitingUmlSmNodeSmId, DiId containerDiId, Point2D newPosition, SemanticModelBridgePresentation presentation)

Parameters:
newNodeDiId -
exisitingUmlSmNodeSmId -
containerDiId -
newPosition -
presentation -
Returns:
arrow_up


makeCommandAddNodeFromUmlSmElement

public Command makeCommandAddNodeFromUmlSmElement(DiId newNodeDiId, SmId exisitingUmlSmNodeSmId, DiId containerDiId, Point2D newPosition)

Parameters:
newNodeDiId -
exisitingUmlSmNodeSmId -
containerDiId -
newPosition -
Returns:
arrow_up


makeCommandAddToContainer

public Command makeCommandAddToContainer(DiId containerDiId, Integer indexAsInteger, DiId nodeDiId)


Adds the node given by nodeDiId to the container at the specified index.  
Parameters:
containerDiId -
indexAsInteger -
nodeDiId -
Returns:
arrow_up


makeCommandAlign

public Command makeCommandAlign(java.util.List selectedDiIds, Alignment alignment)

Parameters:
selectedDiIds -
alignment -
Returns:
arrow_up


makeCommandArrangement

public Command makeCommandArrangement(DiId selectedElementDiID, Arrangement arrangement)

Parameters:
selectedElementDiID -
arrangement -
Returns:
arrow_up


makeCommandClearContainedElements

public Command makeCommandClearContainedElements(DiId containerDiId)

Parameters:
containerDiId -
Returns:
arrow_up


makeCommandClearWaypoints

public Command makeCommandClearWaypoints(DiId edgeDiId)

Parameters:
edgeDiId -
Returns:
arrow_up


makeCommandCopy

public Command makeCommandCopy(Collection copyElementDiIds)

Parameters:
copyElementDiIds -
Returns:
arrow_up


makeCommandCreateDiagram

public Command makeCommandCreateDiagram(SimpleTypeInfo typeInfo, SmId ownerSmId, String diagramName, DiId diagramDiId, ResourceId resourceId)

Parameters:
typeInfo -
ownerSmId -
diagramName -
diagramDiId -
resourceId -
Returns:
arrow_up


makeCommandCreateEllipse

public Command makeCommandCreateEllipse(DiId containerDiId, DiId newElementdiId, Double centerX, Double centerY, Double radiusX, Double radiusY)

Parameters:
containerDiId -
newElementdiId -
centerX -
centerY -
radiusX -
radiusY -
Returns:
arrow_up


makeCommandCreateGraphConnector

public Command makeCommandCreateGraphConnector(DiId graphConnectorDiId, DiId graphElementDiId)

Parameters:
graphConnectorDiId -
graphElementDiId -
Returns:
arrow_up


makeCommandCreateGraphEdge

public Command makeCommandCreateGraphEdge(DiId id, DiId containerDiId, SimpleTypeInfo simpleTypeInfo)

Parameters:
id -
containerDiId -
simpleTypeInfo -
Returns:
arrow_up


makeCommandCreateGraphEdge

public Command makeCommandCreateGraphEdge(DiId edgeDiId, DiId containerDiId, SmId modelElementSmId)

Parameters:
edgeDiId -
containerDiId -
modelElementSmId -
Returns:
arrow_up


makeCommandCreateGraphEdge

public Command makeCommandCreateGraphEdge(DiId edgeDiId, DiId containerDiId, SmId modelElementSmId, SemanticModelBridgePresentation presentation)

Parameters:
edgeDiId -
containerDiId -
modelElementSmId -
presentation -
Returns:
arrow_up


makeCommandCreateGraphEdge

public Command makeCommandCreateGraphEdge(DiId edgeDiId, DiId containerDiId, SmId modelElementSmId, SemanticModelBridgePresentation presentation, DiId sourceConnectorDiId, DiId targetConnectorDiId)

Parameters:
edgeDiId -
containerDiId -
modelElementSmId -
presentation -
sourceConnectorDiId -
targetConnectorDiId -
Returns:
arrow_up


makeCommandCreateGraphEdge

public Command makeCommandCreateGraphEdge(DiId edgeDiId, DiId containerDiId, SimpleTypeInfo simpleTypeInfo, DiId sourceConnectorDiId, DiId targetConnectorDiId)

Parameters:
edgeDiId -
containerDiId -
simpleTypeInfo -
sourceConnectorDiId -
targetConnectorDiId -
Returns:
arrow_up


makeCommandCreateGraphNode

public Command makeCommandCreateGraphNode(DiId nodeDiId, DiId containerDiId, SimpleTypeInfo typeInfo)

Parameters:
nodeDiId -
containerDiId -
typeInfo -
Returns:
arrow_up


makeCommandCreateGraphNode

public Command makeCommandCreateGraphNode(DiId nodeDiId, DiId containerDiId, SimpleTypeInfo typeInfo, Integer index)

Parameters:
nodeDiId -
containerDiId -
typeInfo -
index -
Returns:
arrow_up


makeCommandCreateGraphNode

public Command makeCommandCreateGraphNode(DiId nodeDiId, SimpleTypeInfo typeInfo)

Parameters:
nodeDiId -
typeInfo -
Returns:
arrow_up


makeCommandCreateGraphNode

public Command makeCommandCreateGraphNode(DiId nodeDiId, SmId modelElementSmId)

Parameters:
nodeDiId -
modelElementSmId -
Returns:
arrow_up


makeCommandCreateGraphNode

public Command makeCommandCreateGraphNode(DiId nodeDiId, DiId containerDiId, SmId modelElementSmId)

Parameters:
nodeDiId -
containerDiId -
modelElementSmId -
Returns:
arrow_up


makeCommandCreateGraphNode

public Command makeCommandCreateGraphNode(DiId nodeDiId, DiId containerDiId, SmId modelElementSmId, SemanticModelBridgePresentation presentation)

Parameters:
nodeDiId -
containerDiId -
modelElementSmId -
presentation -
Returns:
arrow_up


makeCommandCreateGraphNode

public Command makeCommandCreateGraphNode(DiId nodeDiId, SmId modelElementSmId, SemanticModelBridgePresentation presentation)

Parameters:
nodeDiId -
modelElementSmId -
presentation -
Returns:
arrow_up


makeCommandCreateGraphNode

public Command makeCommandCreateGraphNode(DiId nodeDiId, DiId containerDiId, SmId modelElementSmId, Integer containedIndex)

Parameters:
nodeDiId -
containerDiId -
modelElementSmId -
containedIndex -
Returns:
arrow_up


makeCommandCreatePolyline

public Command makeCommandCreatePolyline(DiId containerDiId, DiId newElementdiId, List waypoints, Boolean closed)

Parameters:
containerDiId -
newElementdiId -
waypoints -
closed -
Returns:
arrow_up


makeCommandCreateRectangle

public Command makeCommandCreateRectangle(DiId containerDiId, DiId newElementdiId, Double x, Double y, Double width, Double height)

Parameters:
containerDiId -
newElementdiId -
x -
y -
width -
height -
Returns:
arrow_up


makeCommandCreateTextElement

public Command makeCommandCreateTextElement(DiId containerDiId, DiId textElementNodeDiId, DiId textElementDiId, Point2D position)

Parameters:
containerDiId -
textElementNodeDiId -
textElementDiId -
position -
Returns:
arrow_up


makeCommandCreateTransferable

public Command makeCommandCreateTransferable(Object elementMementos)

Parameters:
elementMementos -
Returns:
arrow_up


makeCommandCut

public Command makeCommandCut(Collection selectedDiIds)

Parameters:
selectedDiIds -
Returns:
arrow_up


makeCommandDiChangeLayout

public Command makeCommandDiChangeLayout(DiId diagramDiId, ResourceId resourceId)


Creates a new change layout command.  
Parameters:
diagramDiId - the Id of the diagram whose layout changes.
resourceId - resources of the command.
Returns:
arrow_up


makeCommandDiChangeLayoutInternal

public Command makeCommandDiChangeLayoutInternal(DiId diId, ResourceId resourceId, List positionChangesIds, List propertyChangesIds, List wayPointsChangesIds, List connectorChangesIds, List positionChangesValues, List propertyChangesPropertyNames, List propertyChangesPropertyValues, List wayPointsChangesValues, List connectorChangesValues)

Parameters:
diId -
resourceId -
positionChangesIds -
propertyChangesIds -
wayPointsChangesIds -
connectorChangesIds -
positionChangesValues -
propertyChangesPropertyNames -
propertyChangesPropertyValues -
wayPointsChangesValues -
connectorChangesValues -
Returns:
arrow_up


makeCommandDiPaste

public Command makeCommandDiPaste(DiId diagramElementDiId, DiId containerElementDiId, DiMemento elementMemento)

Parameters:
diagramElementDiId -
containerElementDiId -
elementMemento -
Returns:
arrow_up


makeCommandDistribute

public Command makeCommandDistribute(List selectedDiIds, Distribute distribute)

Parameters:
selectedDiIds -
distribute -
Returns:
arrow_up


makeCommandDropDependentEdgesOnContainer

public Command makeCommandDropDependentEdgesOnContainer(Collection nodeDiIds)

Parameters:
nodeDiIds -
Returns:
arrow_up


makeCommandDropNodesOnContainer

public Command makeCommandDropNodesOnContainer(DiId containerDiId, Collection nodeDiIds)

Parameters:
containerDiId -
nodeDiIds -
Returns:
arrow_up


makeCommandNudge

public Command makeCommandNudge(List selectedDiIds, Nudge nudge, Double delta)

Parameters:
selectedDiIds -
nudge -
delta -
Returns:
arrow_up


makeCommandPaste

public Command makeCommandPaste(Collection selectedElementDiIds, Collection transferedElements)

Parameters:
selectedElementDiIds -
transferedElements -
Returns:
arrow_up


makeCommandReDiPulize

public Command makeCommandReDiPulize(SmId smId)


To redraw all representations of the element based on the current state of the UML element.  
Parameters:
smId - the SmId of the element that needs redraw
Returns:
arrow_up


makeCommandRelayout

public Command makeCommandRelayout(DiId diId)

Parameters:
diId -
Returns:
arrow_up


makeCommandRelayout

public Command makeCommandRelayout(DiId diId, Boolean recursive)

Parameters:
diId -
recursive -
Returns:
arrow_up


makeCommandRemoveContainedElement

public Command makeCommandRemoveContainedElement(DiId containerDiId, Integer containedIndex, UpdatePolicy updatePolicy)

Parameters:
containerDiId -
containedIndex -
updatePolicy -
Returns:
arrow_up


makeCommandRemoveDiElement

public Command makeCommandRemoveDiElement(DiId elementDiId)


This method creates a command that removes one diagram element from the diagram, leaving the underlying modelelements unchanged  
Parameters:
elementDiId - the DiIds which represents the diagram element that should be removed
Returns:
a command that removes a single diagram element - as soon as the command is executed
arrow_up


makeCommandRemoveMultipleDiElements

public Command makeCommandRemoveMultipleDiElements(Collection elementDiIds)


This method creates a command that removes diagram elements from the diagram, leaving the underlying modelelements unchanged  
Parameters:
elementDiIds - a Collection of DiIds which represent the diagram elements that should be removed
Returns:
a command that removes diagram elements - as soon as the command is executed
arrow_up


makeCommandRemoveMultipleDiElements

public Command makeCommandRemoveMultipleDiElements(Collection elementDiIds, Boolean selectVisibleDiagram)


This method creates a command that removes diagram elements from the diagram, leaving the underlying modelelements unchanged  
Parameters:
elementDiIds - a Collection of DiIds which represent the diagram elements that should be removed
selectVisibleDiagram - if true, selects the visible diagram before removing the elements
Returns:
a command that removes diagram elements - as soon as the command is executed
arrow_up


makeCommandRestoreFromDiMemento

public Command makeCommandRestoreFromDiMemento(DiMemento elementMemento, DiId newDiagramElementDiId)


This method is for the enterprise-edition only, do not use it or you might screw up poseidons internal state  
Parameters:
elementMemento -
newDiagramElementDiId -
Returns:
arrow_up


makeCommandSameSize

public Command makeCommandSameSize(Collection selectedDiIds, Sizement sizement)

Parameters:
selectedDiIds -
sizement -
Returns:
arrow_up


makeCommandSetBounds

public Command makeCommandSetBounds(DiId elementDiID, Double x, Double y, Double width, Double height)


This method returns a command that reshapes a diagram element  
Parameters:
elementDiID - the DiId of the element that is to be reshaped
x - the new x position
y - the new y position
width - the new width - if the diagramelement has one (e.g. we are talking about a graphnode), otherwise ignored
height - the new height - if the diagramelement has one
Returns:
a command that will set the diagramelements bounds
arrow_up


makeCommandSetBounds

public Command makeCommandSetBounds(Collection elementDiIds, Double x, Double y, Double width, Double height)

Parameters:
elementDiIds -
x -
y -
width -
height -
Returns:
arrow_up


makeCommandSetContainedElement

public Command makeCommandSetContainedElement(DiId containerDiId, DiId elementDiId, Integer containedIndex, UpdatePolicy updatePolicy)

Parameters:
containerDiId -
elementDiId -
containedIndex -
updatePolicy -
Returns:
arrow_up


makeCommandSetContainedVisibility

public Command makeCommandSetContainedVisibility(DiId graphElementId, SimpleTypeInfo containedTypeInfo, Boolean visibility)


Returns a commands to set the visibility of a contained graph element. The graph element for which the visibiliy is to set is specified by the given type info.  
Parameters:
graphElementId - id of the outer graph element
containedTypeInfo - type info of the contained graph element
visibility - visibility to set
Returns:
arrow_up


makeCommandSetGraphConnectorGraphElement

public Command makeCommandSetGraphConnectorGraphElement(DiId graphConnectorDiId, DiId graphElementDiId)

Parameters:
graphConnectorDiId -
graphElementDiId -
Returns:
arrow_up


makeCommandSetGraphElementElement

public Command makeCommandSetGraphElementElement(DiId diId, SmId smId)

Parameters:
diId -
smId -
Returns:
arrow_up


makeCommandSetPolylineClosed

public Command makeCommandSetPolylineClosed(DiId polylineDiId, Boolean closed)

Parameters:
polylineDiId -
closed -
Returns:
arrow_up


makeCommandSetProperties

public Command makeCommandSetProperties(DiId diId, String key, String value, Boolean invalidateLayout)

Parameters:
diId -
key -
value -
invalidateLayout -
Returns:
arrow_up


makeCommandSetProperties

public Command makeCommandSetProperties(DiId diId, String key, String value, List modelElementClassesToCallDiPulizerUpdateFor)


Creates a command that sets a property value at a single DI element. Renderer.update() will be called for the DI element all recursively for all its contained elements  
Parameters:
diId - the diId of the element that will receive the new property value
key - the key of the new property
value - the value of the new property. if null, the property will be removed; this has the effect of the element inheriting the property value from its parent.
modelElementClassesToCallDiPulizerUpdateFor -
Returns:
the new command
arrow_up


makeCommandSetTextElementText

public Command makeCommandSetTextElementText(DiId textElementDiId, String text)

Parameters:
textElementDiId -
text -
Returns:
arrow_up


makeCommandSetVisibility

public Command makeCommandSetVisibility(DiId diagramElementId, Boolean visibility)


This method returns a command that sets the visibility of the specified diagram element.  
Parameters:
diagramElementId - diagram element id to change
visibility - visibilityto set
Returns:
a command that will set the visibility
arrow_up


makeCommandSwitchSemanticModelBridgePresentation

public Command makeCommandSwitchSemanticModelBridgePresentation(DiId selectedElementDiID, SemanticModelBridgePresentation tobePresentation)

Parameters:
selectedElementDiID -
tobePresentation -
Returns:
arrow_up


makeCommandSwitchSemanticModelBridgePresentation

public Command makeCommandSwitchSemanticModelBridgePresentation(DiId selectedElementDiID, SemanticModelBridgePresentation tobePresentation, Collection smIdsToUpdate)

Parameters:
selectedElementDiID -
tobePresentation -
smIdsToUpdate -
Returns:
arrow_up


makeCommandSwitchSemanticModelBridgePresentation

public Command makeCommandSwitchSemanticModelBridgePresentation(DiId diId, SemanticModelBridgePresentation presentation, Boolean reDiPulize)


Switches the presentation of the given di element.  
Parameters:
diId -
presentation -
reDiPulize - if true, redipulize the element
Returns:
arrow_up


makeCommandTransferToDi

public Command makeCommandTransferToDi(DiMemento undoMemento, DiMemento redoMemento)

Parameters:
undoMemento -
redoMemento -
Returns:
arrow_up


makeCommandUpdateAllRenderer

public Command makeCommandUpdateAllRenderer(SmId modelElementSmId)

Parameters:
modelElementSmId -
Returns:
arrow_up


makeDiagramDocumentationCommand

public Command makeDiagramDocumentationCommand(DiId diagramDiId, String doc)

Parameters:
diagramDiId -
doc -
Returns:
arrow_up


makeFillColorCommand

public Command makeFillColorCommand(DiId elementDiId, Color color)


If you want to set the fill color (also known as background color) in an undo-safe way, do it with this command.  
Parameters:
elementDiId - DiId of the modified element.
color - The new color.
Returns:
A command that sets the new color.
arrow_up


makeMacroCommand

public MacroCommand makeMacroCommand(ResourceId descriptionResourceId)


Produces an empty macro command.  
Parameters:
descriptionResourceId -
Returns:
arrow_up


makeStrokeColorCommand

public Command makeStrokeColorCommand(DiId elementDiId, Color color)


If you want to set the stroke color (also known as line color) in an undo-safe way, do it with this command.  
Parameters:
elementDiId - DiId of the modified element.
color - The new color.
Returns:
A command that sets the new color.
arrow_up
Created  2004 - 12 - 1

    Poseidon for UMLTM
  UMLdoc
 PREV  CLASSIFIER    NEXT  CLASSIFIER     FRAMES    NO FRAMES      
SUMMARY:   INNER | ATTR | ASSOC | CONSTR | METHOD     DETAIL:   INNER | ATTR | ASSOC | CONSTR | METHOD     DIAGRAMS:   COLLAB | SEQ | STATE | ACTIV

Generated with Poseidon for UMLTM.
Poseidon is a registered trademark of Gentleware AG in Germany, USA and other countries. Copyright 2003-2004 Gentleware AG, Schanzenstr. 70, 20357 Hamburg, Germany. All Rights Reserved.

UML is a trademark or registered trademark of Object Management Group, Inc. in the U.S. and other countries.