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

java.lang.Object
  extended bycom.yworks.yfiles.server.graphml.flexio.data.NodeScaledParameter
All Implemented Interfaces:
IPortLocationModelParameter, ISharedInstanceProvider

public class NodeScaledParameter
extends java.lang.Object
implements IPortLocationModelParameter, ISharedInstanceProvider


Constructor Summary
NodeScaledParameter(IPortLocationModel model, YPoint offsets)
           
 
Method Summary
 IPortLocationModel getModel()
          Gets the model that has created this parameter.
 YPoint getOffset()
           
 java.util.Collection getSharedInstances()
          Returns an Collection for objects that shall be shared.
 boolean supports(Port port)
          Determines whether this parameter can be used for a given port instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NodeScaledParameter

public NodeScaledParameter(IPortLocationModel model,
                           YPoint offsets)
Method Detail

getOffset

public YPoint getOffset()

getModel

public IPortLocationModel getModel()
Description copied from interface: IPortLocationModelParameter
Gets the model that has created this parameter.

Specified by:
getModel in interface IPortLocationModelParameter

supports

public boolean supports(Port port)
Description copied from interface: IPortLocationModelParameter
Determines whether this parameter can be used for a given port instance.

Some parameters cannot be used with all types of ports. E.g. they can only be used with ports that belong to Node instances.

Specified by:
supports in interface IPortLocationModelParameter
Parameters:
port - The port this parameter should be associated with.
Returns:
Whether this parameter instance can be used for the given port.

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