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

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

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

Model parameter for the slider edge label model.


Constructor Summary
SliderEdgeLabelModel.ModelParameter(ILabelModel model)
           
 
Method Summary
 java.lang.Object clone()
           
 ILabelModel getModel()
          Gets the model that is associated with this parameter.
 double getRatio()
          The ratio at which to place the label at the segment.
 int getSegmentIndex()
          The zero-based index of the segment beginning from the source side.
 java.util.Collection getSharedInstances()
          Returns an Collection for objects that shall be shared.
 void setRatio(double ratio)
          The ratio at which to place the label at the segment.
 void setSegmentIndex(int segmentIndex)
          The zero-based index of the segment beginning from the source side.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SliderEdgeLabelModel.ModelParameter

public SliderEdgeLabelModel.ModelParameter(ILabelModel model)
Method Detail

getSegmentIndex

public int getSegmentIndex()
The zero-based index of the segment beginning from the source side.


setSegmentIndex

public void setSegmentIndex(int segmentIndex)
The zero-based index of the segment beginning from the source side.


getRatio

public double getRatio()
The ratio at which to place the label at the segment.


setRatio

public void setRatio(double ratio)
The ratio at which to place the label at the segment.


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