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

java.lang.Object
  extended bycom.yworks.yfiles.server.graphml.flexio.data.FreeNodeLabelModel.AbstractFreeNodeLabelParameter
      extended bycom.yworks.yfiles.server.graphml.flexio.data.FreeNodeLabelModel.NodeCenterAnchoredParameter
All Implemented Interfaces:
java.lang.Cloneable, ILabelModelParameter, ISharedInstanceProvider
Enclosing class:
FreeNodeLabelModel

public static class FreeNodeLabelModel.NodeCenterAnchoredParameter
extends FreeNodeLabelModel.AbstractFreeNodeLabelParameter
implements ISharedInstanceProvider

Model parameter for the free node label model that allow to specify the label position relative to the node's layout.


Field Summary
 
Fields inherited from class com.yworks.yfiles.server.graphml.flexio.data.FreeNodeLabelModel.AbstractFreeNodeLabelParameter
angle
 
Constructor Summary
FreeNodeLabelModel.NodeCenterAnchoredParameter(FreeNodeLabelModel model)
           
 
Method Summary
 ILabelModel getModel()
          Gets the model that is associated with this parameter.
 java.util.Collection getSharedInstances()
          Returns an Collection for objects that shall be shared.
 double getX()
           
 double getY()
           
 void setGeometry(FreeNodeLabelModel freeNodeLabelModel, YDimension labelSize, NodeLayout nodeLayout, OrientedRectangle orientedRectangle)
           
 void setX(double x)
           
 void setY(double y)
           
 
Methods inherited from class com.yworks.yfiles.server.graphml.flexio.data.FreeNodeLabelModel.AbstractFreeNodeLabelParameter
clone, getAngle, setAngle
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FreeNodeLabelModel.NodeCenterAnchoredParameter

public FreeNodeLabelModel.NodeCenterAnchoredParameter(FreeNodeLabelModel model)
Method Detail

getX

public double getX()

setX

public void setX(double x)

getY

public double getY()

setY

public void setY(double y)

getModel

public ILabelModel getModel()
Description copied from interface: ILabelModelParameter
Gets the model that is associated with this parameter.

Specified by:
getModel in interface ILabelModelParameter

setGeometry

public void setGeometry(FreeNodeLabelModel freeNodeLabelModel,
                        YDimension labelSize,
                        NodeLayout nodeLayout,
                        OrientedRectangle orientedRectangle)
Specified by:
setGeometry in class FreeNodeLabelModel.AbstractFreeNodeLabelParameter

getSharedInstances

public java.util.Collection getSharedInstances()
Description copied from interface: ISharedInstanceProvider
Returns an Collection for objects that shall be shared.

Specified by:
getSharedInstances in interface ISharedInstanceProvider
Returns:


Copyright © 2000-2013 yWorks GmbH. All rights reserved