Package | com.yworks.yfiles.layout |
Class | public class LabelLayoutDataRefinement |
Inheritance | LabelLayoutDataRefinement AbstractLayoutStage YObject Object |
// 'hierarchic' is of type y.layout.hierarchic.HierarchicLayouter. // String together a label layout process. CompositeLayoutStage ll = new CompositeLayoutStage(); ll.appendStage(new LabelLayoutTranslator()); ll.appendStage(new LabelLayoutDataRefinement()); // Set the compound label layout process as the label layouter for // HierarchicLayouter. hierarchic.setLabelLayouter(ll); hierarchic.setLabelLayouterEnabled(true);
See also
Property | Defined By | ||
---|---|---|---|
coreLayouter : Layouter
Specifies the core layouter. | AbstractLayoutStage | ||
internalLabelingAlgorithm : AbstractLabelingAlgorithm
Specifies the internal labeling algorithm used to improve the label positions. | LabelLayoutDataRefinement |
Method | Defined By | ||
---|---|---|---|
LabelLayoutDataRefinement(init:Boolean = true)
Creates a new instance of LabelLayoutDataImprovement
| LabelLayoutDataRefinement | ||
canLayout(graph:LayoutGraph):Boolean [override]
Returns true. | LabelLayoutDataRefinement | ||
doLayout(graph:LayoutGraph):void [override]
Assigns a new graph layout to the given layout graph. | LabelLayoutDataRefinement | ||
equals(o:Object):Boolean | YObject | ||
getClass():Class [override] | LabelLayoutDataRefinement | ||
hashCode():int | YObject | ||
[static]
Creates a new instance of LabelLayoutDataImprovement
| LabelLayoutDataRefinement |
Method | Defined By | ||
---|---|---|---|
canLayoutCore(graph:LayoutGraph):Boolean
Queries the core layouter whether or not the given graph can be laid out. | AbstractLayoutStage | ||
doLayoutCore(graph:LayoutGraph):void
Invokes the layout routine of the core layouter. | AbstractLayoutStage | ||
initAbstractLayoutStage1():void | AbstractLayoutStage | ||
initAbstractLayoutStage2(core:Layouter):void | AbstractLayoutStage | ||
Initializes this object. | LabelLayoutDataRefinement |
internalLabelingAlgorithm | property |
internalLabelingAlgorithm:AbstractLabelingAlgorithm
Specifies the internal labeling algorithm used to improve the label positions.
public function get internalLabelingAlgorithm():AbstractLabelingAlgorithm
public function set internalLabelingAlgorithm(value:AbstractLabelingAlgorithm):void
LabelLayoutDataRefinement | () | Constructor |
public function LabelLayoutDataRefinement(init:Boolean = true)
Creates a new instance of LabelLayoutDataImprovement
Parametersinit:Boolean (default = true ) — An internally used switch to help handle proper instance initialization in inheritance chains where classes can have multiple constructor-like factory methods.
This parameter can safely be ignored/omitted when calling the constructor.
|
canLayout | () | method |
override public function canLayout(graph:LayoutGraph):Boolean
Returns true
.
Parameters
graph:LayoutGraph |
Boolean |
doLayout | () | method |
override public function doLayout(graph:LayoutGraph):void
Assigns a new graph layout to the given layout graph.
Parameters
graph:LayoutGraph |
getClass | () | method |
override public function getClass():Class
ReturnsClass |
initLabelLayoutDataRefinement | () | method |
protected final function initLabelLayoutDataRefinement():void
Initializes this object. See the documentation of the corresponding factory method newLabelLayoutDataRefinement()
for details.
See also
newLabelLayoutDataRefinement | () | method |
public static function newLabelLayoutDataRefinement():LabelLayoutDataRefinement
Creates a new instance of LabelLayoutDataImprovement
ReturnsLabelLayoutDataRefinement |