com.yworks.yfiles.server.graphml.flexio.data
Interface IPortLocationModelParameter

All Known Implementing Classes:
NodeScaledParameter

public interface IPortLocationModelParameter

Common interface for parameters that are created by IPortModel instances. A parameter encapsulates a certain state that can be interpreted by its model to calculate a location.


Method Summary
 IPortLocationModel getModel()
          Gets the model that has created this parameter.
 boolean supports(Port port)
          Determines whether this parameter can be used for a given port instance.
 

Method Detail

getModel

public IPortLocationModel getModel()
Gets the model that has created this parameter.


supports

public boolean supports(Port port)
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.

Parameters:
port - The port this parameter should be associated with.
Returns:
Whether this parameter instance can be used for the given port.


Copyright © 2000-2013 yWorks GmbH. All rights reserved