|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.mindfusion.diagramming.AbstractLayout
public abstract class AbstractLayout
Constructor Summary | |
---|---|
protected |
AbstractLayout()
Initializes a new instance of the AbstractLayout class. |
Method Summary | |
---|---|
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. |
int |
getAnchoring()
Gets how to align links to the anchor points of nodes. |
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. |
int |
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(int value)
Sets how to align links to the anchor points of nodes. |
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(int 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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected AbstractLayout()
Method Detail |
---|
public boolean arrange(Diagram diagram)
diagram
- The Diagram that should be arranged.
public abstract boolean arrange(Diagram diagram, DiagramItemList items)
diagam
- 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 int getMultipleGraphsPlacement()
public void setMultipleGraphsPlacement(int value)
public XDimension2D.Double getMargins()
public void setMargins(XDimension2D.Double value)
public boolean getKeepGroupLayout()
public void setKeepGroupLayout(boolean value)
public int getAnchoring()
public void setAnchoring(int value)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |