SAM

org.topcased.modeler.sam.systemdiagram.commands
Class ResizePortContainerCommand

java.lang.Object
  extended by org.eclipse.gef.commands.Command
      extended by org.eclipse.gef.commands.CompoundCommand
          extended by org.topcased.modeler.sam.systemdiagram.commands.ResizePortContainerCommand

Deprecated. Since the use of the BorderAttachedLayout, this command is not useful

public class ResizePortContainerCommand
extends org.eclipse.gef.commands.CompoundCommand

This command add a move command for each Port contained by the EditPart container. The new position is calculated depending on the current position of the Port (on which border it is attached) and the zoom value (the moveDelta is not the same as the resizeDelta which does not care about the current zoom). Created 8 juin 2005


Constructor Summary
ResizePortContainerCommand(org.eclipse.gef.EditPart container, org.eclipse.draw2d.geometry.Dimension sizeDelta)
          Deprecated. The Constructor Determine the new deltas depending on the current zoom and apply it to all the Port
 
Method Summary
 
Methods inherited from class org.eclipse.gef.commands.CompoundCommand
add, canExecute, canUndo, dispose, execute, getChildren, getCommands, getLabel, isEmpty, redo, size, undo, unwrap
 
Methods inherited from class org.eclipse.gef.commands.Command
chain, getDebugLabel, setDebugLabel, setLabel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResizePortContainerCommand

public ResizePortContainerCommand(org.eclipse.gef.EditPart container,
                                  org.eclipse.draw2d.geometry.Dimension sizeDelta)
Deprecated. 
The Constructor Determine the new deltas depending on the current zoom and apply it to all the Port

Parameters:
container - the EditPart that contain the Ports
sizeDelta - the Dimension Delta of the resize command

SAM

Copyright (c) 2005 TOPCASED Contributors 2005 - 2007. All rights reserved.