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

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

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

Parameter for the interior stretch label model that defines the position of the label using one of the position constants defined in class InteriorStretchLabelModel.


Constructor Summary
InteriorStretchLabelModel.ModelParameter(ILabelModel model)
          Creates a new parameter instance for the provided label model with the position set to InteriorStretchLabelModel.POSITION_CENTER.
InteriorStretchLabelModel.ModelParameter(ILabelModel model, java.lang.String position)
          Creates a new parameter instance for the provided label model using the given position.
 
Method Summary
 java.lang.Object clone()
           
 ILabelModel getModel()
          Gets the model that is associated with this parameter.
 java.lang.String getPosition()
          The label position.
 java.util.Collection getSharedInstances()
          Returns an Collection for objects that shall be shared.
 void setPosition(java.lang.String position)
          The label position.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InteriorStretchLabelModel.ModelParameter

public InteriorStretchLabelModel.ModelParameter(ILabelModel model)
Creates a new parameter instance for the provided label model with the position set to InteriorStretchLabelModel.POSITION_CENTER.


InteriorStretchLabelModel.ModelParameter

public InteriorStretchLabelModel.ModelParameter(ILabelModel model,
                                                java.lang.String position)
Creates a new parameter instance for the provided label model using the given position.

Parameters:
model - The model for this parameter instance.
position - One of the position constants defined in class InteriorStretchLabelModel.
Method Detail

getPosition

public java.lang.String getPosition()
The label position. One of the position constants defined in class InteriorStretchLabelModel.


setPosition

public void setPosition(java.lang.String position)
The label position. One of the position constants defined in class InteriorStretchLabelModel.

Parameters:
position -

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