public class LayoutGeneratorNaive extends Object implements LayoutGenerator
| Constructor and Description |
|---|
LayoutGeneratorNaive()
Default constructor.
|
LayoutGeneratorNaive(boolean pdebug)
Constructor with debug-functionality.
|
| Modifier and Type | Method and Description |
|---|---|
void |
generateLayout()
Applies all steps of the layout, whose launch-parameters are set to true.
|
boolean |
getAutoscaleNodes()
If set to true, subflow nodes in the given workflow are automatically
scaled to fit their contents.
|
boolean |
getDebug()
If set to true, debugging output will be printed in the command line.
|
int |
getGraphmode()
Returns the set input type.
|
boolean |
getLaunchCalculateHorizontalPositions()
If set to true, the horizontal position for each layer is calculated and
changed.
|
boolean |
getLaunchCalculateVerticalPositions()
If set to true, the vertical position for each node is calculated and
changed.
|
boolean |
getLaunchCreateLayering()
If set to true, a new layering for the given graph is created.
|
boolean |
getLaunchRemoveCycles()
If set to true, a depth-first-search is performed and all back edges are
removed from the model graph.
|
int[] |
getLayering()
Returns the layering of the current graph as an array of layer indices.
|
LinkedList<edu.uci.ics.jung.graph.util.Pair<Integer>> |
getModelGraph()
Returns the Graph modeled after the workflow.
|
Collection<VNode> |
getNodelist()
Returns a list of the nodes to be laid out.
|
boolean |
getRecursive()
If set to true, the layout is applied to all subflows of the given
workflow recursively.
|
double |
getScaling()
Returns the scaling parameter of the algorithm.
|
double |
getSubflowscale()
Returns the scaling factor that is used to scale subflow-nodes in the
autoscaleNodes procedure.
|
VFlowModel |
getWorkflow()
Returns the workflow to be laid out.
|
void |
setAutoscaleNodes(boolean pautoscaleNodes)
If set to true, subflow nodes in the given workflow are automatically
scaled to fit their contents.
|
void |
setDebug(boolean pdebug)
If set to true, debugging output will be printed in the command line.
|
void |
setGraphmode(int pgraphmode)
Sets the input type.
|
void |
setLaunchCalculateHorizontalPositions(boolean plaunchCalculateHorizontalPositions)
If set to true, the horizontal position for each layer is calculated and
changed.
|
void |
setLaunchCalculateVerticalPositions(boolean plaunchCalculateVerticalPositions)
If set to true, the vertical position for each node is calculated and
changed.
|
void |
setLaunchCreateLayering(boolean plaunchCreateLayering)
If set to true, a new layering for the given graph is created.
|
void |
setLaunchRemoveCycles(boolean plaunchRemoveCycles)
If set to true, a depth-first-search is performed and all back edges are
removed from the model graph.
|
void |
setLayering(int[] playering)
Sets the layering of the current graph as an array of layer indices.
|
void |
setModelGraph(LinkedList<edu.uci.ics.jung.graph.util.Pair<Integer>> pconnectionList)
Sets the model graph.
|
void |
setNodelist(Collection<VNode> pnodelist)
Sets the list of nodes to be laid out.
|
void |
setRecursive(boolean precursive)
If set to true, the layout is applied to all subflows of the given
workflow recursively.
|
void |
setScaling(double pscaling)
Sets the scaling parameter of the algorithm.
|
void |
setSubflowscale(double psubflowscale)
Sets the scaling factor that is used to scale subflow-nodes in the
autoscaleNodes procedure.
|
boolean |
setUp()
Sets up the model-fields.
|
void |
setWorkflow(VFlowModel pworkflow)
Sets the workflow to be laid out.
|
public LayoutGeneratorNaive()
public LayoutGeneratorNaive(boolean pdebug)
pdebug - booleanpublic VFlowModel getWorkflow()
getWorkflow in interface LayoutGeneratorpublic Collection<VNode> getNodelist()
public boolean getRecursive()
getRecursive in interface LayoutGeneratorpublic boolean getAutoscaleNodes()
getAutoscaleNodes in interface LayoutGeneratorpublic int getGraphmode()
public boolean getLaunchRemoveCycles()
public boolean getLaunchCreateLayering()
public boolean getLaunchCalculateVerticalPositions()
public boolean getLaunchCalculateHorizontalPositions()
public double getScaling()
public double getSubflowscale()
public boolean getDebug()
getDebug in interface LayoutGeneratorpublic LinkedList<edu.uci.ics.jung.graph.util.Pair<Integer>> getModelGraph()
public int[] getLayering()
public void setWorkflow(VFlowModel pworkflow)
setWorkflow in interface LayoutGeneratorpworkflow - VFlowModelpublic void setNodelist(Collection<VNode> pnodelist)
pnodelist - Collectionpublic void setRecursive(boolean precursive)
setRecursive in interface LayoutGeneratorprecursive - booleanpublic void setAutoscaleNodes(boolean pautoscaleNodes)
setAutoscaleNodes in interface LayoutGeneratorpautoscaleNodes - booleanpublic void setGraphmode(int pgraphmode)
pgraphmode - intpublic void setLaunchRemoveCycles(boolean plaunchRemoveCycles)
plaunchRemoveCycles - booleanpublic void setLaunchCreateLayering(boolean plaunchCreateLayering)
plaunchCreateLayering - booleanpublic void setLaunchCalculateVerticalPositions(boolean plaunchCalculateVerticalPositions)
plaunchCalculateVerticalPositions - booleanpublic void setLaunchCalculateHorizontalPositions(boolean plaunchCalculateHorizontalPositions)
plaunchCalculateHorizontalPositions - booleanpublic void setScaling(double pscaling)
pscaling - doublepublic void setSubflowscale(double psubflowscale)
psubflowscale - doublepublic void setDebug(boolean pdebug)
setDebug in interface LayoutGeneratorpdebug - booleanpublic void setModelGraph(LinkedList<edu.uci.ics.jung.graph.util.Pair<Integer>> pconnectionList)
pconnectionList - LinkedListpublic void setLayering(int[] playering)
playering - int[]public boolean setUp()
public void generateLayout()
generateLayout in interface LayoutGenerator