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

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

public class SliderEdgeLabelModel
extends java.lang.Object
implements ILabelModel

A yFiles FLEX client slider edge label model data object


Nested Class Summary
static class SliderEdgeLabelModel.ModelParameter
          Model parameter for the slider edge label model.
 
Constructor Summary
SliderEdgeLabelModel()
           
 
Method Summary
 ILabelModelParameter createDefaultParameter()
          Creates a default parameter that can be used for this model.
 double getAngle()
          The angle the labels are rotated about.
 double getDistance()
          Tthe distance between the label and the edge's path.
 boolean isEdgeRelativeDistance()
          Whether distance to the edge is interpreted relatively to the edge's path.
 void setAngle(double angle)
          The angle the labels are rotated about.
 void setDistance(double distance)
          The distance between the label and the edge's path.
 void setEdgeRelativeDistance(boolean edgeRelativeDistance)
          Whether distance to the edge is interpreted relatively to the edge's path.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SliderEdgeLabelModel

public SliderEdgeLabelModel()
Method Detail

getAngle

public double getAngle()
The angle the labels are rotated about. The angle is measured relative to the x-axis.


setAngle

public void setAngle(double angle)
The angle the labels are rotated about. The angle is measured relative to the x-axis.


getDistance

public double getDistance()
Tthe distance between the label and the edge's path. A positive value will make the label appear above or right of the edge, whereas negative values will make it appear on the opposite side of the edge's path. A value of 0 will make the label's appear centered on the edge's path.


setDistance

public void setDistance(double distance)
The distance between the label and the edge's path. A positive value will make the label appear above or right of the edge, whereas negative values will make it appear on the opposite side of the edge's path. A value of 0 will make the label's appear centered on the edge's path.


isEdgeRelativeDistance

public boolean isEdgeRelativeDistance()
Whether distance to the edge is interpreted relatively to the edge's path. If this is set to false, positive distance values will make the label appear above the edge, otherwise they will appear left of the edge.


setEdgeRelativeDistance

public void setEdgeRelativeDistance(boolean edgeRelativeDistance)
Whether distance to the edge is interpreted relatively to the edge's path. If this is set to false, positive distance values will make the label appear above the edge, otherwise they will appear left of the edge.


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.


Copyright © 2000-2013 yWorks GmbH. All rights reserved