IBM ILOG Dojo Diagrammer 1.1.1 API Documentation
Legend: Array Boolean Constructor Date DomNode Error Function Namespace Number Object RegExp Singleton String

ibm_ilog.graphlayout.random

Object » ibm_ilog.graphlayout.random
dojo.require("ibm_ilog.graphlayout.random.RandomLayout");

Method Summary

  • RandomLayout(source) The main class for the Random Layout algorithm.

Attached Objects

Methods

RandomLayout

The main class for the Random Layout algorithm.

This is the simplest layout algorithm. The nodes are moved at randomly-computed positions inside a user-defined region which can be specified using the method ibm_ilog.graphlayout.GraphLayout.layoutRegion.

Sample drawing produced by the Random Layout algorithm:

Sample drawing produced with the Random Layout

See the corresponding chapter of the User Manual for details on the algorithm, the types of graphs for which this algorithm can be used, features and limitations, code samples, and so on.

Note that the initial position of the nodes (at the moment you start the layout) does not affect the resulting layout. However, nodes specified as fixed are not moved if you call the method ibm_ilog.graphlayout.GraphLayout.setPreserveFixedNodes() with a true argument.

ParameterTypeDescription
source