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

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

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

Model parameter for the rotated side slider edge label model.


Constructor Summary
RotatedSideSliderEdgeLabelModel.ModelParameter(ILabelModel model)
           
RotatedSideSliderEdgeLabelModel.ModelParameter(ILabelModel model, int location, 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.
 int getLocation()
          One of SliderParameterLocation.LEFT or SliderParameterLocation.RIGHT determining on which side of the edge the label shall be placed.
 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 setLocation(int location)
          One of SliderParameterLocation.LEFT or SliderParameterLocation.RIGHT determining on which side of the edge the label shall be placed.
 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

RotatedSideSliderEdgeLabelModel.ModelParameter

public RotatedSideSliderEdgeLabelModel.ModelParameter(ILabelModel model)

RotatedSideSliderEdgeLabelModel.ModelParameter

public RotatedSideSliderEdgeLabelModel.ModelParameter(ILabelModel model,
                                                      int location,
                                                      int segmentIndex,
                                                      double ratio)
Method Detail

getLocation

public int getLocation()
One of SliderParameterLocation.LEFT or SliderParameterLocation.RIGHT determining on which side of the edge the label shall be placed.


setLocation

public void setLocation(int location)
One of SliderParameterLocation.LEFT or SliderParameterLocation.RIGHT determining on which side of the edge the label shall be placed.


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:

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.


Copyright © 2000-2013 yWorks GmbH. All rights reserved