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 Dimension |
getDefaultMarginValue()
Gets the default value of the
Margins property. |
android.graphics.RectF |
getLayoutArea()
Gets the rectangle in which the layout will try to arrange the nodes,
or null, to use the diagram bounds.
|
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.
|
com.mindfusion.diagramming.builders.TreeMapLayoutBuilder |
init()
Returns a TreeMapLayoutBuilder object used to configure this TreeMapLayout instance.
|
void |
setContainerPadding(float value)
Sets the padding inside containers.
|
void |
setLayoutArea(android.graphics.RectF value)
Sets the rectangle in which the layout will try to arrange the nodes,
or null, to use the diagram bounds.
|
void |
setOrientation(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 com.mindfusion.diagramming.builders.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 Dimension getDefaultMarginValue()
Margins
property.public Orientation getOrientation()
Orientation
enumeration.
The default is Vertical
.public void setOrientation(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 android.graphics.RectF getLayoutArea()
public void setLayoutArea(android.graphics.RectF value)
public float getContainerPadding()
public void setContainerPadding(float value)
public static com.mindfusion.diagramming.builders.TreeMapLayoutBuilder with()
TreeMapLayoutBuilder
instance.public com.mindfusion.diagramming.builders.TreeMapLayoutBuilder init()
TreeMapLayoutBuilder
instance.