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

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

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

Model parameter for the rotated slider edge label model.


Constructor Summary
RotatedSliderEdgeLabelModel.ModelParameter(ILabelModel model)
           
RotatedSliderEdgeLabelModel.ModelParameter(ILabelModel model, int segmentIndex, double ratio)
           
 
Method Summary
 java.lang.Object clone()
           
 MarkupExtension createMarkupExtension(Lookup lookup)
          Creates a markup extension that can be used instead of the original class.
 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

RotatedSliderEdgeLabelModel.ModelParameter

public RotatedSliderEdgeLabelModel.ModelParameter(ILabelModel model)

RotatedSliderEdgeLabelModel.ModelParameter

public RotatedSliderEdgeLabelModel.ModelParameter(ILabelModel model,
                                                  int segmentIndex,
                                                  double ratio)
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

createMarkupExtension

public MarkupExtension createMarkupExtension(Lookup lookup)
Creates a markup extension that can be used instead of the original class.

Specified by:
createMarkupExtension in interface IMarkupExtensionFactory
Parameters:
lookup - The lookup that shall be considered when creating the markup extension.

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