class %ZEN.SVGComponent.connector
extends svgObject
Base class for SVG connector.
A connector is used to display connections between sprites.
property inputs
as list of port(XMLPROJECTION="NONE");
List of input ports this connector is connected to.
property outputs
as list of port(XMLPROJECTION="NONE");
List of output ports this connector is connected to.
property style
as %ZEN.Datatype.style;
Additional style to apply to the primary connector shape.
method addInput(sprite, portno)
[ Language = javascript ]
Public API: Add an input to this connector.
method addOutput(sprite, portno)
[ Language = javascript ]
Public API: Add an output to this connector.
method getMaxInputs()
[ Language = javascript ]
Return the maximum number of inputs allowed for this connector.
method getMaxOutputs()
[ Language = javascript ]
Return the maximum number of outputs allowed for this connector.
method renderConnector(canvas)
[ Language = javascript ]
Render the inner SVG contents of this connector.
method setProperty(property, value, value2)
[ Language = javascript ]
Set the value of a named property.
method updateConnector()
[ Language = javascript ]
Update the shape used to define the connector
This can be overridded by subclasses.