public abstract class AbstractLayout
extends java.lang.Object
Modifier | Constructor and Description |
---|---|
protected |
AbstractLayout()
Initializes a new instance of the AbstractLayout class.
|
Modifier and Type | Method and Description |
---|---|
boolean |
arrange(Diagram diagram)
Applies the layout to the specified Diagram instance.
|
abstract boolean |
arrange(Diagram diagram,
DiagramItemList items)
Applies the layout on the specified subset of items from the
specified Diagram instance.
|
Anchoring |
getAnchoring()
Gets how to align links to the anchor points of nodes.
|
boolean |
getGrowToFit()
Gets a value indicating whether the layout should increase
the diagram bounds to fit the arranged content.
|
boolean |
getKeepGroupLayout()
Gets a value indicating whether to treat each Group
of nodes as a single vertex in the arranged graph.
|
LayoutLink |
getLayoutLink()
Gets an object, which is notified when the
position of a link is changed by the layout.
|
LayoutNode |
getLayoutNode()
Gets an object, which is notified when the
position of a node is changed by the layout.
|
XDimension2D.Double |
getMargins()
Gets the distance between the top-left corner
of the smallest rectangle containing the arranged diagram
and the top-left point of the document bounds.
|
MultipleGraphsPlacement |
getMultipleGraphsPlacement()
Gets a value indicating how multiple independent graphs
in the diagram should be positioned relatively to each other.
|
LayoutProgress |
getProgress()
Gets the progress callback delegate.
|
static void |
removeMidleSegmentPoint(Link link,
boolean uniq) |
void |
setAnchoring(Anchoring value)
Sets how to align links to the anchor points of nodes.
|
void |
setGrowToFit(boolean value)
Sets a value indicating whether the layout should increase
the diagram bounds to fit the arranged content.
|
void |
setKeepGroupLayout(boolean value)
Sets a value indicating whether to treat each Group
of nodes as a single vertex in the arranged graph.
|
void |
setLayoutLink(LayoutLink value)
Sets an object, which is notified when the
position of a link is changed by the layout.
|
void |
setLayoutNode(LayoutNode value)
Sets an object, which is notified when the
position of a node is changed by the layout.
|
void |
setMargins(XDimension2D.Double value)
Sets the distance between the top-left corner
of the smallest rectangle containing the arranged diagram
and the top-left point of the document bounds.
|
void |
setMultipleGraphsPlacement(MultipleGraphsPlacement value)
Sets a value indicating how multiple independent graphs
in the diagram should be positioned relatively to each other.
|
void |
setProgress(LayoutProgress value)
Sets the progress callback delegate.
|
protected AbstractLayout()
public boolean arrange(Diagram diagram)
diagram
- The Diagram that should be arranged.public abstract boolean arrange(Diagram diagram, DiagramItemList items)
diagram
- The Diagram that should be arranged.items
- A collection of nodes and links from diagram that define
the subgraph to arrange.public static void removeMidleSegmentPoint(Link link, boolean uniq)
public LayoutProgress getProgress()
public void setProgress(LayoutProgress value)
public LayoutNode getLayoutNode()
public void setLayoutNode(LayoutNode value)
public LayoutLink getLayoutLink()
public void setLayoutLink(LayoutLink value)
public MultipleGraphsPlacement getMultipleGraphsPlacement()
public void setMultipleGraphsPlacement(MultipleGraphsPlacement value)
public XDimension2D.Double getMargins()
public void setMargins(XDimension2D.Double value)
public boolean getKeepGroupLayout()
public void setKeepGroupLayout(boolean value)
public Anchoring getAnchoring()
public void setAnchoring(Anchoring value)
public boolean getGrowToFit()
public void setGrowToFit(boolean value)