DocBook|Search
Class Reference
%ZEN.SVGComponent.svgCanvas
   
Server:basexml
Instance:SOAXML
User:UnknownUser
 
-
  [BASEXML] >  [%ZEN] >  [SVGComponent] >  [svgCanvas]
Private  Storage  

class %ZEN.SVGComponent.svgCanvas extends %ZEN.SVGComponent.svgFrame

This is a specialized type of %ZEN.SVGComponent.svgFrame that can contain a set of sprite objects.
This provides the basics needed for an svg-based graphical editor.

Inventory

Parameters Properties Methods Queries Indices ForeignKeys Triggers
7 6


Summary

Properties
%condition %import %includeFiles %page
%resource align aux backgroundStyle
children composite connectors containerStyle
disabled document dragCanvas dragEnabled
dropEnabled editMode enclosingClass enclosingStyle
error frameStyle gridX gridY
height hidden hint hintClass
hintStyle id index label
labelClass labelDisabledClass labelStyle layout
name offsetX offsetY onafterdrag
onbeforedrag ondrag ondragCanvas ondrop
onhide onmouseWheel onmoveItem onrefresh
onresizeItem onselectItem onshow onupdate
onzoom parameters parent rulerHeight
rulerMajor rulerMinor rulerStyle rulerWidth
selectedItem selectedItems showLabel showRulers
slice snapToGrid svgAutoSize svgGroup
svgHeight svgPage svgRoot svgWidth
svgWindow title tuple valign
visible width window zoom
zoomLevels zoomWithWheel

Methods
%%OIDGet %AddChild %AddToSaveSet %Attr
%BindExport %ClassIsLatestVersion %ClassName %ConstructClone
%DispatchClassMethod %DispatchGetModified %DispatchGetProperty %DispatchMethod
%DispatchSetModified %DispatchSetMultidimProperty %DispatchSetProperty %DrawComponentHTML
%DrawHTML %DrawJSStrings %EnclosingDivId %Eval
%Extends %ForceClientRender %GetEventHandlers %GetParameter
%GetXMLName %IsA %IsModified %MakeId
%New %NormalizeObject %ObjectModified %OnAddToPageAfter
%OnAddToPageBefore %OnDrawEnclosingDiv %OnDrawObjectProperties %OnObjectSynch
%OnZENDeserialize %OriginalNamespace %PackageName %QuoteValue
%QuoteValueL10N %RemoveChild %RemoveFromSaveSet %Self
%SerializeObject %SetModified %ValidateObject XMLDTD
XMLExport XMLExportToStream XMLExportToString XMLNew
XMLSchema XMLSchemaNamespace XMLSchemaType addChild
canDragShapes createConnector createSprite dragFinishHandler
dragHandler dragNotifyHandler dragStartHandler drawRulers
dropHandler dropStartHandler exposeComponent findElement
fireOnUpdateEvent getEnclosingDiv getHidden getHintElement
getLabelElement getProperty getSVGDocument getSelectedItem
getSelectedItems getSettings getType getZoomIndex
invokeSuper isOfType isSelected layoutChildren
makeId mousedownHandler mousemoveHandler mouseupHandler
mousewheelHandler moveItem onCreate onDelete
onDisplayHandler onEndModalHandler onPopupAction onRefreshContents
onSerialize onStartModalHandler onloadHandler onunloadHandler
onupdateHandler refreshContents removeChild render
renderContents renderSVG selectItem selectItemHandler
setEditMode setHidden setOffsets setOverlayMode
setProperty setPropertyAll setZoom setZoomIndex
startDragCanvas startMove startProgressBar startResize
stopProgressBar svgLoadHandler zoomIn zoomOut


Properties

• property connectors as list of connector(XMLPROJECTION="NONE");
List of connectors on this canvas.
• property rulerHeight as %ZEN.Datatype.float [ InitialExpression = 11.0 ];
Height of vertical ruler. This value is multiplied with rulerMajor to get the actual size.
• property rulerMajor as %ZEN.Datatype.integer [ InitialExpression = 100 ];
Number of units per major ruler tick mark. This must be a multiple of rulerMinor or no major tick marks will show.
• property rulerMinor as %ZEN.Datatype.integer [ InitialExpression = 25 ];
Number of units per minor ruler tick mark.
• property rulerStyle as %ZEN.Datatype.style [ InitialExpression = "stroke:gray;" ];
CSS style used to draw rulers.
• property rulerWidth as %ZEN.Datatype.float [ InitialExpression = 8.5 ];
Width of vertical ruler. This value is multiplied with rulerMajor to get the actual size.
• property showRulers as %ZEN.Datatype.boolean [ InitialExpression = 0 ];
If true, display rulers along the left and top of this canvas.

Methods

• method canDragShapes() [ Language = javascript ]
Return true if shapes can be dragged on this frame.
• method createConnector(type) [ Language = javascript ]
Create a new connector on this canvas and return it.
• method createSprite(type, x, y) [ Language = javascript ]
Create a new sprite on this canvas and return it.
• method drawRulers() [ Language = javascript ]
Draw set of rulers.
• method setProperty(property, value, value2) [ Language = javascript ]
Set the value of a named property.
• method svgLoadHandler(win) [ Language = javascript ]
Notification that the embedded SVG page is loaded.