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.styles |
Contains interfaces and default implementations for graph element styles.
|
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 |
---|---|
IPortStyle |
GraphCopier.copyPortStyle(IGraph graph,
IPort port)
Copies an
IPortStyle instance. |
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 IPortStyle |
AbstractFoldingEdgeConverter.createSourcePortStyle(IFoldingView foldingView,
IEdge localEdge,
List<IEdge> masterEdges)
Callback factory method that creates the
IPortStyle of the source port for use in
AbstractFoldingEdgeConverter.initializeFoldingEdgePorts(FoldingEdgeState, IFoldingView, IEdge, List) . |
protected IPortStyle |
AbstractFoldingEdgeConverter.createTargetPortStyle(IFoldingView foldingView,
IEdge localEdge,
List<IEdge> masterEdges)
Callback factory method that creates the
IPortStyle of the target port for use in
AbstractFoldingEdgeConverter.initializeFoldingEdgePorts(FoldingEdgeState, IFoldingView, IEdge, List) . |
IPortStyle |
DefaultFolderNodeConverter.getPortStyle()
Gets the
IPortStyle to use for the ports at the collapsed group node that represent
the ports of the master group node in the
collapsed state. |
IPortStyle |
AbstractFoldingEdgeConverter.getSourcePortStyle()
Gets the
IPortStyle to use for the folding source port. |
IPortStyle |
SimplePort.getStyle() |
IPortStyle |
PortDefaults.getStyle() |
IPortStyle |
IPortDefaults.getStyle()
Gets the style to use for ports.
|
IPortStyle |
IPort.getStyle()
Returns the style that is responsible for the visual representation of this port in a
CanvasControl . |
IPortStyle |
FoldingPortState.getStyle()
The style of this port.
|
IPortStyle |
PortDefaults.getStyleInstance()
Factory method that returns a style instance for use with newly created ports.
|
IPortStyle |
PortDefaults.getStyleInstance(IPortOwner owner) |
IPortStyle |
IPortDefaults.getStyleInstance(IPortOwner owner)
Factory method that returns a style instance for use with newly created ports.
|
IPortStyle |
AbstractFoldingEdgeConverter.getTargetPortStyle()
Gets the
IPortStyle to use for the folding target port. |
Modifier and Type | Method and Description |
---|---|
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,
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.
|
protected void |
DefaultGraph.onChangingPortStyle(IPort port,
IPortStyle newStyle)
Callback that is invoked before a port style is being changed.
|
protected void |
DefaultGraph.onPortStyleChanged(IPort port,
IPortStyle oldStyle)
Callback that is invoked after a port style has changed.
|
void |
DefaultFolderNodeConverter.setPortStyle(IPortStyle value)
Sets the
IPortStyle 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.setSourcePortStyle(IPortStyle value)
Sets the
IPortStyle to use for the folding source port. |
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 |
SimplePort.setStyle(IPortStyle value)
Returns the style that is responsible for the visual representation of this port in a
CanvasControl . |
void |
PortDefaults.setStyle(IPortStyle value) |
void |
IPortDefaults.setStyle(IPortStyle value)
Sets the style to use for ports.
|
void |
FoldingPortState.setStyle(IPortStyle value)
The style of this port.
|
void |
AbstractFoldingEdgeConverter.setTargetPortStyle(IPortStyle value)
Sets the
IPortStyle to use for the folding target port. |
Modifier and Type | Method and Description |
---|---|
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) |
protected void |
AbstractGraphWrapper.onPortStyleChanged(ItemChangedEventArgs<IPort,IPortStyle> args)
Raises the
PortStyleChanged event. |
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) |
Modifier and Type | Class and Description |
---|---|
class |
AbstractPortStyle
An abstract base class that makes it possible to easily implement a custom
IPortStyle . |
class |
NodeStylePortStyleAdapter
A port style decorator that uses a node style instance to render the port.
|
class |
TemplatePortStyle
An implementation of the
IPortStyle interface that can render complex Node s for the visualization of
IPort s by using TemplatePortStyleRenderer . |
class |
VoidPortStyle
A void implementation of a port style that does nothing and behaves like an invisible style.
|
Modifier and Type | Method and Description |
---|---|
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. |
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. |
void |
PortTemplate.initializeFromInternal(IRenderContext ctx,
IPort item,
IPortStyle style)
Initializes this port template 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. |
Modifier and Type | Method and Description |
---|---|
IPortStyle |
DefaultPortCandidate.getStyle()
Gets the style to use for the newly created port.
|
IPortStyle |
AbstractPortCandidateProvider.getStyle()
Gets the style to use for the creation of the port in
AbstractPortCandidateProvider.createInstance(IInputModeContext, DefaultPortCandidate) . |
Modifier and Type | Method and Description |
---|---|
protected IPort |
DefaultPortCandidate.createInstance(IInputModeContext context,
IGraph graph,
IPortLocationModelParameter locationParameter,
IPortStyle style,
Object tag)
Actually creates the
IPort instance. |
void |
DefaultPortCandidate.setStyle(IPortStyle value)
Sets the style to use for the newly created port.
|
void |
AbstractPortCandidateProvider.setStyle(IPortStyle value)
Sets the style to use for the creation of the port in
AbstractPortCandidateProvider.createInstance(IInputModeContext, DefaultPortCandidate) . |