public class KanCompactor extends Object
Modifier and Type | Field and Description |
---|---|
static NodeDpKey<Integer> |
BORDER_DPKEY |
protected short |
compactionAlgorithm
the algorithm used.
|
protected LayoutGraph |
graph |
protected int |
grid
grid size.
|
protected com.yworks.yfiles.layout.orthogonal.QuasiOrthogonalShape |
qos |
protected int |
visibilityPostProc
postprocessing.
|
Constructor and Description |
---|
KanCompactor()
Initializes a new instance of the KanCompactor class.
|
Modifier and Type | Method and Description |
---|---|
void |
compact()
Performs the compaction of an orthogonal shape of a simple planar graph.
|
protected com.yworks.yfiles.layout.orthogonal.ICompactionAlgorithm |
getCompactorInstance()
Gets an instance of compactor to be used.
|
short |
getNodeModel()
Gets the node model which is used.
|
int |
getVisibilityPostprocessing()
Gets how postprocessing based on the visibility of segments should be performed.
|
boolean |
isConstraintLayouterEnabled() |
void |
setCompactionAlgorithm(short value)
Sets if rectangular decomposition should be used.
|
void |
setConstraintLayouterEnabled(boolean value) |
void |
setGrid(int value)
Sets the grid size to use.
|
void |
setNodeModel(short value)
Sets the node model which is used.
|
void |
setQuasiOrthogonalShape(com.yworks.yfiles.layout.orthogonal.QuasiOrthogonalShape value)
Sets the planar graph.
|
void |
setSeparationHeuristics(com.yworks.yfiles.layout.orthogonal.ISeparationHeuristic value) |
void |
setVisibilityPostprocessing(int value)
Sets how postprocessing based on the visibility of segments should be performed.
|
protected short compactionAlgorithm
protected LayoutGraph graph
protected int grid
protected com.yworks.yfiles.layout.orthogonal.QuasiOrthogonalShape qos
protected int visibilityPostProc
public KanCompactor()
public void compact()
protected com.yworks.yfiles.layout.orthogonal.ICompactionAlgorithm getCompactorInstance()
public short getNodeModel()
setNodeModel(short)
public int getVisibilityPostprocessing()
setVisibilityPostprocessing(int)
public boolean isConstraintLayouterEnabled()
public void setCompactionAlgorithm(short value)
value
- The CompactionAlgorithm to set.public void setConstraintLayouterEnabled(boolean value)
public void setGrid(int value)
value
- The Grid to set.public void setNodeModel(short value)
value
- The NodeModel to set.getNodeModel()
public void setQuasiOrthogonalShape(com.yworks.yfiles.layout.orthogonal.QuasiOrthogonalShape value)
value
- The QuasiOrthogonalShape to set.public void setSeparationHeuristics(com.yworks.yfiles.layout.orthogonal.ISeparationHeuristic value)
public void setVisibilityPostprocessing(int value)
value
- The VisibilityPostprocessing to set.getVisibilityPostprocessing()