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

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

public class FreeEdgeLabelModel
extends java.lang.Object
implements ILabelModel

yFiles FLEX client free edge label model data object.


Nested Class Summary
static class FreeEdgeLabelModel.ModelParameter
          Model parameter for the free edge label model.
 
Constructor Summary
FreeEdgeLabelModel()
           
 
Method Summary
 ILabelModelParameter createDefaultParameter()
          Creates a default parameter that can be used for this model.
 java.lang.Object createModelParameter(OrientedRectangle labelBounds, EdgeLayout edgeLayout, NodeLayout sourceLayout, NodeLayout targetLayout)
           
 boolean isEdgeRelativeDistance()
          Whether the parameter's angle should be interpreted relative to the edge's orientation or as an absolute angle in the coordinate system.
 void setEdgeRelativeDistance(boolean edgeRelativeDistance)
          Whether the parameter's angle should be interpreted relative to the edge's orientation or as an absolute angle in the coordinate system.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FreeEdgeLabelModel

public FreeEdgeLabelModel()
Method Detail

isEdgeRelativeDistance

public boolean isEdgeRelativeDistance()
Whether the parameter's angle should be interpreted relative to the edge's orientation or as an absolute angle in the coordinate system.


setEdgeRelativeDistance

public void setEdgeRelativeDistance(boolean edgeRelativeDistance)
Whether the parameter's angle should be interpreted relative to the edge's orientation or as an absolute angle in the coordinate system.


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.

createModelParameter

public java.lang.Object createModelParameter(OrientedRectangle labelBounds,
                                             EdgeLayout edgeLayout,
                                             NodeLayout sourceLayout,
                                             NodeLayout targetLayout)


Copyright © 2000-2013 yWorks GmbH. All rights reserved