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.graph.styles |
Contains interfaces and default implementations for graph element styles.
|
com.yworks.yfiles.graphml |
Definitions, default implementations, and support classes for GraphML I/O support.
|
com.yworks.yfiles.layout |
Provides essential classes and interfaces that constitute the infrastructure for automatic graph layout generation.
|
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 | Class and Description |
---|---|
class |
SimplePort
A simple mutable implementation of the
IPort interface that can be used stand-alone. |
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 IPort |
IGraph.addRelativePort(INode node,
PointD relativeLocation)
Adds a new port to the graph at the node using a location that is relative to the center of the node.
|
abstract IPort |
FoldingPortState.asPort()
Returns an
IPort instance which represents this port state. |
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 . |
IPort |
SimpleEdge.getSourcePort() |
IPort |
IEdge.getSourcePort()
Gets the source port instance this edge is connected to.
|
IPort |
EdgeEventArgs.getSourcePort()
Gets the source port the edge was connected to before the event happened.
|
protected IPort |
GraphClipboard.getTarget(IEdge originalEdge,
boolean atSource)
Provides an
IPort where the given originalEdge can be added to. |
IPort |
SimpleEdge.getTargetPort() |
IPort |
IEdge.getTargetPort()
Gets the target port instance this edge is connected to.
|
IPort |
EdgeEventArgs.getTargetPort()
Gets the target port the edge was connected to before the event happened.
|
default IPort |
IEdge.opposite(IPort port)
Gets the opposite port of an
IEdge . |
Modifier and Type | Method and Description |
---|---|
LookupDecorator<IPort,IClipboardHelper> |
PortDecorator.getClipboardHelperDecorator()
Gets a
LookupDecorator that decorates the IClipboardHelper type for the type of items this instance has
been created for. |
<TInterface> |
PortDecorator.getDecoratorFor(Class<TInterface> interfaceType)
|
<TInterface> |
PortDecorator.getDecoratorFor(Class<TInterface> interfaceType,
boolean decorateNulls)
|
<TInterface> |
PortDecorator.getDecoratorFor(Class<TInterface> interfaceType,
boolean decorateNulls,
boolean nullIsFallback)
|
LookupDecorator<IPort,IEdgePathCropper> |
PortDecorator.getEdgePathCropperDecorator()
Gets a
LookupDecorator that decorates the IEdgePathCropper type for the
IPort s of the graph this instance has been created for. |
LookupDecorator<IPort,IFocusIndicatorInstaller> |
PortDecorator.getFocusIndicatorDecorator()
Gets a
LookupDecorator that decorates the IFocusIndicatorInstaller type for the type of items this
instance has been created for. |
LookupDecorator<IPort,IHandle> |
PortDecorator.getHandleDecorator()
Gets a
LookupDecorator that decorates the IHandle type for the
IPort s of the graph this instance has been created for. |
LookupDecorator<IPort,IHandleProvider> |
PortDecorator.getHandleProviderDecorator()
Gets a
LookupDecorator that decorates the IHandleProvider type for the type of items this instance has
been created for. |
LookupDecorator<IPort,IHighlightIndicatorInstaller> |
PortDecorator.getHighlightDecorator()
Gets a
LookupDecorator that decorates the IHighlightIndicatorInstaller type for the type of items this
instance has been created for. |
LookupDecorator<IPort,IMarqueeTestable> |
PortDecorator.getMarqueeTestableDecorator()
Gets a
LookupDecorator that decorates the IMarqueeTestable type for the type of items this instance has
been created for. |
LookupDecorator<IPort,IMementoSupport> |
PortDecorator.getMementoSupportDecorator()
Gets a
LookupDecorator that decorates the IMementoSupport type for the type of items this instance has
been created for. |
LookupDecorator<IPort,IObstacleProvider> |
PortDecorator.getObstacleProviderDecorator()
Gets a
LookupDecorator that decorates the IObstacleProvider type for the type of items this instance has
been created for. |
IListEnumerable<IPort> |
SimpleNode.getPorts() |
IListEnumerable<IPort> |
SimpleEdge.getPorts() |
IListEnumerable<IPort> |
IPortOwner.getPorts()
Provides access to a collection of
ports that are owned by this instance. |
IListEnumerable<IPort> |
IGraph.getPorts()
A view of the ports contained in this graph.
|
IListEnumerable<IPort> |
FilteredGraphWrapper.getPorts() |
IListEnumerable<IPort> |
DefaultGraph.getPorts() |
IListEnumerable<IPort> |
AbstractGraphWrapper.getPorts() |
LookupDecorator<IPort,IPortSnapResultProvider> |
PortDecorator.getPortSnapResultProviderDecorator()
Gets a
LookupDecorator that decorates the IPortSnapResultProvider for the
IPort s this instance has been created for. |
LookupDecorator<IPort,IPositionHandler> |
PortDecorator.getPositionHandlerDecorator()
Gets a
LookupDecorator that decorates the IPositionHandler type for the type of items this instance has
been created for. |
LookupDecorator<IPort,ISelectionIndicatorInstaller> |
PortDecorator.getSelectionDecorator()
Gets a
LookupDecorator that decorates the ISelectionIndicatorInstaller type for the type of items this
instance has been created for. |
LookupDecorator<IPort,ISnapLineProvider> |
PortDecorator.getSnapLineProviderDecorator()
Gets a
LookupDecorator that decorates the ISnapLineProvider for the
IPort s this instance has been created for. |
Modifier and Type | Method and Description |
---|---|
IEdge |
IFoldingEdgeFactory.addAsSeparateEdge(IPort sourcePort,
IPort targetPort)
Tells the
IFoldingView implementation to add the edge provided to the IFoldingEdgeConverter.addFoldingEdge(IFoldingEdgeFactory, com.yworks.yfiles.graph.IFoldingView, IEdge, com.yworks.yfiles.graph.INode, boolean, com.yworks.yfiles.graph.INode, boolean)
method as a separate folding edge to the view at the given ports. |
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.
|
protected IEdge |
GraphCopier.copyEdge(IGraph sourceGraph,
IGraph targetGraph,
IEdge sourceEdge,
IPort targetSourcePort,
IPort targetTargetPort)
Callback method that adds an edge to the targetGraph as a copy of the source edge.
|
IPortLocationModelParameter |
GraphCopier.copyPortLocationParameter(IGraph graph,
IPort port)
Copies a
IPortLocationModelParameter for a given port. |
IPortStyle |
GraphCopier.copyPortStyle(IGraph graph,
IPort port)
Copies an
IPortStyle instance. |
protected Object |
GraphCopier.copyPortTag(IPort port,
Object tag)
|
default IEdge |
IGraph.createEdge(IPort sourcePort,
IPort targetPort)
Creates and returns an edge that connects to the given port instances.
|
default IEdge |
IGraph.createEdge(IPort sourcePort,
IPort targetPort,
IEdgeStyle style)
Creates and returns an edge that connects to the given port instances.
|
IEdge |
IGraph.createEdge(IPort sourcePort,
IPort targetPort,
IEdgeStyle style,
Object tag)
Creates and returns an edge that connects to the given port instances.
|
IEdge |
DefaultGraph.createEdge(IPort sourcePort,
IPort targetPort,
IEdgeStyle style,
Object tag) |
IEdge |
AbstractGraphWrapper.createEdge(IPort sourcePort,
IPort targetPort,
IEdgeStyle style,
Object tag) |
protected IPortLocationModelParameter |
DefaultFolderNodeConverter.createPortLocationParameter(IFoldingView foldingView,
IPort localPort,
IPort masterPort)
Callback factory method that creates the
IPortLocationModelParameter for use in
DefaultFolderNodeConverter.initializeFolderNodePorts(FolderNodeState, IFoldingView, INode, INode) . |
protected IPortStyle |
DefaultFolderNodeConverter.createPortStyle(IFoldingView foldingView,
IPort localPort,
IPort masterPort)
Callback factory method that creates the
IPortStyle for use in
DefaultFolderNodeConverter.initializeFolderNodePorts(FolderNodeState, IFoldingView, INode, INode) . |
protected IUndoUnit |
DefaultGraph.createUndoUnitForEdgeReconnection(IEdge edge,
IPort oldSource,
IPort oldTarget)
Creates the edge reconnection
undo unit for the given edge. |
protected IUndoUnit |
DefaultGraph.createUndoUnitForPortAddition(IPort port)
Creates the port addition
undo unit for the given port. |
protected IUndoUnit |
DefaultGraph.createUndoUnitForPortRemoval(IPort port)
Creates the port removal
undo unit for the given port. |
default int |
IGraph.degree(IPort port)
Calculates the number of edges at the given
IPort for this graph. |
default IListEnumerable<IEdge> |
IGraph.edgesAt(IPort port)
Convenience method that yields all adjacent edges at the given port.
|
IListEnumerable<IEdge> |
IGraph.edgesAt(IPort port,
AdjacencyTypes type)
Returns an
Iterable for all edges that are adjacent to the given port as a SourcePort
or TargetPort . |
IListEnumerable<IEdge> |
FilteredGraphWrapper.edgesAt(IPort port,
AdjacencyTypes type) |
IListEnumerable<IEdge> |
DefaultGraph.edgesAt(IPort port,
AdjacencyTypes type) |
IListEnumerable<IEdge> |
AbstractGraphWrapper.edgesAt(IPort port,
AdjacencyTypes type) |
default IEdge |
IGraph.getEdge(IPort sourcePort,
IPort targetPort)
Finds an edge that connects
sourcePort and targetPort in the given graph. |
FoldingPortState |
FolderNodeState.getFoldingPortState(IPort masterPort)
Provides access to the folding state of a master port.
|
protected IPortLocationModelParameter |
GraphClipboard.getPortLocationParameter(GraphCopier copier,
IGraph graph,
IPort originalPort,
IPortOwner newOwner)
|
protected IPortOwner |
GraphClipboard.getTarget(IPort originalPort)
Provides an
IPortOwner where the given originalPort can be added to. |
default int |
IGraph.inDegree(IPort port)
Calculates the number of incoming edges at the given
IPort for this graph. |
default IListEnumerable<IEdge> |
IGraph.inEdgesAt(IPort port)
Convenience method that yields the incoming edges at the given port.
|
protected void |
DefaultGraph.onAddingPort(IPortOwner owner,
IPort port)
Called when a port is going to be added to a node.
|
protected void |
DefaultGraph.onChangingEdgePorts(IEdge edge,
IPort newSource,
IPort newTarget)
Callback that is invoked before the ports of an edge are being changed.
|
protected void |
DefaultGraph.onChangingPortLocationModelParameter(IPort port,
IPortLocationModelParameter newLocationParameter)
Callback that is invoked before the
LocationParameter of a port is being changed. |
protected void |
DefaultGraph.onChangingPortStyle(IPort port,
IPortStyle newStyle)
Callback that is invoked before a port style is being changed.
|
protected void |
DefaultGraph.onCreatingEdge(IEdge edge,
IPort sourcePort,
IPort targetPort)
Callback that is invoked before the edge is added to this graph's structure.
|
protected void |
DefaultGraph.onEdgePortsChanged(IEdge edge,
IPort oldSource,
IPort oldTarget)
Callback that is invoked after the ports of an edge has changed.
|
protected void |
DefaultGraph.onEdgeRemoved(IEdge edge,
IPort oldSource,
IPort oldTarget)
Callback that triggers the
EdgeRemoved event. |
protected void |
DefaultGraph.onPortAdded(IPort port)
Called when a port has been added to a node.
|
protected void |
GraphCopier.onPortCopied(IPort original,
IPort copy)
Called after a port has been copied.
|
protected void |
DefaultGraph.onPortLocationParameterChanged(IPort port,
IPortLocationModelParameter oldLocationParameter)
Callback that is invoked after a port location model parameter has changed.
|
protected void |
DefaultGraph.onPortRemoved(IPortOwner oldOwner,
IPort port)
Callback method that is called just after a port has been removed from its owner.
|
protected void |
DefaultGraph.onPortStyleChanged(IPort port,
IPortStyle oldStyle)
Callback that is invoked after a port style has changed.
|
protected void |
DefaultGraph.onPortTagChanged(IPort port,
Object oldTag)
Callback that is invoked after a port tag has changed.
|
protected void |
DefaultGraph.onRemovingPort(IPort port)
Callback method that is called just before a port will be removed.
|
default IPort |
IEdge.opposite(IPort port)
Gets the opposite port of an
IEdge . |
default int |
IGraph.outDegree(IPort port)
Calculates the number of outgoing edges at the given
IPort for this graph. |
default IListEnumerable<IEdge> |
IGraph.outEdgesAt(IPort port)
Convenience method that yields the outgoing edges at the given port.
|
void |
IGraph.setEdgePorts(IEdge edge,
IPort sourcePort,
IPort targetPort)
Sets the ports of the given edge to the new values.
|
void |
DefaultGraph.setEdgePorts(IEdge edge,
IPort sourcePort,
IPort targetPort)
Sets the ports of the given edge to the new values.
|
void |
AbstractGraphWrapper.setEdgePorts(IEdge edge,
IPort sourcePort,
IPort targetPort) |
default void |
IGraph.setPortLocation(IPort port,
PointD location)
Convenience method that tries to set the absolute coordinates of the given port to the given values.
|
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) |
default void |
IGraph.setRelativePortLocation(IPort port,
PointD relativeLocation)
|
void |
SimpleEdge.setSourcePort(IPort value)
Sets the source port instance this edge is connected to.
|
void |
IGraph.setStyle(IPort port,
IPortStyle style)
Assigns the given style instance by reference to the port.
|
void |
DefaultGraph.setStyle(IPort port,
IPortStyle style) |
void |
AbstractGraphWrapper.setStyle(IPort port,
IPortStyle style) |
void |
SimpleEdge.setTargetPort(IPort value)
Sets the target port instance this edge is connected to.
|
Modifier and Type | Method and Description |
---|---|
void |
IGraph.addPortAddedListener(IEventHandler<ItemEventArgs<IPort>> portAddedEvent)
Adds the given listener for the
PortAdded event that occurs when a port has been added to this graph instance. |
void |
DefaultGraph.addPortAddedListener(IEventHandler<ItemEventArgs<IPort>> portAddedEvent) |
void |
AbstractGraphWrapper.addPortAddedListener(IEventHandler<ItemEventArgs<IPort>> portAddedEvent) |
void |
GraphCopier.addPortCopiedListener(IEventHandler<ItemCopiedEventArgs<IPort>> portCopiedEvent)
Adds the given listener for the
PortCopied event that occurs after a port has been copied. |
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) |
void |
IGraph.addPortStyleChangedListener(IEventHandler<ItemChangedEventArgs<IPort,IPortStyle>> portStyleChangedEvent)
Adds the given listener for the
PortStyleChanged event that occurs when a port style has been replaced. |
void |
DefaultGraph.addPortStyleChangedListener(IEventHandler<ItemChangedEventArgs<IPort,IPortStyle>> portStyleChangedEvent) |
void |
AbstractGraphWrapper.addPortStyleChangedListener(IEventHandler<ItemChangedEventArgs<IPort,IPortStyle>> portStyleChangedEvent) |
void |
IGraph.addPortTagChangedListener(IEventHandler<ItemChangedEventArgs<IPort,Object>> portTagChangedEvent)
Adds the given listener for the
PortTagChanged event that occurs when the tag of a
port has been replaced. |
void |
DefaultGraph.addPortTagChangedListener(IEventHandler<ItemChangedEventArgs<IPort,Object>> portTagChangedEvent) |
void |
AbstractGraphWrapper.addPortTagChangedListener(IEventHandler<ItemChangedEventArgs<IPort,Object>> portTagChangedEvent) |
protected void |
AbstractGraphWrapper.onPortAdded(ItemEventArgs<IPort> args)
Raises the
PortAdded event. |
protected void |
AbstractGraphWrapper.onPortLocationParameterChanged(ItemChangedEventArgs<IPort,IPortLocationModelParameter> args)
Raises the
PortLocationParameterChanged event. |
protected void |
AbstractGraphWrapper.onPortStyleChanged(ItemChangedEventArgs<IPort,IPortStyle> args)
Raises the
PortStyleChanged event. |
protected void |
AbstractGraphWrapper.onPortTagChanged(ItemChangedEventArgs<IPort,Object> args)
Raises the
PortTagChanged event. |
void |
IGraph.removePortAddedListener(IEventHandler<ItemEventArgs<IPort>> portAddedEvent)
Removes the given listener for the
PortAdded event that occurs when a port has been added to this graph
instance. |
void |
DefaultGraph.removePortAddedListener(IEventHandler<ItemEventArgs<IPort>> portAddedEvent) |
void |
AbstractGraphWrapper.removePortAddedListener(IEventHandler<ItemEventArgs<IPort>> portAddedEvent) |
void |
GraphCopier.removePortCopiedListener(IEventHandler<ItemCopiedEventArgs<IPort>> portCopiedEvent)
Removes the given listener for the
PortCopied event that occurs after a port has been copied. |
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) |
void |
IGraph.removePortStyleChangedListener(IEventHandler<ItemChangedEventArgs<IPort,IPortStyle>> portStyleChangedEvent)
Removes the given listener for the
PortStyleChanged event that occurs when a port style has been replaced. |
void |
DefaultGraph.removePortStyleChangedListener(IEventHandler<ItemChangedEventArgs<IPort,IPortStyle>> portStyleChangedEvent) |
void |
AbstractGraphWrapper.removePortStyleChangedListener(IEventHandler<ItemChangedEventArgs<IPort,IPortStyle>> portStyleChangedEvent) |
void |
IGraph.removePortTagChangedListener(IEventHandler<ItemChangedEventArgs<IPort,Object>> portTagChangedEvent)
Removes the given listener for the
PortTagChanged event that occurs when the tag of a
port has been replaced. |
void |
DefaultGraph.removePortTagChangedListener(IEventHandler<ItemChangedEventArgs<IPort,Object>> portTagChangedEvent) |
void |
AbstractGraphWrapper.removePortTagChangedListener(IEventHandler<ItemChangedEventArgs<IPort,Object>> portTagChangedEvent) |
void |
SimpleNode.setPorts(IListEnumerable<IPort> value)
Provides access to a collection of
ports that are owned by this instance. |
void |
SimpleEdge.setPorts(IListEnumerable<IPort> value)
Provides access to a collection of
ports that are owned by this instance. |
Constructor and Description |
---|
EdgeEventArgs(IEdge edge,
IPort source,
IPort target)
Initializes a new instance of the
EdgeEventArgs class. |
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. |
SimpleEdge(IPort sourcePort,
IPort targetPort)
Creates an edge with a
default lookup , and the given source and target ports. |
Modifier and Type | Method and Description |
---|---|
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 |
---|---|
protected IPort |
TemplatePortStyleRenderer.getPort()
Gets the currently configured port.
|
Modifier and Type | Method and Description |
---|---|
Node |
TemplatePortStyle.createControl(IRenderContext context,
IPort port)
Factory method that is called by the
TemplatePortStyleRenderer to create the control that will be used for the
display of the port. |
protected abstract Node |
AbstractPortStyle.createVisual(IRenderContext context,
IPort port)
Callback that creates the visual.
|
protected abstract RectD |
AbstractPortStyle.getBounds(ICanvasContext context,
IPort port)
Callback that returns the bounds of the visual for the port in the given context.
|
IBoundsProvider |
VoidPortStyleRenderer.getBoundsProvider(IPort port,
IPortStyle style)
Yields the
IBoundsProvider.EMPTY that will return empty bounds. |
IBoundsProvider |
TemplatePortStyleRenderer.getBoundsProvider(IPort port,
IPortStyle style)
Configures the
style and port parameters, calls TemplatePortStyleRenderer.configure() and returns this . |
IBoundsProvider |
IPortStyleRenderer.getBoundsProvider(IPort port,
IPortStyle style)
Gets an implementation of the
IBoundsProvider interface that can handle the provided port and its associated
style. |
ILookup |
VoidPortStyleRenderer.getContext(IPort port,
IPortStyle style)
Yields the
ILookup.EMPTY that will not yield anything. |
ILookup |
TemplatePortStyleRenderer.getContext(IPort port,
IPortStyle style)
Configures the
style and port parameters, does not call TemplatePortStyleRenderer.configure() and returns
this . |
ILookup |
IPortStyleRenderer.getContext(IPort port,
IPortStyle style)
Gets a temporary context instance that can be used to query additional information for the port's style.
|
IHitTestable |
VoidPortStyleRenderer.getHitTestable(IPort port,
IPortStyle style)
Yields the
IHitTestable.NEVER that will always report misses. |
IHitTestable |
TemplatePortStyleRenderer.getHitTestable(IPort port,
IPortStyle style)
Configures the
style and port parameters, calls TemplatePortStyleRenderer.configure() and returns this . |
IHitTestable |
IPortStyleRenderer.getHitTestable(IPort port,
IPortStyle style)
Gets an implementation of the
IHitTestable interface that can handle the provided port and its associated
style. |
IMarqueeTestable |
VoidPortStyleRenderer.getMarqueeTestable(IPort port,
IPortStyle style)
Yields the
IMarqueeTestable.NEVER that will always report misses. |
IMarqueeTestable |
TemplatePortStyleRenderer.getMarqueeTestable(IPort port,
IPortStyle style)
Configures the
style and port parameters, calls TemplatePortStyleRenderer.configure() and returns this . |
IMarqueeTestable |
IPortStyleRenderer.getMarqueeTestable(IPort port,
IPortStyle style)
Gets an implementation of the
IMarqueeTestable interface that can handle the provided port and its associated
style. |
protected IShapeGeometry |
DefaultEdgePathCropper.getPortGeometry(IPort port)
Returns the
geometry that is used to crop the edge at the port outline if CroppingAtPortEnabled
is set to true . |
SizeD |
TemplatePortStyle.getPreferredSize(IRenderContext context,
IPort port)
Convenience method that determines the preferred
RenderSize of the port if this style was
applied. |
SizeD |
TemplatePortStyleRenderer.getPreferredSize(IRenderContext context,
IPort port,
TemplatePortStyle style)
Calculates the preferred size for the given port and style.
|
IVisibilityTestable |
VoidPortStyleRenderer.getVisibilityTestable(IPort port,
IPortStyle style)
Yields the
IVisibilityTestable.NEVER that will always claim invisibility. |
IVisibilityTestable |
TemplatePortStyleRenderer.getVisibilityTestable(IPort port,
IPortStyle style)
Configures the
style and port parameters, does not call TemplatePortStyleRenderer.configure() and returns
this . |
IVisibilityTestable |
IPortStyleRenderer.getVisibilityTestable(IPort port,
IPortStyle style)
Gets an implementation of the
IVisibilityTestable interface that can handle the provided port and its associated
style. |
IVisualCreator |
VoidPortStyleRenderer.getVisualCreator(IPort port,
IPortStyle style)
Yields the
VoidVisualCreator.INSTANCE that will do nothing. |
IVisualCreator |
TemplatePortStyleRenderer.getVisualCreator(IPort port,
IPortStyle style)
Configures the
style and port parameters, calls TemplatePortStyleRenderer.configure() and returns this . |
IVisualCreator |
IPortStyleRenderer.getVisualCreator(IPort port,
IPortStyle style)
Gets an implementation of the
IVisualCreator interface that can handle the provided port and its associated
style. |
protected void |
PortTemplate.initializeFrom(IRenderContext ctx,
IPort port,
TemplatePortStyle style)
Initializes all properties with the given
IPort and style information. |
void |
PortTemplate.initializeFromInternal(IRenderContext ctx,
IPort item,
IPortStyle style)
Initializes this port template with the given
IPort and style information. |
protected boolean |
AbstractPortStyle.isHit(IInputModeContext context,
PointD location,
IPort port)
Determines whether the visual representation of the port has been hit at the given location.
|
protected boolean |
AbstractPortStyle.isInBox(IInputModeContext context,
RectD rectangle,
IPort port)
Determines whether the visualization for the specified port is included in the marquee selection.
|
protected boolean |
AbstractPortStyle.isVisible(ICanvasContext context,
RectD rectangle,
IPort port)
Determines whether the visualization for the specified port is visible in the context.
|
protected Object |
AbstractPortStyle.lookup(IPort port,
Class type)
Performs the
ILookup.lookup(Class) operation for the IPortStyleRenderer.getContext(IPort, IPortStyle)
that has been queried from the Renderer . |
protected Object |
TemplatePortStyleRenderer.lookupContext(TemplatePortStyle style,
IPort port,
Class type)
Delegates to the
TemplatePortStyle 's
ContextLookup . |
protected void |
TemplatePortStyleRenderer.setPort(IPort value)
Sets the currently configured port.
|
protected void |
PortTemplate.updateContent(TemplatePortStyle style,
IPort port)
Updates the content object the user has specified.
|
protected void |
PortTemplate.updateFor(IRenderContext ctx,
IPort port,
TemplatePortStyle style)
Updates all properties with the given
IPort and style information. |
void |
PortTemplate.updateForInternal(IRenderContext ctx,
IPort item,
IPortStyle style)
Updates this port template with the given
IPort and style information. |
protected Node |
AbstractPortStyle.updateVisual(IRenderContext context,
Node oldVisual,
IPort port)
Callback that updates the visual previously created by
AbstractPortStyle.createVisual(IRenderContext, IPort) . |
Modifier and Type | Method and Description |
---|---|
IPort |
IGraphElementFactory.addPort(IParseContext context,
IPortOwner owner)
Adds a new port to the given
IPortOwner . |
IPort |
IGraphElementResolver.resolvePort(IParseContext context,
String ownerId,
String id)
Resolve the GraphML
id to an IPort instance. |
IPort |
GraphElementIdAcceptor.resolvePort(IParseContext context,
String ownerId,
String id) |
Modifier and Type | Method and Description |
---|---|
Map<IPort,String> |
GraphElementIdAcceptor.getPortIds()
Return a mapping between all GraphML ids for
<port> elements and the corresponding IPort instances. |
Modifier and Type | Method and Description |
---|---|
IEdge |
IGraphElementFactory.createEdge(IParseContext context,
INode sourceNode,
IPort sourcePort,
INode targetNode,
IPort targetPort)
Creates an edge for the given context and the provided source and target nodes or ports.
|
String |
IGraphElementIdProvider.getPortId(IWriteContext context,
IPort port)
Get an ID for the specified
port object. |
void |
IGraphElementIdAcceptor.storeId(IParseContext context,
IPort port,
String id)
Store the value of the id attribute for the given port.
|
void |
GraphElementIdAcceptor.storeId(IParseContext context,
IPort port,
String id) |
Modifier and Type | Field and Description |
---|---|
static EdgeDpKey<IPort> |
LayoutGraphAdapter.ORIGINAL_SOURCE_PORT_DPKEY
|
static EdgeDpKey<IPort> |
LayoutGraphAdapter.ORIGINAL_TARGET_PORT_DPKEY
|
static GraphObjectDpKey<Iterable<IPort>> |
LayoutGraphAdapter.UNCONNECTED_PORTS_DPKEY
A data provider key that can be used to look up the original unconnected
ports of the original IPortOwner
of an Node or, in the case of edge-to-edge connections, an
Edge . |
Modifier and Type | Method and Description |
---|---|
protected INodeLayout |
LayoutGraphAdapter.createEdgePortLayout(IPort port)
Callback factory method that creates the
INodeLayout for the given IPort that is used as a dummy to
represent the port at the IEdge that owns port . |
protected void |
LayoutGraphAdapter.setEdgePortLocation(IPort port,
PointD newLocation)
Callback method that assigns a new location that matches
newLocation to port . |
protected void |
LayoutGraphAdapter.setRelativePortLocation(IPort port,
PointD newRelativeLocation)
Callback method that assigns a new relative location to
port . |
Modifier and Type | Method and Description |
---|---|
protected DefaultSelectionModel<IPort> |
GraphSelection.createPortSelectionModel()
Factory method that creates the
DefaultSelectionModel to use for the ports. |
ISelectionModel<IPort> |
IGraphSelection.getSelectedPorts()
An
ISelectionModel of the selected ports. |
ISelectionModel<IPort> |
GraphSelection.getSelectedPorts() |
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 . |
protected ICanvasObjectGroup |
GraphModelManager.getCanvasObjectGroup(IPort port)
Retrieves the Canvas Object group to use for the given port.
|
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 |
---|---|
protected IPort |
AbstractPortCandidateProvider.createInstance(IInputModeContext context,
DefaultPortCandidate candidate)
Callback method used by the ports created using the factory methods
AbstractPortCandidateProvider.createCandidate(IPortOwner, IPortLocationModelParameter, boolean) . |
protected IPort |
DefaultPortCandidate.createInstance(IInputModeContext context,
IGraph graph,
IPortLocationModelParameter locationParameter,
IPortStyle style,
Object tag)
Actually creates the
IPort instance. |
IPort |
IPortCandidate.createPort(IInputModeContext context)
If the client decides to use this port candidate, this method will serve as a factory to create the instance.
|
IPort |
DefaultPortCandidate.createPort(IInputModeContext context)
This implementation will throw a
UnsupportedOperationException if the validity is
PortCandidateValidity.DYNAMIC . |
IPort |
IPortSelectionTester.getHitPort(IInputModeContext context,
PointD location)
Returns the port at the given world coordinate position or
null if there is no such port. |
protected IPort |
PortLocationModelParameterHandle.getPort()
Gets the port this instance acts on.
|
IPort |
IPortCandidate.getPort()
Gets the port instance that is already live in the graph if this candidate wraps an existing port or
null
otherwise. |
IPort |
DefaultPortCandidate.getPort()
Returns the instance provided to the constructor or to the
setter . |
protected IPort |
PortRelocationHandle.getPort(IInputModeContext context,
IPortCandidate portCandidate,
PointD suggestedLocation)
Callback used during
PortRelocationHandle.dragFinished(IInputModeContext, PointD, PointD) to actually get the new port from the
chosen candidate. |
Modifier and Type | Method and Description |
---|---|
IGridConstraintProvider<IPort> |
GraphSnapContext.getPortGridConstraintProvider()
Gets the grid constraint provider for the
IPort s. |
IEnumerable<IPort> |
IPortSelectionTester.getPortsInBox(IInputModeContext context,
RectD rectangle)
Returns the ports for the given marquee rectangle.
|
Modifier and Type | Method and Description |
---|---|
void |
IPortSnapResultProvider.collectSnapResults(GraphSnapContext context,
CollectSnapResultsEventArgs args,
PointD suggestedLocation,
IPort port)
Called when a node is
dragged
to add SnapResult s for
OrthogonalSnapLine s to which this bend can potentially snap. |
protected IPortCandidate |
PortRelocationHandle.createExistingPortCandidate(IPort port)
Factory method that creates the candidate for the existing port.
|
protected IHandle |
PortsHandleProvider.getHandle(IPort port)
Retrieves the handle implementation from the port's lookup.
|
MovementInfo |
GraphSnapContext.getMovementInfo(IPort port)
Gets the movement info for the given port.
|
protected MoveTypes |
PortLocationModelParameterHandle.getMoveType(IPort port)
Determines the type of the movement for the given port.
|
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.setInstance(IPort port)
Sets the instance that will be returned by
Port and DefaultPortCandidate.createPort(IInputModeContext) . |
protected void |
PortLocationModelParameterHandle.setParameter(IGraph graph,
IPort port,
IPortLocationModelParameter locationParameter)
Callback method that applies the parameter.
|
protected void |
PortRelocationHandle.setPorts(IInputModeContext context,
IEdge edge,
IPort sourcePort,
IPort targetPort)
Finally sets the ports for the edge to the new values.
|
Modifier and Type | Method and Description |
---|---|
void |
CreateEdgeInputMode.addPortAddedListener(IEventHandler<ItemEventArgs<IPort>> portAddedEvent)
Adds the given listener for the
PortAdded event that occurs when this instance adds a port
to the source or target node during completion of the edge creation gesture. |
protected void |
CreateEdgeInputMode.onPortAdded(ItemEventArgs<IPort> args)
Raises the
PortAdded event if the mode has added a port
for the source or target node to complete the edge creation. |
void |
CreateEdgeInputMode.removePortAddedListener(IEventHandler<ItemEventArgs<IPort>> portAddedEvent)
Removes the given listener for the
PortAdded event that occurs when this instance adds a port
to the source or target node during completion of the edge creation gesture. |
void |
GraphSnapContext.setPortGridConstraintProvider(IGridConstraintProvider<IPort> value)
Sets the grid constraint provider for the
IPort s. |
Constructor and Description |
---|
DefaultPortCandidate(IPort port)
Creates a candidate using the given port as the template.
|
PortLocationModelParameterHandle(IPort port)
Initializes a new instance of the
PortLocationModelParameterHandle class to change the IPortLocationModelParameter
of the given . |