%ZEN.SVGComponent.sprite
deprecated class %ZEN.SVGComponent.sprite extends %ZEN.SVGComponent.svgComponent
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.
Property Inventory
Method Inventory
- createPort()
 - createPorts()
 - getPort()
 - renderContents()
 - setPositionHandler()
 - setProperty()
 - setSizeHandler()
 - updateConnectors()
 
Properties
property caption as %ZEN.Datatype.caption;
Text displayed in center of the sprite.
Property methods: captionDisplayToLogical(), captionGet(), captionIsValid(), captionLogicalToDisplay(), captionLogicalToOdbc(), captionNormalize(), captionSet()
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.
Property methods: portsBuildValueArray(), portsCollectionToDisplay(), portsCollectionToOdbc(), portsDisplayToCollection(), portsGet(), portsGetObject(), portsGetObjectId(), portsGetSwizzled(), portsIsValid(), portsOdbcToCollection(), portsSet(), portsSetObject(), portsSetObjectId()
property rx as %ZEN.Datatype.integer (MINVAL = 0) [ InitialExpression = 0 ];
Radius of sprite corners.
Property methods: rxDisplayToLogical(), rxGet(), rxIsValid(), rxLogicalToDisplay(), rxLogicalToOdbc(), rxNormalize(), rxSet()
property style as %ZEN.Datatype.svgStyle;
Additional style to apply to the primary sprite shape.
Property methods: styleDisplayToLogical(), styleGet(), styleIsValid(), styleLogicalToDisplay(), styleLogicalToOdbc(), styleNormalize(), styleSet()
Methods
clientmethod createPort(type, x, y) [ Language = javascript ]
Create a port for this sprite.
clientmethod createPorts() [ Language = javascript ]
Create the set of ports for this sprite.
clientmethod getPort(portno) [ Language = javascript ]
Get the specificied port by port number (0-based).
clientmethod renderContents() [ Language = javascript ]
Render the inner SVG contents of this sprite.
clientmethod setPositionHandler() [ Language = javascript ]
Notification that this component has been moved.
clientmethod setProperty(property, value, value2) [ Language = javascript ]
Set the value of a named property.
clientmethod setSizeHandler() [ Language = javascript ]
Notification that this component has been resized.
clientmethod updateConnectors() [ Language = javascript ]
Internal method: update position of all connectors
attached to this sprite.
Inherited Members
Inherited Properties
- %condition
 - %import
 - %includeFiles
 - %page
 - %resource
 - aux
 - boundless
 - composite
 - document
 - height
 - hidden
 - id
 - index
 - name
 - onclick
 - onupdate
 - parent
 - position
 - preserveAspectRatio
 - svgComponent
 - svgGroup
 - tuple
 - viewBoxHeight
 - viewBoxWidth
 - visible
 - width
 - window
 - x
 - y
 
Inherited Methods
- %AddToSaveSet()
 - %Attr()
 - %BindExport()
 - %ClassIsLatestVersion()
 - %ClassName()
 - %ConstructClone()
 - %DispatchClassMethod()
 - %DispatchGetModified()
 - %DispatchGetProperty()
 - %DispatchMethod()
 - %DispatchSetModified()
 - %DispatchSetMultidimProperty()
 - %DispatchSetProperty()
 - %DrawHTML()
 - %DrawJSStrings()
 - %Eval()
 - %EvalC()
 - %Extends()
 - %ForceClientRender()
 - %GetEventHandlers()
 - %GetParameter()
 - %GetXMLName()
 - %IsA()
 - %IsModified()
 - %MakeId()
 - %New()
 - %NormalizeObject()
 - %ObjectModified()
 - %OnAddToPageAfter()
 - %OnAddToPageBefore()
 - %OnDrawObjectProperties()
 - %OnObjectSynch()
 - %OnZENDeserialize()
 - %OriginalNamespace()
 - %PackageName()
 - %QuoteValue()
 - %QuoteValueL10N()
 - %RemoveFromSaveSet()
 - %Self()
 - %SerializeObject()
 - %SetModified()
 - %ValidateObject()
 - XMLDTD()
 - XMLExport()
 - XMLExportToStream()
 - XMLExportToString()
 - XMLNew()
 - XMLSchema()
 - XMLSchemaNamespace()
 - XMLSchemaType()
 - beginWaitState()
 - calculateViewBox()
 - clickHandler()
 - endWaitState()
 - findElement()
 - findSVGElement()
 - fireOnUpdateEvent()
 - getFrame()
 - getProperty()
 - getSettings()
 - getSizeAbsolute()
 - getType()
 - invokeSuper()
 - isOfType()
 - makeId()
 - onCreate()
 - onDelete()
 - onSerialize()
 - onloadHandler()
 - onunloadHandler()
 - onupdateHandler()
 - refreshContents()
 - render()
 - renderSVG()
 - setOverlayMode()
 - setPosition()
 - setSize()
 - setTextNode()
 - sizingMouseDownHandler()
 - unrender()
 - wrapMethod()