Search this API

y.layout.router
Class CollinearBendHider

java.lang.Object
  extended by y.layout.AbstractLayoutStage
      extended by y.layout.router.CollinearBendHider
All Implemented Interfaces:
Layouter, LayoutStage

public class CollinearBendHider
extends AbstractLayoutStage

Temporarily hides collinear bends on edge paths.


Field Summary
static Object SELECTED_EDGES
          DataProvider key for boolean edge data.
 
Fields inherited from interface y.layout.Layouter
EDGE_ID_DPKEY, NODE_ID_DPKEY, SELECTED_NODES
 
Constructor Summary
CollinearBendHider(Layouter coreLayouter)
           
 
Method Summary
 boolean canLayout(LayoutGraph graph)
          Returns true iff the given graph can be laid out by this algorithm.
 void doLayout(LayoutGraph graph)
          Main layout routine that assigns new layout information to the given graph.
 
Methods inherited from class y.layout.AbstractLayoutStage
canLayoutCore, doLayoutCore, getCoreLayouter, setCoreLayouter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SELECTED_EDGES

public static final Object SELECTED_EDGES
DataProvider key for boolean edge data. Only selected edges will be considered by this stage. If this key is not bound to the graph, then all edges will be considered.

Constructor Detail

CollinearBendHider

public CollinearBendHider(Layouter coreLayouter)
Method Detail

canLayout

public boolean canLayout(LayoutGraph graph)
Description copied from interface: Layouter
Returns true iff the given graph can be laid out by this algorithm. Calling doLayout with the given graph as its argument will only success if this method returns true.


doLayout

public void doLayout(LayoutGraph graph)
Description copied from interface: Layouter
Main layout routine that assigns new layout information to the given graph.


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