public class TreeMapLayout extends AbstractLayout
Constructor and Description |
---|
TreeMapLayout()
Initializes a new instance of the
TreeMapLayout class
with the default settings. |
Modifier and Type | Method and Description |
---|---|
boolean |
arrange(Diagram diagram,
DiagramItemList items)
Applies the layout to the specified diagram.
|
float |
getContainerPadding()
Gets the padding inside containers.
|
protected XDimension2D.Double |
getDefaultMarginValue()
Gets the default value of the
Margins property. |
java.awt.geom.Rectangle2D.Float |
getLayoutArea()
Gets the rectangle in which the layout will try to arrange the nodes,
or null, to use the diagram bounds.
|
com.mindfusion.common.Orientation |
getOrientation()
Gets the orientation of the arranged diagram.
|
float |
getPadding()
Gets the distance between adjacent nodes.
|
boolean |
getSquarify()
Gets a value indicating whether the layout should attempt to
keep the dimension ratio of the nodes closer to 1.
|
TreeMapLayoutBuilder |
init()
Returns a TreeMapLayoutBuilder object used to configure this TreeMapLayout instance.
|
void |
setContainerPadding(float value)
Sets the padding inside containers.
|
void |
setLayoutArea(java.awt.geom.Rectangle2D.Float value)
Sets the rectangle in which the layout will try to arrange the nodes,
or null, to use the diagram bounds.
|
void |
setOrientation(com.mindfusion.common.Orientation value)
Sets the orientation of the arranged diagram.
|
void |
setPadding(float value)
Sets the distance between adjacent nodes.
|
void |
setSquarify(boolean value)
Sets a value indicating whether the layout should attempt to
keep the dimension ratio of the nodes closer to 1.
|
static TreeMapLayoutBuilder |
with()
Returns a TreeMapLayoutBuilder object used to configure and create new TreeMapLayout instances.
|
arrange, getAnchoring, getGrowToFit, getKeepGroupLayout, getLayoutLink, getLayoutNode, getMargins, getMultipleGraphsPlacement, getProgress, removeMidleSegmentPoint, setAnchoring, setGrowToFit, setKeepGroupLayout, setLayoutLink, setLayoutNode, setMargins, setMultipleGraphsPlacement, setProgress
public TreeMapLayout()
TreeMapLayout
class
with the default settings.public boolean arrange(Diagram diagram, DiagramItemList items)
arrange
in class AbstractLayout
diagram
- The Diagram that should be arranged.items
- A collection of nodes and links from diagram that define
the subgraph to arrange.protected XDimension2D.Double getDefaultMarginValue()
Margins
property.public com.mindfusion.common.Orientation getOrientation()
Orientation
enumeration.
The default is Vertical
.public void setOrientation(com.mindfusion.common.Orientation value)
value
- A member of the Orientation
enumeration.
The default is Vertical
.public boolean getSquarify()
public void setSquarify(boolean value)
public float getPadding()
public void setPadding(float value)
value
- A real number specifying the distance between adjacent nodes.public java.awt.geom.Rectangle2D.Float getLayoutArea()
public void setLayoutArea(java.awt.geom.Rectangle2D.Float value)
public float getContainerPadding()
public void setContainerPadding(float value)
public static TreeMapLayoutBuilder with()
TreeMapLayoutBuilder
instance.public TreeMapLayoutBuilder init()
TreeMapLayoutBuilder
instance.