Search this API

y.view.hierarchy
Interface InterEdgeConfigurator

All Known Implementing Classes:
DefaultInterEdgeConfigurator

public interface InterEdgeConfigurator

Callback interface that is used by class HierarchyManager whenever the state of an edge/inter-edge changes. An implementation can then perform suitable necessary (visible) modifications to the edge at will.

 

Method Summary
 void configureEdge(Edge edge, boolean wasInterEdge, Node formerSource, Node formerTarget)
          This method will be called by the HierarchyManager every time the state of an edge or inter-edge changes, i.e., every time an edge gets a new target or source node assigned.
 

Method Detail

configureEdge

void configureEdge(Edge edge,
                   boolean wasInterEdge,
                   Node formerSource,
                   Node formerTarget)
This method will be called by the HierarchyManager every time the state of an edge or inter-edge changes, i.e., every time an edge gets a new target or source node assigned. Implementations can use this information to modify the visual appearance of the edge, for example. This should only be done by modifying or replacing the realizers, the structure of the graph should remain unchanged. Note that the realizers are not automatically backed up in case there is an undo manager installed. In this case, this method must perform the suitable actions.

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.