|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface for data objects that model yFiles FLEX port location models.
Port models can be used to describe the location of ports, respecting
an IPortLocationModelParameter
instance associated with a port.
Method Summary | |
IPortLocationModelParameter |
createParameter(java.lang.Object portOwner,
YPoint location)
Factory method that creates a parameter for the given port that tries to match the provided location in absolute world coordinates. |
Lookup |
getContext(Port port,
IPortLocationModelParameter parameter)
Provides a lookup context for the given combination of port and parameter. |
YPoint |
getLocation(Port port,
IPortLocationModelParameter modelParameter)
Calculates the location in world coordinates for a given port using the given model parameter. |
Method Detail |
public YPoint getLocation(Port port, IPortLocationModelParameter modelParameter)
port
- The port to calculate the location formodelParameter
- A parameter that has been created by this model.
This is typically the parameter that yielded this instance through its
IPortModelParameter.getModel()
property.
public IPortLocationModelParameter createParameter(java.lang.Object portOwner, YPoint location)
Factory method that creates a parameter for the given port that tries to match the provided location in absolute world coordinates.
portOwner
- The port owner that will own the port for which the parameter shall be created.location
- The location in the world coordinate system that should be matched as best as possible.
IPort
at the given
IPortOwner
.public Lookup getContext(Port port, IPortLocationModelParameter parameter)
Provides a lookup context for the given combination of port and parameter.
port
- The port to use in the context.parameter
- The parameter to use for the port in the context.
Lookup
interface that can be used to query additional aspects
of the port/parameter combination.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |