Package | Description |
---|---|
com.yworks.yfiles.graph.portlocationmodels |
Contains interfaces and default implementations for port location models.
|
com.yworks.yfiles.view.input |
Contains definitions, default implementations, and support classes that deal with the user interaction in a
CanvasControl in general, as well as specialized utility classes and IInputMode implementations that can be used to work with and edit IGraph instances in a GraphControl . |
Modifier and Type | Class and Description |
---|---|
class |
BendAnchoredPortLocationModel
An implementation of the
IPortLocationModel that can create IPortLocationModelParameter s that describe
the location of ports that are attached to the bends of IEdge s. |
class |
FreeNodePortLocationModel
A straightforward implementation of an
IPortLocationModel for IPort s at INode s that determine
the location dynamically using the Layout . |
class |
GenericPortLocationModel
An implementation of
IPortLocationModel that can be used to create custom port location models out of existing IPortLocationModelParameter
instances. |
class |
SegmentRatioPortLocationModel
A port location model that places the port on a certain edge segment at a specified ratio.
|
Modifier and Type | Method and Description |
---|---|
IPortLocationModel |
IPortLocationModelParameter.getModel()
Gets the model that created this parameter.
|
Modifier and Type | Method and Description |
---|---|
IPortLocationModel |
DefaultPortCandidate.getModel()
The model that will be used by this instance to determine the new
LocationParameter if
the DefaultPortCandidate.getPortCandidateAt(IInputModeContext, PointD) is called and the Validity is set to
PortCandidateValidity.DYNAMIC . |
Modifier and Type | Method and Description |
---|---|
protected IPortLocationModelParameter |
PortLocationModelParameterHandle.getNewParameter(IPort port,
IPortLocationModel model,
PointD location)
Callback method that obtains the new parameter for the given location and port.
|
void |
DefaultPortCandidate.setModel(IPortLocationModel value)
The model that will be used by this instance to determine the new
LocationParameter if
the DefaultPortCandidate.getPortCandidateAt(IInputModeContext, PointD) is called and the Validity is set to
PortCandidateValidity.DYNAMIC . |
Constructor and Description |
---|
DefaultPortCandidate(IPortOwner owner,
IPortLocationModel model)
Creates a candidate for the given
owner that uses the graph's defaults for the port's style and a default
parameter for the given model . |