|
Search this API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object y.layout.AbstractLayoutStage y.layout.MinNodeSizeStage
public class MinNodeSizeStage
This layout stage enforces a given minimum width/height of the nodes of a graph during the layout process. Therefore it temporarily enlarges nodes whose width/height fall below the specified minimum values.
Field Summary |
---|
Fields inherited from interface y.layout.Layouter |
---|
EDGE_ID_DPKEY, NODE_ID_DPKEY, SELECTED_EDGES, SELECTED_NODES |
Constructor Summary | |
---|---|
MinNodeSizeStage(Layouter core)
Instantiates a new MinNodeSizeStage that wraps the given core layouter. |
|
MinNodeSizeStage(Layouter core,
double minWidth,
double minHeight)
Instantiates a new MinNodeSizeStage that wraps the given core layouter. |
Method Summary | |
---|---|
boolean |
canLayout(LayoutGraph graph)
Returns true iff the given graph can be laid
out by this algorithm. |
void |
doLayout(LayoutGraph graph)
Main layout routine that assigns new layout information to the given graph. |
Methods inherited from class y.layout.AbstractLayoutStage |
---|
canLayoutCore, doLayoutCore, getCoreLayouter, setCoreLayouter |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MinNodeSizeStage(Layouter core, double minWidth, double minHeight)
core
- The core layouter.minWidth
- The minimum width of nodes that should be enforced.minHeight
- The minimum height of nodes that should be enforced.public MinNodeSizeStage(Layouter core)
core
- The core layouter.MinNodeSizeStage(Layouter,double,double)
Method Detail |
---|
public boolean canLayout(LayoutGraph graph)
Layouter
true
iff the given graph can be laid
out by this algorithm. Calling doLayout
with
the given graph as its argument will only success if
this method returns true
.
public void doLayout(LayoutGraph graph)
Layouter
|
© Copyright 2000-2013, yWorks GmbH. All rights reserved. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |