y.layout
Class LabelLayoutDataRefinement

java.lang.Object
  |
  +--y.layout.AbstractLayoutStage
        |
        +--y.layout.LabelLayoutDataRefinement
All Implemented Interfaces:
Layouter, LayoutStage

public class LabelLayoutDataRefinement
extends AbstractLayoutStage

A layout stage that improves the placement of edge labels. This layout stage expects that its core layouter calculates initial edge label layout data bound to the data provider key LabelLayoutKeys.EDGE_LABEL_LAYOUT_KEY. Next this stage tries to improve the position of the labels in respect to the preferred placement specifier of the labels.


Field Summary
 
Fields inherited from interface y.layout.Layouter
EDGE_ID_DPKEY, NODE_ID_DPKEY, SELECTED_EDGES, SELECTED_NODES
 
Constructor Summary
LabelLayoutDataRefinement()
          Creates a new instance of LabelLayoutDataImprovement
 
Method Summary
 boolean canLayout(LayoutGraph graph)
          Returns true.
 void doLayout(LayoutGraph graph)
          Assigns a new graph layout to the given layout graph.
 AbstractLabelingAlgorithm getInternalLabelingAlgorithm()
          Returns the internal labeling algorithm used to improve the label positions.
 void setInternalLabelingAlgorithm(AbstractLabelingAlgorithm labeler)
          Sets the internal labeling algorithm used to improve the label positions.
 
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

LabelLayoutDataRefinement

public LabelLayoutDataRefinement()
Creates a new instance of LabelLayoutDataImprovement

Method Detail

setInternalLabelingAlgorithm

public void setInternalLabelingAlgorithm(AbstractLabelingAlgorithm labeler)
Sets the internal labeling algorithm used to improve the label positions.


getInternalLabelingAlgorithm

public AbstractLabelingAlgorithm getInternalLabelingAlgorithm()
Returns the internal labeling algorithm used to improve the label positions.


canLayout

public boolean canLayout(LayoutGraph graph)
Returns true.


doLayout

public void doLayout(LayoutGraph graph)
Assigns a new graph layout to the given layout graph.


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

2003