DroidDiagram Programmer's Guide
OneWayLayout Members
Constructors Methods
 


Implements a one-way graph layout algorithm. The one-way layout ensures that links enter into nodes from the same general direction and exit them from the opposite side. If the graph contains cycles, some links bend around the nodes to keep the enter/exit direction consistent. The algorithm aims to minimize the number of such links.

The following tables list the members exposed by the OneWayLayout type.

 Public Constructors

  Name Description

OneWayLayout

Initializes a new instance of the OneWayLayout class with the default settings.

 Public Methods

  Name Description

arrange

Applies the layout to the specified diagram.

getAnchoring

Gets how to align links to the anchor points of nodes. (Inherited from AbstractLayout.)

getGrowToFit

Gets a value indicating whether the diagram boundaries should grow to fit the arranged content. (Inherited from AbstractLayout.)

getKeepGroupLayout

Gets a value indicating whether to treat each Group of nodes as a single vertex in the arranged graph. (Inherited from AbstractLayout.)

getLayoutLink

Gets an object, which is notified when the position of a link is changed by the layout. (Inherited from AbstractLayout.)

getLayoutNode

Gets an object, which is notified when the position of a node is changed by the layout. (Inherited from AbstractLayout.)

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. (Inherited from AbstractLayout.)

getMultipleGraphsPlacement

Gets a value indicating how multiple independent graphs in the diagram should be positioned relatively to each other. (Inherited from AbstractLayout.)

getNodeDistance

Gets the minimum spacing between adjacent nodes in the final layout.

getOrientation

Gets the orientation of the arranged graph.

getProgress

Gets the progress callback delegate. (Inherited from AbstractLayout.)

getRoundedLinks

Gets a value indicating whether the layout should smooth link bends.

init

Returns an OneWayLayoutBuilder object used to configure this OneWayLayout instance.

removeMidleSegmentPoint

  (Inherited from AbstractLayout.)

setAnchoring

Sets how to align links to the anchor points of nodes. (Inherited from AbstractLayout.)

setGrowToFit

Sets a value indicating whether the diagram boundaries should grow to fit the arranged content. (Inherited from AbstractLayout.)

setKeepGroupLayout

Sets a value indicating whether to treat each Group of nodes as a single vertex in the arranged graph. (Inherited from AbstractLayout.)

setLayoutLink

Sets an object, which is notified when the position of a link is changed by the layout. (Inherited from AbstractLayout.)

setLayoutNode

Sets an object, which is notified when the position of a node is changed by the layout. (Inherited from AbstractLayout.)

setMargins

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. (Inherited from AbstractLayout.)

setMultipleGraphsPlacement

Sets a value indicating how multiple independent graphs in the diagram should be positioned relatively to each other. (Inherited from AbstractLayout.)

setNodeDistance

Sets the minimum spacing between adjacent nodes in the final layout.

setOrientation

Sets the orientation of the arranged graph.

setProgress

Sets the progress callback delegate. (Inherited from AbstractLayout.)

setRoundedLinks

Sets a value indicating whether the layout should smooth link bends.

with

Returns an OneWayLayoutBuilder object used to configure and create new OneWayLayout instances.

 Protected Methods

  Name Description

getDefaultMarginValue

Gets the default value of the Margins property.

 See Also

OneWayLayout Class
com.mindfusion.diagramming Namespace