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.graphml |
Definitions, default implementations, and support classes for GraphML I/O support.
|
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 | Interface and Description |
---|---|
interface |
IEdge
The interface used to model edges in an
IGraph implementation. |
interface |
INode
The interface for node entities in an
IGraph . |
Modifier and Type | Class and Description |
---|---|
class |
SimpleEdge
A simple mutable implementation of the
IEdge interface that can be used stand-alone. |
class |
SimpleNode
A simple mutable implementation of the
INode interface that can be used stand-alone. |
Modifier and Type | Method and Description |
---|---|
default <T extends IPortOwner> |
IGraph.neighbors(Class<T> tType,
T portOwner)
Enumerates the neighbors of a given
IPortOwner . |
default <T extends IPortOwner> |
IGraph.predecessors(Class<T> tType,
T portOwner)
Enumerates the predecessors of a given
IPortOwner . |
default <T extends IPortOwner> |
IGraph.successors(Class<T> tType,
T portOwner)
Enumerates the successors of a given
IPortOwner . |
Modifier and Type | Method and Description |
---|---|
IPortOwner |
SimplePort.getOwner() |
IPortOwner |
PortEventArgs.getOwner()
Gets the owner the port the was connected to before the event happened.
|
IPortOwner |
IPort.getOwner()
Returns the owner of this port.
|
IPortOwner |
EdgeEventArgs.getSourcePortOwner()
Gets the owner of the source port the edge was connected to before the event happened.
|
protected IPortOwner |
GraphClipboard.getTarget(IPort originalPort)
Provides an
IPortOwner where the given originalPort can be added to. |
IPortOwner |
EdgeEventArgs.getTargetPortOwner()
Gets the owner of the target port the edge was connected to before the event happened.
|
default IPortOwner |
IEdge.opposite(IPortOwner owner)
Gets the opposite port owner of an
IEdge . |
Modifier and Type | Method and Description |
---|---|
protected IPort |
GraphCopier.addPort(IGraph sourceGraph,
IGraph targetGraph,
IPortOwner targetOwner,
IPort sourcePort)
Callback method that adds a port to the targetPortOwner in the targetGraph as a copy of the source port.
|
default IPort |
IGraph.addPort(IPortOwner owner)
Add a port to the given port owner using the location model parameter, style and tag.
|
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) |
default IPort |
IGraph.addPort(IPortOwner owner,
PointD location)
Add a port to the given port owner using the absolute coordinates as the new initial position of the port anchor.
|
default IPort |
IGraph.addPort(IPortOwner owner,
PointD location,
IPortStyle style)
Add a port to the given port owner using the absolute coordinates as the new initial position of the port anchor.
|
default IPort |
IGraph.addPort(IPortOwner owner,
PointD location,
IPortStyle style,
Object tag)
Add a port to the given port owner using the absolute coordinates as the new initial position of the port anchor.
|
default IPortLocationModelParameter |
IGraph.createDefaultPortLocationParameter(IPortOwner owner)
Creates a location model parameter for a newly created
IPort at the owner that matches the
location . |
default IPortLocationModelParameter |
IGraph.createDefaultPortLocationParameter(IPortOwner owner,
PointD location)
Creates a location model parameter for a newly created
IPort at the owner that matches the
location . |
default int |
IGraph.degree(IPortOwner owner)
Calculates the number of edges at the given
IPortOwner for this graph. |
default IListEnumerable<IEdge> |
IGraph.edgesAt(IPortOwner owner)
Convenience method that yields all adjacent edges at the given owner.
|
IListEnumerable<IEdge> |
IGraph.edgesAt(IPortOwner owner,
AdjacencyTypes type)
Returns an
IListEnumerable for all edges that have the given port owner as their target port's
or source port's Owner depending on the AdjacencyTypes . |
IListEnumerable<IEdge> |
FilteredGraphWrapper.edgesAt(IPortOwner owner,
AdjacencyTypes type) |
IListEnumerable<IEdge> |
DefaultGraph.edgesAt(IPortOwner owner,
AdjacencyTypes type) |
IListEnumerable<IEdge> |
AbstractGraphWrapper.edgesAt(IPortOwner owner,
AdjacencyTypes type) |
default IEdge |
IGraph.getEdge(IPortOwner from,
IPortOwner to)
Finds an edge that connects
from and to in the given graph. |
IPortLocationModelParameter |
PortDefaults.getLocationParameterInstance(IPortOwner owner) |
IPortLocationModelParameter |
IPortDefaults.getLocationParameterInstance(IPortOwner owner)
Factory method that returns a location model parameter instance for use with newly created ports.
|
protected IPort |
DefaultGraph.getNewSourcePort(IPortOwner source)
Determines a
IPort instance to use for the creation of a new edge that starts at the given IPortOwner . |
protected IPort |
DefaultGraph.getNewTargetPort(IPortOwner targetOwner)
Determines a
IPort instance to use for the creation of a new edge that ends at the given IPortOwner . |
default IPortDefaults |
IGraph.getPortDefaults(IPortOwner owner)
|
protected IPortLocationModelParameter |
GraphClipboard.getPortLocationParameter(GraphCopier copier,
IGraph graph,
IPort originalPort,
IPortOwner newOwner)
|
IPortStyle |
PortDefaults.getStyleInstance(IPortOwner owner) |
IPortStyle |
IPortDefaults.getStyleInstance(IPortOwner owner)
Factory method that returns a style instance for use with newly created ports.
|
default int |
IGraph.inDegree(IPortOwner owner)
Calculates the number of incoming edges at the given
IPortOwner for this graph. |
default IListEnumerable<IEdge> |
IGraph.inEdgesAt(IPortOwner owner)
Convenience method that yields the incoming edges at the given owner.
|
protected void |
DefaultGraph.onAddingPort(IPortOwner owner,
IPort port)
Called when a port is going to be added to a node.
|
protected void |
DefaultGraph.onPortRemoved(IPortOwner oldOwner,
IPort port)
Callback method that is called just after a port has been removed from its owner.
|
default IPortOwner |
IEdge.opposite(IPortOwner owner)
Gets the opposite port owner of an
IEdge . |
default int |
IGraph.outDegree(IPortOwner owner)
Calculates the number of outgoing edges at the given
IPortOwner for this graph. |
default IListEnumerable<IEdge> |
IGraph.outEdgesAt(IPortOwner owner)
Convenience method that yields the outgoing edges at the given owner.
|
void |
SimplePort.setOwner(IPortOwner value)
Returns the owner of this port.
|
Constructor and Description |
---|
EdgeEventArgs(IEdge edge,
IPort source,
IPort target,
IPortOwner sourceOwner,
IPortOwner targetOwner)
Initializes a new instance of the
EdgeEventArgs class. |
PortEventArgs(IPort port,
IPortOwner owner)
Initializes a new instance of the
PortEventArgs class. |
SimplePort(IPortOwner owner,
IPortLocationModelParameter locationParameter)
Creates a port with a
default lookup using the given location and owner. |
Modifier and Type | Method and Description |
---|---|
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) |
boolean |
IPortLocationModelParameter.supports(IPortOwner owner)
Determines whether this parameter can be used for ports at the given
owner . |
Modifier and Type | Method and Description |
---|---|
IPort |
IGraphElementFactory.addPort(IParseContext context,
IPortOwner owner)
Adds a new port to the given
IPortOwner . |
Modifier and Type | Field and Description |
---|---|
protected IPortOwner |
PortsHandleProvider.portOwner
The owner of the ports.
|
Modifier and Type | Method and Description |
---|---|
IPortOwner |
IPortCandidate.getOwner()
Returns the possible owner of the port to be created for this candidate.
|
IPortOwner |
DefaultPortCandidate.getOwner()
Gets the owner of the port to be created.
|
protected IPortOwner |
CreateEdgeInputMode.getPortOwner(PointD location)
Retrieves the port owner at a given position in world coordinates.
|
protected IPortOwner |
CreateEdgeInputMode.getSource(PointD sourceLocation)
Finds the source
port owner at the specified location. |
protected IPortOwner |
CreateEdgeInputMode.getTarget(PointD targetLocation)
Finds the target
port owner at the specified location. |
Modifier and Type | Method and Description |
---|---|
protected Iterable<IPortOwner> |
CreateEdgeInputMode.getPortOwners()
Retrieves the port owners from the graph in the order of their importance.
|
protected Iterable<IPortOwner> |
OrthogonalEdgeEditingContext.getTransformedPortOwners()
Provides access to the enumeration of
IPortOwner instances that are being transformed during the edit. |
Modifier and Type | Method and Description |
---|---|
protected void |
AbstractPortCandidateProvider.addExistingPorts(IPortOwner owner,
List<IPortCandidate> list)
Convenience method for subclasses that adds all existing
Ports of the owner to the
provided list. |
void |
OrthogonalEdgeEditingContext.addTransformedPortOwner(IPortOwner owner)
Adds an
IPortOwner that is being transformed somehow during the edit so that the attached ports
will be moved in an irregular (non-linear ) way. |
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. |
static IPortCandidateProvider |
IPortCandidateProvider.fromExistingPorts(IPortOwner owner)
Creates an implementation of the
IPortCandidateProvider interface that returns the ports that exist in the given
Ports 's IPortOwner collection. |
static IPortCandidateProvider |
IPortCandidateProvider.fromPortDefaults(IPortOwner owner)
Creates a simple implementation of an
IPortCandidateProvider that always returns a candidate that uses the
default LocationParameter for the corresponding
IPortDefaults . |
static AbstractPortCandidateProvider |
IPortCandidateProvider.fromShapeGeometry(IPortOwner owner,
boolean addExistingPortsEnabled,
double minimumSegmentLength,
double... ratios)
Creates an implementation of
IPortCandidateProvider that works for IPortOwner implementations that have
IShapeGeometry instances in their lookup. |
static AbstractPortCandidateProvider |
IPortCandidateProvider.fromShapeGeometry(IPortOwner owner,
double... ratios)
Creates an implementation of
IPortCandidateProvider that works for IPortOwner implementations that have
IShapeGeometry instances in their lookup. |
static IPortCandidateProvider |
IPortCandidateProvider.fromUnoccupiedPorts(IPortOwner owner)
Creates a simple implementation of an
IPortCandidateProvider that returns unoccupied ports at a given entity. |
protected IPortCandidateProvider |
CreateEdgeInputMode.getSourcePortCandidateProvider(IPortOwner sourceOwner)
Retrieves the port candidate provider instance given a source port owner.
|
protected IPortCandidateProvider |
CreateEdgeInputMode.getTargetPortCandidateProvider(IPortCandidate sourcePortCandidate,
IPortOwner targetOwner,
PointD location)
Retrieves the port candidate provider instance given a source port candidate and a possible target item.
|
void |
DefaultPortCandidate.setOwner(IPortOwner value)
Sets the owner of the port to be created.
|
Constructor and Description |
---|
DefaultPortCandidate(IPortOwner owner)
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,
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 . |
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 . |
PortsHandleProvider(IPortOwner owner)
Creates an instance using the given owner as the provider for the ports.
|