Search this API

y.layout
Class AbstractLayoutStage

java.lang.Object
  extended by y.layout.AbstractLayoutStage
All Implemented Interfaces:
Layouter, LayoutStage
Direct Known Subclasses:
AbstractLabelingAlgorithm, BufferedLayouter, BusRouter, ChannelEdgeRouter, CollinearBendHider, ComponentLayouter, CompositeLayoutStage, EdgeGroupRouterStage, EdgeReversalStage, EdgeRouter, FixedGroupLayoutStage, FixNodeLayoutStage, GraphLayoutLineWrapper, GroupedShuffleLayouter, GroupNodeHider, GroupNodeRouterStage, LabelLayoutDataRefinement, LayoutMultiplexer, MinNodeSizeStage, MultiPageLayouter, NormalizingGraphElementOrderStage, OrientationLayouter, OrthogonalEdgeRouter, OrthogonalPatternEdgeRouter, OrthogonalSegmentDistributionStage, ParallelEdgeLayouter, ParentEdgeAugmentationStage, PartialLayouter, PartitionGridLayoutStage, PartitionGridRouterStage, PartitionLayouter, PatchRouterStage, PolylineLayoutStage, PortCalculator, PortConstraintEnforcementStage, RecursiveGroupLayouter, ReducedSphereOfActionStage, RemoveColinearBendsStage, SelfLoopLayouter, SnapOuterPortsToNodeBorderStage, SubgraphLayouter, TopLevelGroupToSwimlaneStage, TreeReductionStage

public abstract class AbstractLayoutStage
extends Object
implements LayoutStage

Partial LayoutStage implementation that handles the management of the core layouter part.


Field Summary
 
Fields inherited from interface y.layout.Layouter
EDGE_ID_DPKEY, NODE_ID_DPKEY, SELECTED_EDGES, SELECTED_NODES
 
Constructor Summary
AbstractLayoutStage()
          Default constructor.
AbstractLayoutStage(Layouter core)
          Initializes this AbstractLayoutStage with the given core Layouter.
 
Method Summary
protected  boolean canLayoutCore(LayoutGraph graph)
          Queries the core layouter whether or not the given graph can be laid out.
protected  void doLayoutCore(LayoutGraph graph)
          Invokes the layout routine of the core layouter.
 Layouter getCoreLayouter()
          Returns the core layouter.
 void setCoreLayouter(Layouter l)
          Sets the core layouter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface y.layout.Layouter
canLayout, doLayout
 

Constructor Detail

AbstractLayoutStage

public AbstractLayoutStage()
Default constructor.


AbstractLayoutStage

public AbstractLayoutStage(Layouter core)
Initializes this AbstractLayoutStage with the given core Layouter.

Method Detail

setCoreLayouter

public void setCoreLayouter(Layouter l)
Sets the core layouter.

Specified by:
setCoreLayouter in interface LayoutStage

getCoreLayouter

public Layouter getCoreLayouter()
Returns the core layouter.

Specified by:
getCoreLayouter in interface LayoutStage

doLayoutCore

protected void doLayoutCore(LayoutGraph graph)
Invokes the layout routine of the core layouter.


canLayoutCore

protected boolean canLayoutCore(LayoutGraph graph)
Queries the core layouter whether or not the given graph can be laid out.


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