Search this API

y.view.hierarchy
Class DefaultInterEdgeConfigurator

java.lang.Object
  extended by y.view.hierarchy.DefaultInterEdgeConfigurator
All Implemented Interfaces:
InterEdgeConfigurator

public class DefaultInterEdgeConfigurator
extends java.lang.Object
implements InterEdgeConfigurator

This default implementation of the InterEdgeConfigurator performs some simple heuristics.

 

Constructor Summary
DefaultInterEdgeConfigurator()
           
 
Method Summary
 void configureEdge(Edge edge, boolean wasInterEdge, Node formerSource, Node formerTarget)
          This method will remove all bend and port information in the case an inter-edge is converted back to a normal edge.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultInterEdgeConfigurator

public DefaultInterEdgeConfigurator()
Method Detail

configureEdge

public void configureEdge(Edge edge,
                          boolean wasInterEdge,
                          Node formerSource,
                          Node formerTarget)
This method will remove all bend and port information in the case an inter-edge is converted back to a normal edge. In all other cases the port of either the source node or the target node will be reset, depending on which one of these changed.

Specified by:
configureEdge in interface InterEdgeConfigurator
Parameters:
edge - The edge, which exists in the graph, after the change
wasInterEdge - whether this edge was an inter-edge before this call
formerSource - the former source node, which may now be somewhere else
formerTarget - the former target node, which may now be somewhere else

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