Search this API

y.layout.planar
Interface SubdivisionHandler

All Known Implementing Classes:
BendAndCrossingCostHelper, DualPlanarInformation

public interface SubdivisionHandler

This interface is for handling subdivide events invoked by method subdivide (PlanarInformation).

 

Method Summary
 void splitFace(Edge edge, Face[] oldFaces, Face[] newFaces)
          A face is split by adding an edge.
 void subdivide(Edge e, Edge[] result)
          This method is handled every time the method subdivide (PlanarInformation) is invoked.
 void unsplitFace(Edge edge, Face[] oldFaces, Face[] newFaces)
          Faces are unsplit by removing an edge.
 void unsubdivide(Edge[] splitEdges, Edge e)
          This method transfers edge information from split edges to the resulting edge.
 

Method Detail

subdivide

void subdivide(Edge e,
               Edge[] result)
This method is handled every time the method subdivide (PlanarInformation) is invoked. You can transfer edge information from the old edge to the new edges e.g. information from EdgeMaps.


unsubdivide

void unsubdivide(Edge[] splitEdges,
                 Edge e)
This method transfers edge information from split edges to the resulting edge.


splitFace

void splitFace(Edge edge,
               Face[] oldFaces,
               Face[] newFaces)
A face is split by adding an edge.

Parameters:
edge - the edge which splits the face.
oldFaces - the faces in the old embedding which change.
newFaces - the faces in the new embedding which change.

unsplitFace

void unsplitFace(Edge edge,
                 Face[] oldFaces,
                 Face[] newFaces)
Faces are unsplit by removing an edge.

Parameters:
edge - the edge which unsplits the faces.
oldFaces - the faces in the old embedding which change.
newFaces - the faces in the new embedding which change.

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