Packagecom.yworks.graph.model
Classpublic class LayoutCompat
InheritanceLayoutCompat Inheritance Object

This class provides layout-related compatibility methods.



Public Methods
 MethodDefined By
  
[static] Creates and registers a layerer constraint factory for a graph.
LayoutCompat
  
[static] Creates and registers a sequencer constraint factory for a graph.
LayoutCompat
  
[static] Unregisters and disposes the specified layerer constraint factory.
LayoutCompat
  
[static] Unregisters and disposes the specified sequence constraint factory.
LayoutCompat
Method Detail
createLayerConstraintFactory()method
public static function createLayerConstraintFactory(graph:IGraph):LayerConstraintFactory

Creates and registers a layerer constraint factory for a graph.

Parameters

graph:IGraph — The graph.

Returns
LayerConstraintFactory — The layer constraint factory
createSequenceConstraintFactory()method 
public static function createSequenceConstraintFactory(graph:IGraph):SequenceConstraintFactory

Creates and registers a sequencer constraint factory for a graph.

Parameters

graph:IGraph — The graph.

Returns
SequenceConstraintFactory — The sequence constraint factory
disposeLayerConstraintFactory()method 
public static function disposeLayerConstraintFactory(factory:LayerConstraintFactory, graph:IGraph):void

Unregisters and disposes the specified layerer constraint factory.

Parameters

factory:LayerConstraintFactory — The layerer constraint factory.
 
graph:IGraph — The graph for which the factory was registered.

disposeSequenceConstraintFactory()method 
public static function disposeSequenceConstraintFactory(factory:SequenceConstraintFactory, graph:IGraph):void

Unregisters and disposes the specified sequence constraint factory.

Parameters

factory:SequenceConstraintFactory — The sequence constraint factory.
 
graph:IGraph — The graph for which the factory was registered.