| 
 | Search this API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objecty.layout.AbstractLayoutStage
y.layout.HandleNaNCoordinatesStage
public class HandleNaNCoordinatesStage
A LayoutStage that temporarily removes all nodes and edges with NaN-coordinates.
 
   This layout stage may be necessary when a Layouter takes the initial coordinates into account.
   In this case initial coordinates containing NaN-values, can cause exceptions or strange results.
 
   Layouters that consider initial coordinates:
   
IncrementalHierarchicLayouter in incremental modeOrthogonalLayouter with activated from sketch drawingSmartOrganicLayouter for a subset of nodesGenericTreeLayouter, TreeLayouter when using a from-sketch
       comparator.
     BalloonLayouter in incremental modePartialLayouterEdgeRouter,
       ChannelEdgeRouter, BusRouter,
       OrganicEdgeRouter, OrthogonalEdgeRouter
     Since this stage only hides the invalid graph elements and doesn't apply any new coordinates, it is not defined where those nodes and edges will be placed within the calculated layout.
| Field Summary | 
|---|
| Fields inherited from interface y.layout.Layouter | 
|---|
| EDGE_ID_DPKEY, NODE_ID_DPKEY, NODE_TYPE_DPKEY, SELECTED_EDGES, SELECTED_NODES | 
| Constructor Summary | |
|---|---|
| HandleNaNCoordinatesStage() | |
| Method Summary | |
|---|---|
|  boolean | canLayout(LayoutGraph graph)Accepts all graphs that are accepted by the core layouter. | 
|  void | doLayout(LayoutGraph graph)Hides all graph elements with NaN-coordinates duringcore layoutand restores them afterwards. | 
| Methods inherited from class y.layout.AbstractLayoutStage | 
|---|
| canLayoutCore, doLayoutCore, getCoreLayouter, setCoreLayouter | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public HandleNaNCoordinatesStage()
| Method Detail | 
|---|
public boolean canLayout(LayoutGraph graph)
core layouter. If the core layouter is 
 null, every graph gets accepted.
graph - the graph.
true if the core layouter accepts the graph, false otherwise.Layouter.doLayout(LayoutGraph)public void doLayout(LayoutGraph graph)
NaN-coordinates during core layout
 and restores them afterwards.
graph - the graph.Layouter.canLayout(LayoutGraph)| 
 | © Copyright 2000-2025, yWorks GmbH. All rights reserved. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||