Package | Description |
---|---|
com.yworks.yfiles.graph |
Definitions, default implementations, and support classes that represent graph structures and provide facilities for their programmatic modification.
|
com.yworks.yfiles.graph.portlocationmodels |
Contains interfaces and default implementations for port location models.
|
com.yworks.yfiles.view |
Contains the main UI classes, interfaces, default implementations and support classes that can be used to display
IGraph instances. |
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 | Method and Description |
---|---|
default IPort |
IGraph.addPort(IPortOwner owner,
IPortLocationModelParameter locationParameter)
Add a port to the given port owner using the location model parameter, style and tag.
|
default IPort |
IGraph.addPort(IPortOwner owner,
IPortLocationModelParameter locationParameter,
IPortStyle style)
Add a port to the given port owner using the location model parameter, style and tag.
|
IPort |
IGraph.addPort(IPortOwner owner,
IPortLocationModelParameter locationParameter,
IPortStyle style,
Object tag)
Add a port to the given port owner using the location model parameter, style and tag.
|
IPort |
DefaultGraph.addPort(IPortOwner owner,
IPortLocationModelParameter locationParameter,
IPortStyle style,
Object tag)
Add a port to the given port owner using the coordinates as the new initial position of the port anchor.
|
IPort |
AbstractGraphWrapper.addPort(IPortOwner owner,
IPortLocationModelParameter locationParameter,
IPortStyle style,
Object tag) |
protected void |
DefaultGraph.onChangingPortLocationModelParameter(IPort port,
IPortLocationModelParameter newLocationParameter)
Callback that is invoked before the
LocationParameter of a port is being changed. |
protected void |
DefaultGraph.onPortLocationParameterChanged(IPort port,
IPortLocationModelParameter oldLocationParameter)
Callback that is invoked after a port location model parameter has changed.
|
void |
SimplePort.setLocationParameter(IPortLocationModelParameter value)
Sets the
IPortLocationModelParameter that is used to determine the location of this port. |
void |
PortDefaults.setLocationParameter(IPortLocationModelParameter value) |
void |
IPortDefaults.setLocationParameter(IPortLocationModelParameter value)
Sets the location model parameter to use for ports.
|
void |
FoldingPortState.setLocationParameter(IPortLocationModelParameter value)
The
IPortLocationModelParameter describing the position of this port. |
void |
IGraph.setPortLocationParameter(IPort port,
IPortLocationModelParameter locationParameter)
Sets a new
IPortLocationModelParameter for the given port. |
void |
DefaultGraph.setPortLocationParameter(IPort port,
IPortLocationModelParameter locationParameter) |
void |
AbstractGraphWrapper.setPortLocationParameter(IPort port,
IPortLocationModelParameter locationParameter) |
void |
DefaultFolderNodeConverter.setPortLocationParameter(IPortLocationModelParameter value)
Sets the
IPortLocationModelParameter to use for the ports at the collapsed group node that represent
the ports of the master group node in the
collapsed state. |
void |
AbstractFoldingEdgeConverter.setSourcePortLocationParameter(IPortLocationModelParameter value)
Sets the
IPortLocationModelParameter to use for the source port of the folding edge. |
void |
AbstractFoldingEdgeConverter.setTargetPortLocationParameter(IPortLocationModelParameter value)
Sets the
IPortLocationModelParameter to use for the target port of the folding edge. |
Modifier and Type | Method and Description |
---|---|
void |
IGraph.addPortLocationParameterChangedListener(IEventHandler<ItemChangedEventArgs<IPort,IPortLocationModelParameter>> portLocationParameterChangedEvent)
Adds the given listener for the
PortLocationParameterChanged event that occurs when the location model parameter
of a port has been changed. |
void |
DefaultGraph.addPortLocationParameterChangedListener(IEventHandler<ItemChangedEventArgs<IPort,IPortLocationModelParameter>> portLocationParameterChangedEvent) |
void |
AbstractGraphWrapper.addPortLocationParameterChangedListener(IEventHandler<ItemChangedEventArgs<IPort,IPortLocationModelParameter>> portLocationParameterChangedEvent) |
protected void |
AbstractGraphWrapper.onPortLocationParameterChanged(ItemChangedEventArgs<IPort,IPortLocationModelParameter> args)
Raises the
PortLocationParameterChanged event. |
void |
IGraph.removePortLocationParameterChangedListener(IEventHandler<ItemChangedEventArgs<IPort,IPortLocationModelParameter>> portLocationParameterChangedEvent)
Removes the given listener for the
PortLocationParameterChanged event that occurs when the location model
parameter of a port has been changed. |
void |
DefaultGraph.removePortLocationParameterChangedListener(IEventHandler<ItemChangedEventArgs<IPort,IPortLocationModelParameter>> portLocationParameterChangedEvent) |
void |
AbstractGraphWrapper.removePortLocationParameterChangedListener(IEventHandler<ItemChangedEventArgs<IPort,IPortLocationModelParameter>> portLocationParameterChangedEvent) |
Constructor and Description |
---|
SimplePort(IPortOwner owner,
IPortLocationModelParameter locationParameter)
Creates a port with a
default lookup using the given location and owner. |
Modifier and Type | Field and Description |
---|---|
static IPortLocationModelParameter |
BendAnchoredPortLocationModel.FIRST_BEND
A convenience instance of a parameter that is bound to the first
IBend of the edge. |
static IPortLocationModelParameter |
BendAnchoredPortLocationModel.LAST_BEND
A convenience instance of a parameter that is bound to the last
IBend of the edge. |
static IPortLocationModelParameter |
FreeNodePortLocationModel.NODE_BOTTOM_ANCHORED
A read only immutable singleton instance of a parameter that locates the port at the center of the bottom border of the
node layout.
|
static IPortLocationModelParameter |
FreeNodePortLocationModel.NODE_BOTTOM_LEFT_ANCHORED
A read only immutable singleton instance of a parameter that locates the port at the bottom left corner of the node
layout.
|
static IPortLocationModelParameter |
FreeNodePortLocationModel.NODE_BOTTOM_RIGHT_ANCHORED
A read only immutable singleton instance of a parameter that locates the port at the bottom right corner of the node
layout.
|
static IPortLocationModelParameter |
FreeNodePortLocationModel.NODE_CENTER_ANCHORED
A read only immutable singleton instance of a parameter that locates the port at the center of the node layout.
|
static IPortLocationModelParameter |
FreeNodePortLocationModel.NODE_LEFT_ANCHORED
A read only immutable singleton instance of a parameter that locates the port at the center of the left border of the
node layout.
|
static IPortLocationModelParameter |
FreeNodePortLocationModel.NODE_RIGHT_ANCHORED
A read only immutable singleton instance of a parameter that locates the port at the center of the right border of the
node layout.
|
static IPortLocationModelParameter |
FreeNodePortLocationModel.NODE_TOP_ANCHORED
A read only immutable singleton instance of a parameter that locates the port at the center of the top border of the
node layout.
|
static IPortLocationModelParameter |
FreeNodePortLocationModel.NODE_TOP_LEFT_ANCHORED
A read only immutable singleton instance of a parameter that locates the port at the top left corner of the node
layout.
|
static IPortLocationModelParameter |
FreeNodePortLocationModel.NODE_TOP_RIGHT_ANCHORED
A read only immutable singleton instance of a parameter that locates the port at the top right corner of the node
layout.
|
Modifier and Type | Method and Description |
---|---|
IPortLocationModelParameter |
GenericPortLocationModel.addParameter(IPortLocationModelParameter locationParameter)
Adds the given parameter to the
LocationParameters of this instance. |
IPortLocationModelParameter |
SegmentRatioPortLocationModel.createFromSource(double ratio,
int segmentIndex)
Creates the a new parameter for the specified segment index and ratio.
|
IPortLocationModelParameter |
BendAnchoredPortLocationModel.createFromSource(int bendIndex)
Creates a parameter that indicates the location of the bend with index
bendIndex starting from the source side. |
IPortLocationModelParameter |
SegmentRatioPortLocationModel.createFromTarget(double ratio,
int segmentIndex)
Creates the a new parameter for the specified segment index counted from the target end of the edge and the provided
ratio.
|
IPortLocationModelParameter |
BendAnchoredPortLocationModel.createFromTarget(int bendIndex)
Creates a parameter that indicates the location of the bend with index
bendIndex starting from the target side. |
IPortLocationModelParameter |
SegmentRatioPortLocationModel.createParameter(IPortOwner owner,
PointD location) |
IPortLocationModelParameter |
IPortLocationModel.createParameter(IPortOwner owner,
PointD location)
Factory method that creates a parameter for the given port that tries to match the provided location in absolute world
coordinates.
|
IPortLocationModelParameter |
GenericPortLocationModel.createParameter(IPortOwner owner,
PointD location)
Factory method that creates a parameter for the given port that tries to match the provided location in absolute world
coordinates.
|
IPortLocationModelParameter |
FreeNodePortLocationModel.createParameter(IPortOwner owner,
PointD location) |
IPortLocationModelParameter |
BendAnchoredPortLocationModel.createParameter(IPortOwner owner,
PointD location) |
IPortLocationModelParameter |
FreeNodePortLocationModel.createParameter(PointD ratios)
Creates a parameter that uses the given ratios and offsets.
|
IPortLocationModelParameter |
FreeNodePortLocationModel.createParameter(PointD ratios,
PointD offset)
Creates a parameter that uses the given ratios and offsets.
|
Modifier and Type | Method and Description |
---|---|
IEnumerator<IPortLocationModelParameter> |
GenericPortLocationModel.enumerator() |
Iterable<IPortLocationModelParameter> |
GenericPortLocationModel.getLocationParameters()
Gets all parameters that are associated with this instance.
|
Modifier and Type | Method and Description |
---|---|
void |
GenericPortLocationModel.add(IPortLocationModelParameter locationParameter)
This method simply delegates to
GenericPortLocationModel.addParameter(IPortLocationModelParameter) . |
IPortLocationModelParameter |
GenericPortLocationModel.addParameter(IPortLocationModelParameter locationParameter)
Adds the given parameter to the
LocationParameters of this instance. |
ILookup |
SegmentRatioPortLocationModel.getContext(IPort port,
IPortLocationModelParameter locationParameter) |
ILookup |
IPortLocationModel.getContext(IPort port,
IPortLocationModelParameter locationParameter)
Provides a
lookup context for the given combination of port and parameter. |
ILookup |
GenericPortLocationModel.getContext(IPort port,
IPortLocationModelParameter locationParameter) |
ILookup |
FreeNodePortLocationModel.getContext(IPort port,
IPortLocationModelParameter locationParameter) |
ILookup |
BendAnchoredPortLocationModel.getContext(IPort port,
IPortLocationModelParameter locationParameter) |
PointD |
SegmentRatioPortLocationModel.getLocation(IPort port,
IPortLocationModelParameter locationParameter) |
PointD |
IPortLocationModel.getLocation(IPort port,
IPortLocationModelParameter locationParameter)
Determines the location of the port for the given parameter.
|
PointD |
GenericPortLocationModel.getLocation(IPort port,
IPortLocationModelParameter locationParameter) |
PointD |
FreeNodePortLocationModel.getLocation(IPort port,
IPortLocationModelParameter locationParameter) |
PointD |
BendAnchoredPortLocationModel.getLocation(IPort port,
IPortLocationModelParameter locationParameter) |
Modifier and Type | Method and Description |
---|---|
static IAnimation |
IAnimation.createPortAnimation(IGraph graph,
IPort port,
IPortLocationModelParameter targetLocationParameter,
Duration preferredDuration)
Creates a new
IAnimation that animates the given port from its current location to the new location
given by the targetLocationParameter . |
Modifier and Type | Method and Description |
---|---|
static IAnimation |
IAnimation.createGraphAnimation(IGraph graph,
IMapper<INode,IRectangle> targetNodeLayouts,
IMapper<IEdge,IPoint[]> targetBendLocations,
IMapper<IPort,IPortLocationModelParameter> targetPortLocations,
IMapper<ILabel,ILabelModelParameter> targetLayoutParameters,
Duration preferredDuration)
Creates a new
IAnimation that animates the given layout of all types of graph items. |
Modifier and Type | Method and Description |
---|---|
IPortLocationModelParameter |
IPortCandidate.getLocationParameter()
Returns the model parameter that will be used for the
LocationParameter if this
candidate is chosen. |
IPortLocationModelParameter |
DefaultPortCandidate.getLocationParameter()
Gets the model parameter that will be used for the
LocationParameter if this
candidate is chosen. |
protected IPortLocationModelParameter |
PortLocationModelParameterHandle.getNewParameter(IPort port,
IPortLocationModel model,
PointD location)
Callback method that obtains the new parameter for the given location and port.
|
Modifier and Type | Method and Description |
---|---|
protected DefaultPortCandidate |
AbstractPortCandidateProvider.createCandidate(IPortOwner owner,
IPortLocationModelParameter locationParameter)
Factory method that creates a simple candidate that will use the
AbstractPortCandidateProvider.createInstance(IInputModeContext, DefaultPortCandidate)
method of this instance to delegate IPortCandidate.createPort(IInputModeContext) queries to. |
protected DefaultPortCandidate |
AbstractPortCandidateProvider.createCandidate(IPortOwner owner,
IPortLocationModelParameter locationParameter,
boolean valid)
Factory method that creates a simple candidate that will use the
AbstractPortCandidateProvider.createInstance(IInputModeContext, DefaultPortCandidate)
method of this instance to delegate IPortCandidate.createPort(IInputModeContext) queries to. |
protected IPort |
DefaultPortCandidate.createInstance(IInputModeContext context,
IGraph graph,
IPortLocationModelParameter locationParameter,
IPortStyle style,
Object tag)
Actually creates the
IPort instance. |
void |
DefaultPortCandidate.setLocationParameter(IPortLocationModelParameter value)
Sets the model parameter that will be used for the
LocationParameter if this
candidate is chosen. |
protected void |
PortLocationModelParameterHandle.setParameter(IGraph graph,
IPort port,
IPortLocationModelParameter locationParameter)
Callback method that applies the parameter.
|
Constructor and Description |
---|
DefaultPortCandidate(IPortOwner owner,
IPortLocationModelParameter locationParameter)
Creates a candidate for the given
owner that uses the graph's defaults for the port's style and the given
locationParameter . |
DefaultPortCandidate(IPortOwner owner,
IPortLocationModelParameter locationParameter,
PortCandidateValidity validity)
Creates a candidate for the given
owner that uses the graph's defaults for the port's style and the given
locationParameter . |