Modelers

org.topcased.modeler.tools
Class AutoResizer

java.lang.Object
  extended by org.topcased.modeler.tools.AutoResizer

public class AutoResizer
extends java.lang.Object

This class tries to resize all the given EditParts.


Constructor Summary
AutoResizer()
           
 
Method Summary
 org.eclipse.gef.commands.Command getCommand(java.util.List editParts)
          Returns the autoresize command.
 void setMargin(int m)
          Defines the margin around the inner objects
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AutoResizer

public AutoResizer()
Method Detail

setMargin

public void setMargin(int m)
Defines the margin around the inner objects

Parameters:
m - the margin to use

getCommand

public org.eclipse.gef.commands.Command getCommand(java.util.List editParts)
Returns the autoresize command.

Parameters:
editParts - the list of the EditParts to autoresize
Returns:
the autoresize command

Modelers

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