%ZEN.SVGComponent.sprite
Class %ZEN.SVGComponent.sprite Extends svgComponent [ Deprecated, System = 3 ]
Base class for SVG sprites.
A sprite is a shape that can be placed on an svgCanvas and connected to other sprites. Sprites form the basis of an svg-based graphical editor.
Properties
ports
Property ports As list Of port(XMLPROJECTION = "ELEMENT", XMLTYPECONSTRAINT = "CHOICE");
List of input/output ports. Each port is the terminator of a connection to another sprite.
rx
Property rx As %ZEN.Datatype.integer(MINVAL = 0) [ InitialExpression = 0 ];
Radius of sprite corners.
style
Property style As %ZEN.Datatype.svgStyle;
Additional style to apply to the primary sprite shape.
caption
Property caption As %ZEN.Datatype.caption;
Text displayed in center of the sprite.
XDatas
SVGStyle
XData SVGStyle
Methods
renderContents
ClientMethod renderContents() [ Language = javascript ]
Render the inner SVG contents of this sprite.
createPorts
ClientMethod createPorts() [ Language = javascript ]
Create the set of ports for this sprite.
createPort
ClientMethod createPort(type, x, y) [ Language = javascript ]
Create a port for this sprite.
getPort
ClientMethod getPort(portno) [ Language = javascript ]
Get the specificied port by port number (0-based).
setPositionHandler
ClientMethod setPositionHandler() [ Language = javascript ]
Notification that this component has been moved.
setSizeHandler
ClientMethod setSizeHandler() [ Language = javascript ]
Notification that this component has been resized.
updateConnectors
ClientMethod updateConnectors() [ Language = javascript ]
Internal method: update position of all connectors attached to this sprite.
setProperty
ClientMethod setProperty(property, value, value2) [ Language = javascript ]
Set the value of a named property.