Search this API

y.layout.planar
Class SelfLoopTool

java.lang.Object
  extended by y.layout.planar.SelfLoopTool

public class SelfLoopTool
extends java.lang.Object

This class handles the removal resp. the reinsertion of self-loops from resp.into an embedded graph.

 
Your browser does not support SVG content.

Constructor Summary
SelfLoopTool(PlanarInformation _planar)
          Returns a new instance of SelfLoopTool.
 
Method Summary
 void hideSelfLoops()
          Hides all self-loops in a graph.
 void reinsertSelfLoops()
          Reinserts the formerly hidden self-loops into the embedded graph.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SelfLoopTool

public SelfLoopTool(PlanarInformation _planar)
Returns a new instance of SelfLoopTool.

Parameters:
_planar - the embedded graph in which the self-loops should be hidden.
Method Detail

hideSelfLoops

public void hideSelfLoops()
Hides all self-loops in a graph.


reinsertSelfLoops

public void reinsertSelfLoops()
Reinserts the formerly hidden self-loops into the embedded graph. Precondition: Edge order must be ok and faces must be calculated in the planar embedding.


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