Search this API

y.layout.circular
Class NodeTypeAwareSequencer

java.lang.Object
  extended by y.layout.circular.NodeTypeAwareSequencer
All Implemented Interfaces:
NodeSequencer

public class NodeTypeAwareSequencer
extends java.lang.Object
implements NodeSequencer

A NodeSequencer implementation that ensures that all nodes of the same node type are consecutive. If there are no types, it delegates to the default NodeSequencer implementation that tries to minimize crossings.

 
Your browser does not support SVG content.

Constructor Summary
NodeTypeAwareSequencer()
          Creates a new NodeTypeAwareSequencer instance.
 
Method Summary
 NodeCursor nodes(Graph graph)
          Returns a cursor that grants access to all nodes of the given graph in some order.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NodeTypeAwareSequencer

public NodeTypeAwareSequencer()
Creates a new NodeTypeAwareSequencer instance.

Method Detail

nodes

public NodeCursor nodes(Graph graph)
Description copied from interface: NodeSequencer
Returns a cursor that grants access to all nodes of the given graph in some order.

Specified by:
nodes in interface NodeSequencer
Parameters:
graph - the input graph
Returns:
a NodeCursor that grants access to all nodes of a graph

© Copyright 2000-2022,
yWorks GmbH.
All rights reserved.