com.yworks.yfiles.server.graphml.flexio.data
Class FreeNodeLabelModel

java.lang.Object
  extended bycom.yworks.yfiles.server.graphml.flexio.data.FreeNodeLabelModel
All Implemented Interfaces:
ILabelModel

public class FreeNodeLabelModel
extends java.lang.Object
implements ILabelModel

yFiles FLEX client free node label model data object


Nested Class Summary
static class FreeNodeLabelModel.AbstractFreeNodeLabelParameter
           
static class FreeNodeLabelModel.NodeCenterAnchoredParameter
          Model parameter for the free node label model that allow to specify the label position relative to the node's layout.
static class FreeNodeLabelModel.NodeLayoutAnchoredParameter
          Model parameter for the free node label model that allow to specify the label position relative to the node's layout.
static class FreeNodeLabelModel.NodeRatioAnchoredParameter
          Model parameter for the free node label model that anchors the label to the node at a given position.
 
Constructor Summary
FreeNodeLabelModel()
           
 
Method Summary
 ILabelModelParameter createDefaultParameter()
          Creates a default parameter that can be used for this model.
 OrientedRectangle getLabelPlacement(YDimension labelSize, NodeLayout nodeLayout, ILabelModelParameter modelParameter)
          Returns the oriented label position and bounds encoded by the given model parameter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FreeNodeLabelModel

public FreeNodeLabelModel()
Method Detail

createDefaultParameter

public ILabelModelParameter createDefaultParameter()
Description copied from interface: ILabelModel
Creates a default parameter that can be used for this model.

Specified by:
createDefaultParameter in interface ILabelModel
Returns:
A parameter for this model instance.

getLabelPlacement

public OrientedRectangle getLabelPlacement(YDimension labelSize,
                                           NodeLayout nodeLayout,
                                           ILabelModelParameter modelParameter)
Returns the oriented label position and bounds encoded by the given model parameter.

Parameters:
labelSize - The size of the label that should be placed.
nodeLayout - The layout of the node to which the label belongs.
modelParameter - The model parameter that describes the abstract position of the label within this model.
Returns:
the oriented label position and bounds.


Copyright © 2000-2013 yWorks GmbH. All rights reserved