Skip to main content

%ZEN.SVGComponent.connector

Class %ZEN.SVGComponent.connector Extends svgObject [ Deprecated, System = 3 ]

Base class for SVG connector.
A connector is used to display connections between sprites.

Properties

style

Property style As %ZEN.Datatype.style;

Additional style to apply to the primary connector shape.

inputs

Property inputs As list Of port(XMLPROJECTION = "NONE");

List of input ports this connector is connected to.

outputs

Property outputs As list Of port(XMLPROJECTION = "NONE");

List of output ports this connector is connected to.

XDatas

SVGStyle

XData SVGStyle

Methods

renderConnector

ClientMethod renderConnector(canvas) [ Language = javascript ]

Render the inner SVG contents of this connector.

updateConnector

ClientMethod updateConnector() [ Language = javascript ]

Update the shape used to define the connector This can be overridded by subclasses.

getMaxInputs

ClientMethod getMaxInputs() [ Language = javascript ]

Return the maximum number of inputs allowed for this connector.

getMaxOutputs

ClientMethod getMaxOutputs() [ Language = javascript ]

Return the maximum number of outputs allowed for this connector.

addInput

ClientMethod addInput(sprite, portno) [ Language = javascript ]

Public API: Add an input to this connector.

addOutput

ClientMethod addOutput(sprite, portno) [ Language = javascript ]

Public API: Add an output to this connector.

setProperty

ClientMethod setProperty(property, value, value2) [ Language = javascript ]

Set the value of a named property.