|
Search this API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objecty.layout.planar.BendAndCrossingCostHelper
public class BendAndCrossingCostHelper
Helper class for bend and crossing cost including subdivision handling.
![]() |
![]() |
| Constructor Summary | |
|---|---|
BendAndCrossingCostHelper(LayoutGraph graph,
PlanarInformation planarInformation)
|
|
| Method Summary | |
|---|---|
double |
getBendCost(Edge e)
|
double |
getCrossingCost(Edge e)
|
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 |
subdivide(Edge e,
EdgeList path)
|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BendAndCrossingCostHelper(LayoutGraph graph,
PlanarInformation planarInformation)
| Method Detail |
|---|
public double getCrossingCost(Edge e)
public double getBendCost(Edge e)
public void subdivide(Edge e,
EdgeList path)
public void subdivide(Edge e,
Edge[] result)
SubdivisionHandler
subdivide in interface SubdivisionHandler
public void unsubdivide(Edge[] splitEdges,
Edge e)
SubdivisionHandler
unsubdivide in interface SubdivisionHandler
public void splitFace(Edge edge,
Face[] oldFaces,
Face[] newFaces)
SubdivisionHandler
splitFace in interface SubdivisionHandleredge - the edge which splits the face.oldFaces - the faces in the old embedding which change.newFaces - the faces in the new embedding which change.
public void unsplitFace(Edge edge,
Face[] oldFaces,
Face[] newFaces)
SubdivisionHandler
unsplitFace in interface SubdivisionHandleredge - 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-2025, yWorks GmbH. All rights reserved. |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||