public class FreeSpaceLayouter extends ProcessLayouter
Modifier and Type | Field and Description |
---|---|
static int |
PADDING_RIGHT_AFTER_EXTENSION |
LAYOUT_HORIZONTAL, LAYOUT_VERTICAL
Constructor and Description |
---|
FreeSpaceLayouter() |
Modifier and Type | Method and Description |
---|---|
java.util.Set<NodeInterface> |
getChangedNodes()
return a set containing all nodes which were
moved or resized (in case of pools) during the layout process
|
java.lang.String |
getDisplayName() |
java.util.HashMap<NodeInterface,java.awt.Point> |
getOriginalPositions()
returns a map which contains the position the changed nodes
had before the layouting process
|
void |
layoutModel(AbstractModelAdapter model,
int xstart,
int ystart,
int direction)
Layouts the model - changes the x and y positions of all elements.
|
void |
setSelectedNode(NodeInterface selectedNode) |
void |
setSpaceToFree(int space) |
getUnroutedEdges, layoutModel
public static final int PADDING_RIGHT_AFTER_EXTENSION
public java.lang.String getDisplayName()
getDisplayName
in class ProcessLayouter
public void layoutModel(AbstractModelAdapter model, int xstart, int ystart, int direction) throws java.lang.Exception
ProcessLayouter
layoutModel
in class ProcessLayouter
direction
- One of LAYOUT_VERTICAL or LAYOUT_HORIZONTALjava.lang.Exception
public java.util.Set<NodeInterface> getChangedNodes()
public java.util.HashMap<NodeInterface,java.awt.Point> getOriginalPositions()
public void setSpaceToFree(int space)
public void setSelectedNode(NodeInterface selectedNode)
setSelectedNode
in class ProcessLayouter