|
Modelers | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.topcased.modeler.tools.AutoLayout
public class AutoLayout
This class computes the command that autolayouts a list of GraphNodes.
creation : 4 mai 2005
Constructor Summary | |
---|---|
AutoLayout(org.eclipse.gef.GraphicalEditPart container,
boolean fail)
Creates an autolayout algorithm for the given diagram. |
Method Summary | |
---|---|
protected org.eclipse.gef.commands.Command |
getCommand(org.eclipse.draw2d.graph.DirectedGraph g)
Creates the list of commands for the given DirectedGraph |
org.eclipse.gef.commands.Command |
getCommand(java.util.List elements)
Returns the autolayout command |
void |
setMargin(int margin)
Define a margin in the autolayout |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AutoLayout(org.eclipse.gef.GraphicalEditPart container, boolean fail)
diag
- the diagram where the objects are layoutcontainer
- the container EditPartfail
- If tset to true
, the autolayout will not
return the command if one of the node is out of the diagramMethod Detail |
---|
public org.eclipse.gef.commands.Command getCommand(java.util.List elements) throws BoundsFormatException
elements
- the list of elements to autolayout
BoundsFormatException
protected org.eclipse.gef.commands.Command getCommand(org.eclipse.draw2d.graph.DirectedGraph g) throws BoundsFormatException
g
- the autolayout graph
BoundsFormatException
- if the object cannot be autolayout (diagram
too small)public void setMargin(int margin)
margin
- The margin to set.
|
Modelers | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright (c) 2005 TOPCASED Contributors 2005 - 2007. All rights reserved.