y.layout.planar
Interface SubdivisionHandler

All Known Implementing Classes:
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 informations from splitted edges to the resulting edge.
 

Method Detail

subdivide

public 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

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


splitFace

public 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

public 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-2003,
yWorks GmbH.
All rights reserved.

2003