com.yworks.yfiles.server.graphml.flexio.data
Class FreeEdgeLabelModel.ModelParameter

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

public static class FreeEdgeLabelModel.ModelParameter
extends java.lang.Object
implements ILabelModelParameter, ISharedInstanceProvider

Model parameter for the free edge label model.


Constructor Summary
FreeEdgeLabelModel.ModelParameter(ILabelModel model)
           
FreeEdgeLabelModel.ModelParameter(ILabelModel model, double distance, double ratio, double angle)
           
 
Method Summary
 java.lang.Object clone()
           
 double getAngle()
          The angle by which the label should be rotated.
 double getDistance()
          The distance orthogonally to the connection between the source and target point.
 ILabelModel getModel()
          Gets the model that is associated with this parameter.
 double getRatio()
          The ratio at which the label will be anchored between the location of the source port and the location of the target port.
 java.util.Collection getSharedInstances()
          Returns an Collection for objects that shall be shared.
 void setAngle(double angle)
          The angle by which the label should be rotated.
 void setDistance(double distance)
          The distance orthogonally to the connection between the source and target point.
 void setRatio(double ratio)
          The ratio at which the label will be anchored between the location of the source port and the location of the target port.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FreeEdgeLabelModel.ModelParameter

public FreeEdgeLabelModel.ModelParameter(ILabelModel model,
                                         double distance,
                                         double ratio,
                                         double angle)

FreeEdgeLabelModel.ModelParameter

public FreeEdgeLabelModel.ModelParameter(ILabelModel model)
Method Detail

getDistance

public double getDistance()
The distance orthogonally to the connection between the source and target point.


setDistance

public void setDistance(double distance)
The distance orthogonally to the connection between the source and target point.


getRatio

public double getRatio()
The ratio at which the label will be anchored between the location of the source port and the location of the target port.


setRatio

public void setRatio(double ratio)
The ratio at which the label will be anchored between the location of the source port and the location of the target port.


getAngle

public double getAngle()
The angle by which the label should be rotated.


setAngle

public void setAngle(double angle)
The angle by which the label should be rotated.


getModel

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

Specified by:
getModel in interface ILabelModelParameter

clone

public java.lang.Object clone()
Specified by:
clone in interface ILabelModelParameter

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