Packagecom.kapit.diagram.view
Classpublic class DiagramView
InheritanceDiagramView Inheritance fr.kapit.licence.KapCanvas
ImplementsIDiagramElement

The main component of Diagrammer. A view of a diagram, holding all objects of the diagram. The shapes used to draw sprites are defined in a SVGAssetLibrary.


Example
This Flex application display a simple diagram with a 2 shapes library.
 <?xml version="1.0" encoding="utf-8"?>
 <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
     xmlns:diagctl="com.kapit.diagram.controls.
     xmlns:diagview="com.kapit.diagram.view.
     layout="absolute" preinitialize="init();">
  <mx:XML xmlns="" id="svglib">
 <svg xmlns:svg="http://www.w3.org/2000/svg"
         xmlns:k="http://schemas.kapit.fr/svg/2007/"
         xmlns:xlink="http://www.w3.org/1999/xlink"
         xmlns="http://www.w3.org/2000/svg"
         version="1.0"
         width="1024"
         height="800"
         id="sgvlib">
 <defs id="defs1">
 <style type="text/css">
 <![CDATA[
 .basic {
 action-accept:annotation;
 }
 .bg {
 action-click:link;
 action-accept:link;
 }
 .annotation {
 font-style:italic;
 }
 .link-annotation
 {
     font-size:12px;
     fill:#666;
 }
 ]]>
 </style>
 <linearGradient id="linearGradient3157">
 <stop id="stop3159" style="stop-color:#e1eaf5;stop-opacity:1" offset="0" />
 <stop id="stop3161" style="stop-color:#c3daea;stop-opacity:1" offset="1" />
 </linearGradient>
 <linearGradient xlink:href="#linearGradient3157"
   id="linearGradient6627"
   gradientUnits="userSpaceOnUse"
   gradientTransform="translate(98.840748,-67.175132)"
   x1="94.95433" y1="85.235107"
   x2="94.95433" y2="146.25534" />
 </defs>
 <g
     k:spriteid="rectangle"
     k:groupid="Basic"
     class="basic"
     id="grectangle">
     <rect
        id="rect3155"
       style="fill:url(#linearGradient6627);fill-opacity:1;stroke:#6996cf;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
        x="137.22656"
       y="18.47105"
        rx="0"
        ry="0"
       width="98.994949"
       height="60.609154" />
     <path
        class="bg"
       id="rect31551"
        style="fill:none;fill-opacity:0;stroke:#6996cf;stroke-width:3;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:0"
        d="M 137.22656,18.47105 L 236.22151,18.47105 L 236.22151,79.080204 L 137.22656,79.080204 L 137.22656,18.47105 z" />
 </g>
 <g
     k:spriteid="rounded-rectangle"
     k:groupid="Basic"
     id="grrectangle"
     class="basic" transform="translate(116.20044,0)">
     <rect
         style="fill:#e1eaf5;fill-opacity:0.8;stroke:#6996cf;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
         id="rect3157"
         y="18.47105" x="137.22656"
         rx="10" ry="10"
         height="60.609154" width="98.994949" />
     <path
        class="bg"
        id="rect31552"
        style="fill:none;fill-opacity:0;stroke:#6996cf;stroke-width:3;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:0"
        d="M 137.22656,18.47105 L 236.22151,18.47105 L 236.22151,79.080204 L 137.22656,79.080204 L 137.22656,18.47105 z" />
 </g>
 </svg>
 </mx:XML>
 <mx:Script>
     <![CDATA[
         import com.kapit.diagram.library.SVGAssetLibrary;
          public function init():void
         {
             var lib:SVGAssetLibrary=new SVGAssetLibrary(svglib);
         }
         public function initDiagram():void
         {
                 diagram.multipanel=true;
                 diagram.selectionenabled=true;
                 diagram.keyboardenabled=true;
                 diagram.dragenabled=true;
                 diagram.dropenabled=true;
         }
     ]]>
 </mx:Script>
 <mx:ApplicationControlBar  width="100%" height="50" horizontalAlign="right">
 <diagctl:SVGAssetLibraryGroupButton width="150" groupid="Basic"
     cornerRadius="10"
     paddingLeft="8" paddingBottom="0" paddingTop="0"
     useHandCursor="true"
     toolTip="Drag & drop"
     labelPlacement="right" textAlign="left"/>
 </mx:ApplicationControlBar>
 <mx:HBox left="10" top="60" bottom="10" right="10" horizontalGap="10">
 <diagview:DiagramView width="100%" height="100%"
     id="diagram" creationComplete="initDiagram();">
 </diagview:DiagramView>
 </mx:HBox>
 </mx:Application>
 

See also

com.kapit.diagram.library.SVGAssetLibrary


Public Properties
 PropertyDefined by
  actionsmanager : ActionsManager
[read-only] The ActionManager used by this DiagramView to manage registered actions (enable, disable, remove...).
DiagramView
  activetool : String
Current active tool ID property used by this DiagramView instance.
DiagramView
  asynccolumncreation : Boolean
Define if column creation is synchronous or asynchronous.
DiagramView
  asynclanecreation : Boolean
Define if lane creation is synchronous or asynchronous.
DiagramView
  asyncpanelcreation : Boolean
Define if panel creation is synchronous or asynchronous.
DiagramView
  childrenScaleX : Number
ScaleX of childrens.
DiagramView
  childrenScaleY : Number
ScaleY of childrens.
DiagramView
  columns : DiagramColumnContainer
[read-only] The DiagramColumnContainer in which all the DiagramView's panels are embedded.
DiagramView
  dataobjectid : String
Data object id of the diagram.
DiagramView
  defaultLinkMode : uint
Define default link creation mode.
DiagramView
  defaultlinktype : DiagramLinkType
Default DiagramLink parameters used by UI actions
DiagramView
  did : String
The Diagram Unique ID of this DiagramView.
DiagramView
  docheight : Number
SVG Doc Height of this DiagramView in an SVG representation (after being exported to SVG format).
DiagramView
  docwidth : Number
SVG Doc Width of this DiagramView in an SVG representation (after being exported to SVG format).
DiagramView
  dragenabled : Boolean
Enable dragging of diagram objects.
DiagramView
  dropenabled : Boolean
Enable dropping of new diagram objects
DiagramView
  handMode : Boolean
Hand mode switch.
DiagramView
  hideControlButtons : Boolean
Indicator if the control buttons hidden.
DiagramView
  keyboardenabled : Boolean
Indicates whether keyboard support is currently enabled in this DiagramView instance.
DiagramView
  linkMode : uint
Define link creation mode.
DiagramView
  model : DiagramModel
Define DiagramModel for this Diagram.
DiagramView
  modified : Boolean
Indicates if diagram has been modified.
DiagramView
  multicolumn : Boolean
Indicates whether multicolumn option is enabled.
DiagramView
  multipanel : Boolean
Indicates whether multipanel option is enabled.
DiagramView
  multipleselection : Boolean
Indicates whether multiple selection is used in this DiagramView.
DiagramView
  panels : DiagramPanelsContainer
[read-only] The DiagramPanelsContainer in which all the DiagramView's panels are embedded.
DiagramView
  saveselection : Boolean
If true, state of selection is saved when toXML() is called
DiagramView
  selectionenabled : Boolean
Indicates whether selection is currently enabled in this DiagramView instance.
DiagramView
  showUIOnRollOver : Boolean
If true, contextual menu is displayed on sprite on mouse rollover, if no tool is active (default mode).
DiagramView
  transformMode : Boolean
Transform mode switch.
DiagramView
  uiColumnTextFormat : TextFormat
[read-only] The TextFormat used by the DiagramColumn components in this DiagramView.
DiagramView
  uiLaneTextFormat : TextFormat
[read-only] The TextFormat used by the DiagramLane components in this DiagramView.
DiagramView
  uilayer : UILayer
[read-only] The UIs Layer embedded in this DiagramView.
DiagramView
  uiPanelTextFormat : TextFormat
[read-only] The TextFormat used by the DiagramPanel components in this DiagramView.
DiagramView
  uitextformat : TextFormat
[read-only] The TextFormat used by the DiagramLane components in this DiagramView.
DiagramView
  view : DiagramView
[read-only] The diagram view of this element.
DiagramView
Protected Properties
 PropertyDefined by
  _columns : DiagramColumnContainer = null
DiagramView
  _tweenengine : TweenEngine = null
The TweenEngine used for animation during diagram transitions.
DiagramView
  _version : String = "0"
DiagramView version.
DiagramView
Public Methods
 MethodDefined by
  
Creates a DiagramView instance by assigning its Diagram Unique ID, default size, registered actions and event listeners.
DiagramView
  
activateUI(a:Boolean):void
Activates or deactivates this DiagramView.
DiagramView
  
alignElements(sprites:Array, alignCommand:uint, customSpacing:Number, withAnimation:Boolean = false):void
Align an array of sprites according to a choosen method.
DiagramView
  
alignSelection(alignCommand:uint, customSpacing:Number, withAnimation:Boolean = false):void
Align selected sprites according to a choosen method.
DiagramView
  
animate(tweeners:Array, freq:uint, dur:uint, easingfunc:Function):void
Animate DiagramObjects using parameters defined through an array of Tweener objects
DiagramView
  
applyToAnchors(dob:DiagramObject, f:Function, args:Array = null, filter:Function = null, filterargs:Array = null):void
Applies a given function (processing logic) to the anchors of a DiagramObject instance given function parameters and according to a filter function and its parameters if defined.
DiagramView
  
applyToPanels(f:Function, args:Array):void
Applies a given function (processing logic) to DiagramPanelsContainer children of this DiagramView given function parameters.
DiagramView
  
Check if a column can be closed.
DiagramView
  
Check if a lane can be closed.
DiagramView
  
Check if a panel can be closed.
DiagramView
  
Check is existing sprite can be inserted upon DiagramLink
DiagramView
  
centeredZoom(ratio:Number, relative:Boolean, origin:Point = null):void
Zooms and scrolls the view, the focus point beeing on the center of the viewport
DiagramView
  
checkElementPropertyChange(el:IDiagramElement, property:String, value:Object, shapeid:String = null):Boolean
Check if a diagram element property can change.
DiagramView
  
Check if a diagram element can be remove.
DiagramView
  
checkTagName(xml:XML):Boolean
Checks if an XML description is adequate to this DiagramView instance by checking the tag name property.
DiagramView
  
Clears all embedded references to IDiagramElements of this DiagramView
DiagramView
  
Inflicts the effect of a DiagramColumn removal on this DiagramView.
DiagramView
  
countObjectsByClass(cl:Class, f:Function, fargs:Array):int
Count all object in the DiagramView of the given class, using an optional filter function.
DiagramView
  
Counts all selected Diagram Objects inside this DiagramView.
DiagramView
  
createAffiliation(owner:DiagramSprite, affilate:DiagramSprite, silent:Boolean = true):void
DiagramView
  
createAnnotation(source:DiagramObject, initialtext:String = null):DiagramAnnotation
Creates a DiagramAnnotation to be attached to a DiagramObject and returns it.
DiagramView
  
createComposition(master:DiagramSprite, slave:DiagramSprite, silent:Boolean = true):Boolean
Create a composition between a master (composite) and an slave (composition element).
DiagramView
  
createLink(source:DiagramObject, target:DiagramObject, points:Array, silent:Boolean = true):DiagramLink
Creates a DiagramLink between a source and a target DiagramObject while respecting the control points and returns it.
DiagramView
  
createSprite(id:String, p:Point, centered:Boolean = true, silent:Boolean = true):DiagramSprite
Creates a DiagramSprite at a defined position, given its ID and returns it.
DiagramView
  
createSpriteUponLink(id:String, d:DiagramLink, p:Point, silent:Boolean = true):DiagramSprite
Creates sprite upon diagramLink, at a given point
DiagramView
  
deselectAll():void
Remove all Diagram Objects from current selection inside the DiagramView.
DiagramView
  
fromXML(xml:XML):void
Parses this DiagramView from an XML object.
DiagramView
  
Returns the Diagram Lane, belonging to this DiagramView, under a given point.
DiagramView
  
getDiagramObjectUnderPoint(pt:Point, recursegroups:Boolean = false, selectableOnly:Boolean = false):DiagramObject
Returns the DiagramObject, belonging to this DiagramView, under a given point.
DiagramView
  
getDragBounds(target:DisplayObject):Rectangle
Get a bound to be used with Sprite.startDrag().
DiagramView
  
Search for a diagram element linked to a given dataobjectid.
DiagramView
  
Search for a diagram element that has a given did.
DiagramView
  
getGridObjects(lane:DiagramLane, column:DiagramColumn, cl:Class):Array
DiagramView
  
Returns the index of a DiagramLane embedded in this DiagramView.
DiagramView
  
getLinksFromSelection(selection:Array):Array
Returns in and out Links of a Sprites selection.
DiagramView
  
Returns link under sprite (if found), by looping the links collection
DiagramView
  
Returns object of the searched class under sprite (if found), by looping the object collection
DiagramView
  
getObjectsByClass(cl:Class, f:Function = null, fargs:Array = null):Array
Retrieve all object in the DiagramView of the given class, using an optional filter function.
DiagramView
  
Returns the index of a DiagramPanel embedded in this DiagramView.
DiagramView
  
Returns the minimum points mandatory to create a link between 2 diagramObjects
DiagramView
  
Returns a registered IDiagramElement given its ID (reference key).
DiagramView
  
Return all selected object
DiagramView
  
Returns sprite under sprite (if found), by looping the sprite collection
DiagramView
  
getTagName():String
Returns This DiagramView tagname equal to "diagram".
DiagramView
  
groupSelectedObjects(persist:Boolean = false):DiagramGroup
Allows grouping selected objects in a DiagramGroup instance.
DiagramView
  
hasObjects():Boolean
Check if the diagram contains an object.
DiagramView
  
Hides the feedback effect on all Links
DiagramView
  
Hides the feedback effect on all Sprites
DiagramView
  
insertColumnAt(idx:int, silent:Boolean = false):DiagramColumn
Inserts a DiagramColumn at a given index and returns it.
DiagramView
  
Inserts existing sprite upon DiagramLink
DiagramView
  
insertLaneAt(panel:DiagramPanel, idx:int, silent:Boolean = false):DiagramLane
Inserts a DiagramLane at a given index inside a DiagramPanel of this DiagramView and returns it.
DiagramView
  
insertPanelAt(idx:int, silent:Boolean = false):DiagramPanel
Inserts a DiagramPanel at a given index and returns it.
DiagramView
  
Check if an animation is currently playing
DiagramView
  
Inflicts the effect of a DiagramLane removal on this DiagramView.
DiagramView
  
Redraws this DiagramView and its children when library styles and assets change given a SVGAssetLibraryEvent.
DiagramView
  
Move an object on top of its layer.
DiagramView
  
Notify application that a diagram object changed of column
DiagramView
  
Dispatch event to ask for an asynchronous column creation.
DiagramView
  
Notify application of an element affilation.
DiagramView
  
Notify application of an element creation.
DiagramView
  
Notify application of an element load.
DiagramView
  
Notify application of an element move.
DiagramView
  
notifyElementPropertyChange(el:IDiagramElement, property:String, value:Object, shapeid:String = null):void
Notify application that a element property changed
DiagramView
  
Notify application of an element removal.
DiagramView
  
Notify application that a diagram object changed of lane
DiagramView
  
notifyLaneCreationRequest(sibling:DiagramLane, idx:int):void
Dispatch event to ask for an asynchronous lane creation.
DiagramView
  
notifyLinkScopeChanged(dlink:DiagramLink, oldscope:String):void
Notify application of an link scope change.
DiagramView
  
Dispatch event to ask for an asynchronous panel creation.
DiagramView
  
DiagramView
  
objectLayerChanged(dob:DiagramObject, sourcelayer:DiagramLayer, targetlayer:DiagramLayer):void
Inflicts the change of a source Layer and a target Layer on the DiagramView.
DiagramView
  
Inflicts the effect of a DiagramObject removal on this DiagramView.
DiagramView
  
Inflicts the effect of a DiagramPanel removal on this DiagramView.
DiagramView
  
pendLinkToAnimation(link:DiagramLink, path:Array, tweeners:Array):void
Pends a link path animation to a tweeners array.
DiagramView
  
pendSpriteToAnimation(dob:DiagramSprite, newBox:Rectangle, tweeners:Array, update:Boolean = false):void
DiagramView
  
registerAction(aclass:Class):Boolean
Registers a Diagram Action to be considered by the different parts of this DiagramView.
DiagramView
  
Registers a IDiagramElement reference in this DiagramView using its ID as key.
DiagramView
  
registerTool(aclass:Class):Boolean
Registers a Diagram Tool to be used by the different parts of this DiagramView.
DiagramView
  
removeAll():void
Removes all Diagram Objects inside this DiagramView.
DiagramView
  
removeLinksBetweenObjects(source:DiagramObject, target:DiagramObject, bidirection:Boolean = true, silent:Boolean = false):int
Remove links between source and target
DiagramView
  
removeObject(o:DiagramObject, silent:Boolean = false):void
Removes an object inside this DiagramView.
DiagramView
  
Removes a DiagramPanel at a specified index.
DiagramView
  
Removes all selected Diagram Objects inside this DiagramView.
DiagramView
  
Return to default mode.
DiagramView
  
scrollMove(horizontal:int, vertical:int):void
Scroll view position without animation
DiagramView
  
scrollTo(hpos:int, vpos:int):void
Scroll to a new position with animation.
DiagramView
  
selectAll():void
Selects all Diagram Objects inside the DiagramView.
DiagramView
  
DiagramView
  
DiagramView
  
selectObject(dob:DiagramObject, s:Boolean = true, event:MouseEvent = null):void
Select or deselects a given DiagramObject inside this DiagramView and optionally dispatches a mouse event after selection or deselection is performed.
DiagramView
  
selectObjectsInRect(grect:Rectangle, selectableOnly:Boolean = false):void
Selects all Diagram Objects of this DiagramView, contained inside a given Rectangle.
DiagramView
  
Hightlights the link and disable feedback effect on all the others
DiagramView
  
Stops any pending DiagramObjects animation
DiagramView
  
styleChanged(prop:String):void
Detects changes to style properties and handle the change accordingly.
DiagramView
  
Ask to all the Diagram elements to synchronize all reference after they have been loaded from XML.
DiagramView
  
Adds mouse listeners and allows required actions for all DiagramSprite objects.
DiagramView
  
toSVG():XML
Exports this DiagramView instance (edited diagram) to an SVG file by writing in an SVGSVGElement instance and calling the appendToSVGDocument method.
DiagramView
  
toXML():XML
Writes this DiagramView into an XML document.
DiagramView
  
Ungroups selected DiagramGroup instances.
DiagramView
  
unregisterAction(aclass:Class):Boolean
Unreegisters a Diagram Action considered by the different parts of this DiagramView.
DiagramView
  
unregisterTool(aclass:Class):Boolean
Unregisters a Diagram Tool used by the different parts of this DiagramView.
DiagramView
Protected Methods
 MethodDefined by
  
Creates DiagramView children.
DiagramView
  
dragDropHandler(event:DragEvent):void
Finalizes the dragging process by creating the selected DiagramSprite (dragged item) at the Drag Drop position.
DiagramView
  
dragEnterHandler(event:DragEvent):void
Enables dragging items referring to DiagramObjects from this DiagramView drag source.
DiagramView
  
dragOverHandler(event:DragEvent):void
Sets the feedback indicator for the drag and drop operation to a Copy action.
DiagramView
  
mouseMoveHandler(event:MouseEvent):void
DiagramView
  
This methode is used to notify all elements loading.
DiagramView
  
sortSpritesByPlacement(sprites:Array, vertical:Boolean = true, policy:uint = 0):void
DiagramView
  
updateDisplayList(w:Number, h:Number):void
Draws the DiagramView and/or sizes and positions its children.
DiagramView
Events
 EventSummaryDefined by
    DiagramView
   Dispatched when a column caption is double clicked.DiagramView
   Dispatched when default mode is set.DiagramView
   Dispatched when a group is created.DiagramView
   Dispatched when a group is deleted.DiagramView
   Dispatched when hand mode is set.DiagramView
   Dispatched when a lane caption is double clicked.DiagramView
   Dispatched when link mode is set.DiagramView
   Dispatched when the diagram is modified.DiagramView
   Dispatched when a panel caption is double clicked.DiagramView
   Dispatched when transform mode is set.DiagramView
   Dispatched when zoom mode is set.DiagramView
   Dispatched when the user moves around the mouse while a drag operation is pending DiagramView
   Dispatched after the drag operation has completed and before the ungroup of the selection DiagramView
   Dispatched after the drag operation has completed and after the ungroup of the selection DiagramView
   Dispatched when the user initiates a drag operation DiagramView
   Dispatched when an element is added to the diagram.DiagramView
   Dispatched when an element is loaded from XML into the diagrammer.DiagramView
   Dispatched when an element of the diagram is moved.DiagramView
   Dispatched when an element property is modified.DiagramView
   Dispatched when the whole selection is removed from the diagram.DiagramView
   Dispatched when the user has finished resizing an element.DiagramView
   Dispatched while an element is resized.DiagramView
   Dispatched when an element start to be resized by the user.DiagramView
   Dispatched when an asynchronouslane creation request occurs.DiagramView
   Dispatched when a link scope changed.DiagramView
   Dispatched when an asynchronous panel creation request occurs.DiagramView
   Dispatched when the selection of objects in the diagram changed.DiagramView
   Dispatched when a sprite is moved from one lane to another.DiagramView
Styles
 StyleDescriptionDefined by
  
columnBackgroundAlpha
Type: Number   CSS Inheritance: no
Alpha of a column. Used in multicolumn mode.
DiagramView
  
columnBackgroundColor
Type: uint   Format: Color   CSS Inheritance: no
Background color of a column. Used in multicolumn mode.
DiagramView
  
columnBorderColor
Type: uint   Format: Color   CSS Inheritance: no
Color of a column border. Used in multicolumn mode.
DiagramView
  
columnBorderWidth
Type: Number   Format: Length   CSS Inheritance: no
Widht of a column border. Used in multicolumn mode.
DiagramView
  
columnCaptionCloseSkin
Type: Class   CSS Inheritance: no
Skin for a column caption close button. Used in multicolumn mode.
DiagramView
  
columnCaptionCollapsedBackgroundSkin
Type: Class   CSS Inheritance: no
Background skin of a collapsed column caption. Used in multicolumn mode.
DiagramView
  
columnCaptionCollapsedSize
Type: Number   Format: Length   CSS Inheritance: no
Size of a collapsed column caption. Used in multicolumn mode.
DiagramView
  
columnCaptionCollapseSkin
Type: Class   CSS Inheritance: no
Skin for a column caption collapse button. Used in multicolumn mode.
DiagramView
  
columnCaptionExpandedBackgroundSkin
Type: Class   CSS Inheritance: no
Background skin of a expanded column caption. Used in multicolumn mode.
DiagramView
  
columnCaptionExpandedSize
Type: Number   Format: Length   CSS Inheritance: no
Size of a expanded panel caption. Used in multipanel mode.
DiagramView
  
columnCaptionExpandSkin
Type: Class   CSS Inheritance: no
Skin for a column caption expand button. Used in multicolumn mode.
DiagramView
  
columnCaptionFontColor
Type: uint   Format: Color   CSS Inheritance: no
Font color of a column caption. Used in multicolumn mode.
DiagramView
  
columnCaptionFontName
Type: String   CSS Inheritance: no
Font for a column cpation. Used in multicolumn mode.
DiagramView
  
columnCaptionFontSize
Type: Number   Format: Length   CSS Inheritance: no
Font size of a column caption. Used in multicolumn mode.
DiagramView
  
columnCaptionPrintColor
Type: uint   Format: Color   CSS Inheritance: no
Print color for a column caption. Used in multicolumn mode.
DiagramView
  
columnDefaultHeight
Type: Number   Format: Length   CSS Inheritance: no
Default height of a column. Used in multicolumn mode.
DiagramView
  
columnDefaultTitle
Type: String   CSS Inheritance: no
Default title of a column. Used in multicolumn mode.
DiagramView
  
columnDefaultWidth
Type: Number   Format: Length   CSS Inheritance: no
Default width of a column. Used in multicolumn mode.
DiagramView
  
columnDividerSize
Type: uint   CSS Inheritance: no
Size of a column divider. Used in multicolumn mode.
DiagramView
  
columnExpandedMargin
Type: Number   Format: Length   CSS Inheritance: no
Margin of a expanded column. Used in multicolumn mode.
DiagramView
  
laneBackgroundAlpha
Type: Number   CSS Inheritance: no
Alpha of a lane. Used in multipanel mode.
DiagramView
  
laneBackgroundColor
Type: uint   Format: Color   CSS Inheritance: no
Background color of a lane. Used in multipanel mode.
DiagramView
  
laneBorderColor
Type: uint   Format: Color   CSS Inheritance: no
Color of a lane border. Used in multipanel mode.
DiagramView
  
laneBorderWidth
Type: Number   Format: Length   CSS Inheritance: no
Widht of a lane border. Used in multipanel mode.
DiagramView
  
laneCaptionCloseSkin
Type: Class   CSS Inheritance: no
Skin for a lane caption close button. Used in multipanel mode.
DiagramView
  
laneCaptionCollapsedBackgroundSkin
Type: Class   CSS Inheritance: no
Background skin of a collapsed lane caption. Used in multipanel mode.
DiagramView
  
laneCaptionCollapsedSize
Type: Number   Format: Length   CSS Inheritance: no
Size of a collapsed lane caption. Used in multipanel mode.
DiagramView
  
laneCaptionCollapseSkin
Type: Class   CSS Inheritance: no
Skin for a lane caption collapse button. Used in multipanel mode.
DiagramView
  
laneCaptionExpandedBackgroundSkin
Type: Class   CSS Inheritance: no
Background skin of a expanded lane caption. Used in multipanel mode.
DiagramView
  
laneCaptionExpandedSize
Type: Number   Format: Length   CSS Inheritance: no
Size of a expanded lane caption. Used in multipanel mode.
DiagramView
  
laneCaptionExpandSkin
Type: Class   CSS Inheritance: no
Skin for a lane caption expand button. Used in multipanel mode.
DiagramView
  
laneCaptionFontColor
Type: uint   Format: Color   CSS Inheritance: no
Font color of a lane caption. Used in multipanel mode.
DiagramView
  
laneCaptionFontName
Type: String   CSS Inheritance: no
Font for a lane cpation. Used in multipanel mode.
DiagramView
  
laneCaptionFontSize
Type: Number   Format: Length   CSS Inheritance: no
Font size of a lane caption. Used in multipanel mode.
DiagramView
  
laneCaptionPrintColor
Type: uint   Format: Color   CSS Inheritance: no
Print color for a lane caption. Used in multipanel mode.
DiagramView
  
laneDefaultHeight
Type: Number   Format: Length   CSS Inheritance: no
Default height of a lane. Used in multipanel mode.
DiagramView
  
laneDefaultTitle
Type: String   CSS Inheritance: no
Default title of a lane. Used in multipanel mode.
DiagramView
  
laneDividerSize
Type: uint   CSS Inheritance: no
Size of a lane divider. Used in multipanel mode.
DiagramView
  
laneExpandedMargin
Type: Number   Format: Length   CSS Inheritance: no
Margin of a expanded lane. Used in multipanel mode.
DiagramView
  
panelBackgroundAlpha
Type: Number   CSS Inheritance: no
Alpha of a panel. Used in multipanel mode.
DiagramView
  
panelBackgroundColor
Type: uint   Format: Color   CSS Inheritance: no
Background color of a panel. Used in multipanel mode.
DiagramView
  
panelBorderColor
Type: uint   Format: Color   CSS Inheritance: no
Color of a panel border. Used in multipanel mode.
DiagramView
  
panelBorderWidth
Type: Number   Format: Length   CSS Inheritance: no
Widht of a panel border. Used in multipanel mode.
DiagramView
  
panelCaptionCloseSkin
Type: Class   CSS Inheritance: no
Skin for a panel caption close button. Used in multipanel mode.
DiagramView
  
panelCaptionCollapsedBackgroundSkin
Type: Class   CSS Inheritance: no
Background skin of a collapsed panel caption. Used in multipanel mode.
DiagramView
  
panelCaptionCollapsedSize
Type: Number   Format: Length   CSS Inheritance: no
Size of a collapsed panel caption. Used in multipanel mode.
DiagramView
  
panelCaptionCollapseSkin
Type: Class   CSS Inheritance: no
Skin for a panel caption collapse button. Used in multipanel mode.
DiagramView
  
panelCaptionExpandedBackgroundSkin
Type: Class   CSS Inheritance: no
Background skin of a expanded panel caption. Used in multipanel mode.
DiagramView
  
panelCaptionExpandedSize
Type: Number   Format: Length   CSS Inheritance: no
Size of a expanded panel caption. Used in multipanel mode.
DiagramView
  
panelCaptionExpandSkin
Type: Class   CSS Inheritance: no
Skin for a panel caption expand button. Used in multipanel mode.
DiagramView
  
panelCaptionFontColor
Type: uint   Format: Color   CSS Inheritance: no
Font color of a panel caption. Used in multipanel mode.
DiagramView
  
panelCaptionFontName
Type: String   CSS Inheritance: no
Font for a panel cpation. Used in multipanel mode.
DiagramView
  
panelCaptionFontSize
Type: Number   Format: Length   CSS Inheritance: no
Font size of a panel caption. Used in multipanel mode.
DiagramView
  
panelCaptionPrintColor
Type: uint   Format: Color   CSS Inheritance: no
Print color for a panel caption. Used in multipanel mode.
DiagramView
  
panelDefaultHeight
Type: Number   Format: Length   CSS Inheritance: no
Default height of a panel. Used in multipanel mode.
DiagramView
  
panelDefaultTitle
Type: String   CSS Inheritance: no
Default title of a panel. Used in multipanel mode.
DiagramView
  
panelDividerSize
Type: uint   CSS Inheritance: no
Size of a panel divider. Used in multipanel mode.
DiagramView
  
panelExpandedMargin
Type: Number   Format: Length   CSS Inheritance: no
Margin of a expanded panel. Used in multipanel mode.
DiagramView
Public Constants
 ConstantDefined by
  HORIZONTAL_ALIGNEMENT_CENTERED : uint = 0
[static] Horizontal center alignement
DiagramView
  HORIZONTAL_ALIGNEMENT_LEFT : uint = 2
[static] Horizontal left alignement
DiagramView
  HORIZONTAL_ALIGNEMENT_RIGHT : uint = 1
[static] Horizontal right alignement
DiagramView
  HORIZONTAL_DISTRIBUTION_CENTERED : uint = 9
[static] Horizontal distribution of center
DiagramView
  HORIZONTAL_DISTRIBUTION_LEFT : uint = 10
[static] Horizontal distribution of left
DiagramView
  HORIZONTAL_DISTRIBUTION_RIGHT : uint = 11
[static] Horizontal distribution of right
DiagramView
  HORIZONTAL_EVEN_SPACING : uint = 13
[static] Horizontal event spacing
DiagramView
  LIB_LINK_MODE : uint = 0
[static] Link can be created using link zone on SVG library
DiagramView
  MANUAL_LINK_MODE : uint = 1
[static] Link are created manually by clicking on sprites.
DiagramView
  NO_LINK_MODE : uint = 2
[static] Link can not be created.
DiagramView
  VERTICAL_ALIGNEMENT_BOTTOM : uint = 5
[static] Vertical bottom alignement
DiagramView
  VERTICAL_ALIGNEMENT_CENTERED : uint = 3
[static] Vertical center alignement
DiagramView
  VERTICAL_ALIGNEMENT_TOP : uint = 4
[static] Vertical top alignement
DiagramView
  VERTICAL_DISTRIBUTION_BOTTOM : uint = 7
[static] Vertical distribution of bottom
DiagramView
  VERTICAL_DISTRIBUTION_CENTERED : uint = 6
[static] Vertical distribution of center
DiagramView
  VERTICAL_DISTRIBUTION_TOP : uint = 8
[static] Vertical distribution of top
DiagramView
  VERTICAL_EVEN_SPACING : uint = 12
[static] Vertical even spacing
DiagramView
Protected Constants
 ConstantDefined by
  DEFAULT_DOCHEIGHT : Number = 2879
[static] Default height of the SVG representation of this DiagramView.
DiagramView
  DEFAULT_DOCWIDTH : Number = 2879
[static] Default width of the SVG representation of this DiagramView.
DiagramView
Property detail
actionsmanagerproperty
actionsmanager:ActionsManager  [read-only]

The ActionManager used by this DiagramView to manage registered actions (enable, disable, remove...).

Implementation
    public function get actionsmanager():ActionsManager
activetoolproperty 
activetool:String  [read-write]

Current active tool ID property used by this DiagramView instance.

Implementation
    public function get activetool():String
    public function set activetool(value:String):void
asynccolumncreationproperty 
asynccolumncreation:Boolean  [read-write]

Define if column creation is synchronous or asynchronous. If false, columns are created when a user click on the column creation button. If true, a COLUMN_CREATIONREQUEST event is dispatch. column creation must be implemented in the application.

The default value is false.

Implementation
    public function get asynccolumncreation():Boolean
    public function set asynccolumncreation(value:Boolean):void
asynclanecreationproperty 
asynclanecreation:Boolean  [read-write]

Define if lane creation is synchronous or asynchronous. If false, lanes are created when a user click on the lane creation button. If true, a LANE_CREATIONREQUEST event is dispatch. Lane creation must be implemented in the application.

The default value is false.

Implementation
    public function get asynclanecreation():Boolean
    public function set asynclanecreation(value:Boolean):void
asyncpanelcreationproperty 
asyncpanelcreation:Boolean  [read-write]

Define if panel creation is synchronous or asynchronous. If false, panels are created when a user click on the lane creation button. If true, a PANEL_CREATIONREQUEST event is dispatch. Panel creation must be implemented in the application.

The default value is false.

Implementation
    public function get asyncpanelcreation():Boolean
    public function set asyncpanelcreation(value:Boolean):void
childrenScaleXproperty 
childrenScaleX:Number  [read-write]

ScaleX of childrens. Used to set zoom level

Implementation
    public function get childrenScaleX():Number
    public function set childrenScaleX(value:Number):void
childrenScaleYproperty 
childrenScaleY:Number  [read-write]

ScaleY of childrens. Used to set zoom level

Implementation
    public function get childrenScaleY():Number
    public function set childrenScaleY(value:Number):void
_columnsproperty 
protected var _columns:DiagramColumnContainer = null
columnsproperty 
columns:DiagramColumnContainer  [read-only]

The DiagramColumnContainer in which all the DiagramView's panels are embedded.

Implementation
    public function get columns():DiagramColumnContainer
dataobjectidproperty 
dataobjectid:String  [read-write]

Data object id of the diagram. The dataobjectid is a way to store external key to link diagram objects to application data objects. On the other side the did is an internal key use by DiagramView to managed its own serialization mechanism using XML. dataobjectid is also serialized during toXML(), which gives a way to restore relation between diagram objects and application data objects. That's why dataobjectid must be a permanent key in the application data objects or database. DiagramObject or DiagramLayer dataobjectid creation can be managed using DataModel that defines which IObjectProxy,ISpriteProxy,ILinkProxy should be used for data bindings. DiagramView databojectid should be managed directly by the developper, as it should be set only once when the diagram is first created. A diagram object linked to a given dataobjectid can be found using getElementByDataObjectId() function.

Implementation
    public function get dataobjectid():String
    public function set dataobjectid(value:String):void

See also

defaultLinkModeproperty 
defaultLinkMode:uint  [read-write]

Define default link creation mode. The value is used by returnToDefaultMode to set linkMode. If set to LIB_LINK_MODE, links can be created from defined zone in SVG library. If set to NO_LINK_MODE, links can not be created from defined zone in SVG library. In that case, link creation can be activated setting linkMode to MANUAL_LINK_MODE.

The default value is LIB_LINK_MODE.

Implementation
    public function get defaultLinkMode():uint
    public function set defaultLinkMode(value:uint):void

See also

defaultlinktypeproperty 
defaultlinktype:DiagramLinkType  [read-write]

Default DiagramLink parameters used by UI actions

Implementation
    public function get defaultlinktype():DiagramLinkType
    public function set defaultlinktype(value:DiagramLinkType):void
didproperty 
did:String  [read-write]

The Diagram Unique ID of this DiagramView. Every diagram element has an unique identifier which which is used for serialization. A did can be used to retreive the associated element using getElementById() function.

Implementation
    public function get did():String
    public function set did(value:String):void

See also

docheightproperty 
docheight:Number  [read-write]

SVG Doc Height of this DiagramView in an SVG representation (after being exported to SVG format).

The default value is DEFAULT_DOCHEIGHT.

Implementation
    public function get docheight():Number
    public function set docheight(value:Number):void

See also

docwidthproperty 
docwidth:Number  [read-write]

SVG Doc Width of this DiagramView in an SVG representation (after being exported to SVG format).

The default value is DEFAULT_DOCWIDTH.

Implementation
    public function get docwidth():Number
    public function set docwidth(value:Number):void

See also

dragenabledproperty 
dragenabled:Boolean  [read-write]

Enable dragging of diagram objects.

The default value is false.

Implementation
    public function get dragenabled():Boolean
    public function set dragenabled(value:Boolean):void
dropenabledproperty 
dropenabled:Boolean  [read-write]

Enable dropping of new diagram objects

The default value is false.

Implementation
    public function get dropenabled():Boolean
    public function set dropenabled(value:Boolean):void
handModeproperty 
handMode:Boolean  [read-write]

Hand mode switch. If true, a hand tool is activated and enable diagram scrolling.

The default value is false.

Implementation
    public function get handMode():Boolean
    public function set handMode(value:Boolean):void

See also

hideControlButtonsproperty 
hideControlButtons:Boolean  [read-write]

Indicator if the control buttons hidden.

Implementation
    public function get hideControlButtons():Boolean
    public function set hideControlButtons(value:Boolean):void
keyboardenabledproperty 
keyboardenabled:Boolean  [read-write]

Indicates whether keyboard support is currently enabled in this DiagramView instance.

The default value is false.

Implementation
    public function get keyboardenabled():Boolean
    public function set keyboardenabled(value:Boolean):void
linkModeproperty 
linkMode:uint  [read-write]

Define link creation mode. If set to LIB_LINK_MODE, links can be created from defined zone in SVG library. If set to MANUAL_LINK_MODE, links are created with a link tool by click on shapes. If set to NO_LINK_MODE, no links can be created.

The default value is LIB_LINK_MODE.

Implementation
    public function get linkMode():uint
    public function set linkMode(value:uint):void

See also

modelproperty 
model:DiagramModel  [read-write]

Define DiagramModel for this Diagram. It defines proxies to link diagram object to application data objects. It must be set only once, and before any operation in the diagram (usually in creationComplete event).

Implementation
    public function get model():DiagramModel
    public function set model(value:DiagramModel):void
modifiedproperty 
modified:Boolean  [read-write]

Indicates if diagram has been modified. If modified become true, a DIAGRAM_MODIFIED event is dispatched.

Implementation
    public function get modified():Boolean
    public function set modified(value:Boolean):void

See also

multicolumnproperty 
multicolumn:Boolean  [read-write]

Indicates whether multicolumn option is enabled.

The default value is true.

Implementation
    public function get multicolumn():Boolean
    public function set multicolumn(value:Boolean):void
multipanelproperty 
multipanel:Boolean  [read-write]

Indicates whether multipanel option is enabled.

The default value is true.

Implementation
    public function get multipanel():Boolean
    public function set multipanel(value:Boolean):void
multipleselectionproperty 
multipleselection:Boolean  [read-write]

Indicates whether multiple selection is used in this DiagramView.

The default value is false.

Implementation
    public function get multipleselection():Boolean
    public function set multipleselection(value:Boolean):void
panelsproperty 
panels:DiagramPanelsContainer  [read-only]

The DiagramPanelsContainer in which all the DiagramView's panels are embedded.

Implementation
    public function get panels():DiagramPanelsContainer
saveselectionproperty 
saveselection:Boolean  [read-write]

If true, state of selection is saved when toXML() is called

The default value is true.

Implementation
    public function get saveselection():Boolean
    public function set saveselection(value:Boolean):void

See also

selectionenabledproperty 
selectionenabled:Boolean  [read-write]

Indicates whether selection is currently enabled in this DiagramView instance.

The default value is false.

Implementation
    public function get selectionenabled():Boolean
    public function set selectionenabled(value:Boolean):void
showUIOnRollOverproperty 
showUIOnRollOver:Boolean  [read-write]

If true, contextual menu is displayed on sprite on mouse rollover, if no tool is active (default mode).

The default value is false.

Implementation
    public function get showUIOnRollOver():Boolean
    public function set showUIOnRollOver(value:Boolean):void
transformModeproperty 
transformMode:Boolean  [read-write]

Transform mode switch. If true, a transform tool is activated and enable sprite shape modification.

The default value is false.

Implementation
    public function get transformMode():Boolean
    public function set transformMode(value:Boolean):void

See also

_tweenengineproperty 
protected var _tweenengine:TweenEngine = null

The TweenEngine used for animation during diagram transitions.

uiColumnTextFormatproperty 
uiColumnTextFormat:TextFormat  [read-only]

The TextFormat used by the DiagramColumn components in this DiagramView.

Implementation
    public function get uiColumnTextFormat():TextFormat
uiLaneTextFormatproperty 
uiLaneTextFormat:TextFormat  [read-only]

The TextFormat used by the DiagramLane components in this DiagramView.

Implementation
    public function get uiLaneTextFormat():TextFormat
uilayerproperty 
uilayer:UILayer  [read-only]

The UIs Layer embedded in this DiagramView.

Implementation
    public function get uilayer():UILayer
uiPanelTextFormatproperty 
uiPanelTextFormat:TextFormat  [read-only]

The TextFormat used by the DiagramPanel components in this DiagramView.

Implementation
    public function get uiPanelTextFormat():TextFormat
uitextformatproperty 
uitextformat:TextFormat  [read-only]

The TextFormat used by the DiagramLane components in this DiagramView.

Implementation
    public function get uitextformat():TextFormat
_versionproperty 
protected var _version:String = "0"

DiagramView version.

viewproperty 
view:DiagramView  [read-only]

The diagram view of this element. The view is the DiagramView itself.

Implementation
    public function get view():DiagramView
Constructor detail
DiagramView()constructor
public function DiagramView()

Creates a DiagramView instance by assigning its Diagram Unique ID, default size, registered actions and event listeners.

Method detail
activateUI()method
public function activateUI(a:Boolean):void

Activates or deactivates this DiagramView. An activated DiagramView interacts with mouse events and a deactivated one doesn't.

Parameters
a:Boolean — The desired value of the DiagramView active status.
alignElements()method 
public function alignElements(sprites:Array, alignCommand:uint, customSpacing:Number, withAnimation:Boolean = false):void

Align an array of sprites according to a choosen method.

Parameters
sprites:Array — Array of DiagramSprite to align
 
alignCommand:uint — Type of alignment. Can be HORIZONTAL_ALIGNEMENT_CENTERED , HORIZONTAL_ALIGNEMENT_RIGHT , HORIZONTAL_ALIGNEMENT_LEFT , VERTICAL_ALIGNEMENT_CENTERED , VERTICAL_ALIGNEMENT_TOP , VERTICAL_ALIGNEMENT_BOTTOM , VERTICAL_DISTRIBUTION_CENTERED , VERTICAL_DISTRIBUTION_BOTTOM , VERTICAL_DISTRIBUTION_TOP , HORIZONTAL_DISTRIBUTION_CENTERED , HORIZONTAL_DISTRIBUTION_LEFT , HORIZONTAL_DISTRIBUTION_RIGHT , VERTICAL_EVEN_SPACING , HORIZONTAL_EVEN_SPACING.
 
customSpacing:Number — A additional space between sprite for VERTICAL_EVEN_SPACING or HORIZONTAL_EVEN_SPACING command.
 
withAnimation:Boolean (default = false) — If true, an animation is used as a transition.

See also

alignSelection()method 
public function alignSelection(alignCommand:uint, customSpacing:Number, withAnimation:Boolean = false):void

Align selected sprites according to a choosen method.

Parameters
alignCommand:uint — Type of alignment. Can be HORIZONTAL_ALIGNEMENT_CENTERED , HORIZONTAL_ALIGNEMENT_RIGHT , HORIZONTAL_ALIGNEMENT_LEFT , VERTICAL_ALIGNEMENT_CENTERED , VERTICAL_ALIGNEMENT_TOP , VERTICAL_ALIGNEMENT_BOTTOM , VERTICAL_DISTRIBUTION_CENTERED , VERTICAL_DISTRIBUTION_BOTTOM , VERTICAL_DISTRIBUTION_TOP , HORIZONTAL_DISTRIBUTION_CENTERED , HORIZONTAL_DISTRIBUTION_LEFT , HORIZONTAL_DISTRIBUTION_RIGHT , VERTICAL_EVEN_SPACING , HORIZONTAL_EVEN_SPACING.
 
customSpacing:Number — A additional space between sprite for VERTICAL_EVEN_SPACING or HORIZONTAL_EVEN_SPACING command.
 
withAnimation:Boolean (default = false) — If true, an animation is used as a transition.

See also

animate()method 
public function animate(tweeners:Array, freq:uint, dur:uint, easingfunc:Function):void

Animate DiagramObjects using parameters defined through an array of Tweener objects

Parameters
tweeners:Array — an Array of Tweener objects
 
freq:uint — frequency in frames/second of the animation
 
dur:uint — defaultduration used for tweeners whose duration == 0
 
easingfunc:Function — default easing function used for tweeners whose easingfunction == null
applyToAnchors()method 
public function applyToAnchors(dob:DiagramObject, f:Function, args:Array = null, filter:Function = null, filterargs:Array = null):void

Applies a given function (processing logic) to the anchors of a DiagramObject instance given function parameters and according to a filter function and its parameters if defined.

Parameters
dob:DiagramObject — Function to be applied on the DiagramObject anchors.
 
f:Function — Function arguments.
 
args:Array (default = null) — Filter function that selects the anchors that will be treated by the function.
 
filter:Function (default = null) — Filter arguments.
 
filterargs:Array (default = null)
applyToPanels()method 
public function applyToPanels(f:Function, args:Array):void

Applies a given function (processing logic) to DiagramPanelsContainer children of this DiagramView given function parameters.

Parameters
f:Function — Function to be applied on the DiagramPanelsContainer children.
 
args:Array — Function arguments.
canCloseColumn()method 
public function canCloseColumn(l:DiagramColumn):Boolean

Check if a column can be closed. This function must be overriden if a control must be done before closing a column. Default behavious is to always accept to close a lane (ie function return always true.

Parameters
l:DiagramColumn — column to check

Returns
Booleantrue if column can be closed.
canCloseLane()method 
public function canCloseLane(l:DiagramLane):Boolean

Check if a lane can be closed. This function must be overriden if a control must be done before closing a lane. Default behavious is to always accept to close a lane (ie function return always true.

Parameters
l:DiagramLane — lane to check

Returns
Booleantrue if lane can be closed.
canClosePanel()method 
public function canClosePanel(p:DiagramPanel):Boolean

Check if a panel can be closed. This function must be overriden if a control must be done before closing a panel. Default behavious is to always accept to close a panel (ie function return always true.

Parameters
p:DiagramPanel — panel to check

Returns
Booleantrue if panel can be closed.
canInsertExistingSpriteUponLink()method 
public function canInsertExistingSpriteUponLink(s:DiagramSprite, d:DiagramLink):Boolean

Check is existing sprite can be inserted upon DiagramLink

Parameters
s:DiagramSprite — existing Sprite to be inserted upon Link
 
d:DiagramLink — DiagramLink

Returns
Boolean — Sprite inserted
centeredZoom()method 
public function centeredZoom(ratio:Number, relative:Boolean, origin:Point = null):void

Zooms and scrolls the view, the focus point beeing on the center of the viewport

Parameters
ratio:Number — zoom factor. Values greater than 1 produce a zoomin effect, values less than 1 a zoomout effect
 
relative:Boolean — if true ratio is applied to the current zoom factor, if false ratio becomes the current zoom factor
 
origin:Point (default = null)
checkElementPropertyChange()method 
public function checkElementPropertyChange(el:IDiagramElement, property:String, value:Object, shapeid:String = null):Boolean

Check if a diagram element property can change. It use the model to retreive the IObjectProxy for the element, and call the acceptPropertyModification() method of the proxy. This mecanism enable developpers to prevent user to change some properties.

Parameters
el:IDiagramElement — Diagram element to check
 
property:String — Property name
 
value:Object — Property value
 
shapeid:String (default = null) — Shapeid of the sprite, if applicable.

Returns
Booleantrue if property can change.

See also

checkElementRemoved()method 
public function checkElementRemoved(el:IDiagramElement):Boolean

Check if a diagram element can be remove. It uses the model to retreive the IObjectProxy for the element, and call the acceptRemoveObject() method of the proxy. This mecanism enable developpers to prevent user to delete some diagram element.

Parameters
el:IDiagramElement — Diagram element to check

Returns
Booleantrue if element can be removed.

See also

checkTagName()method 
public function checkTagName(xml:XML):Boolean

Checks if an XML description is adequate to this DiagramView instance by checking the tag name property.

Parameters
xml:XML — Provided DiagramView Description

Returns
Boolean — Validity of the XML description (partial verification as it only checks the Tag Name).
clearReferences()method 
public function clearReferences():void

Clears all embedded references to IDiagramElements of this DiagramView

columnRemoved()method 
public function columnRemoved(column:DiagramColumn):void

Inflicts the effect of a DiagramColumn removal on this DiagramView.

Parameters
column:DiagramColumn — Removed DiagramColumn.
countObjectsByClass()method 
public function countObjectsByClass(cl:Class, f:Function, fargs:Array):int

Count all object in the DiagramView of the given class, using an optional filter function.

Parameters
cl:Class — retrieved elements inherit from cl
 
f:Function — a Boolean filter function to test retrieved elements against
 
fargs:Array — of the filter function

Returns
int — the number of objects matching the given class and filter function
countSelectedObjects()method 
public function countSelectedObjects():uint

Counts all selected Diagram Objects inside this DiagramView.

Returns
uint — Number of selected objects inside this DiagramView.
createAffiliation()method 
public function createAffiliation(owner:DiagramSprite, affilate:DiagramSprite, silent:Boolean = true):voidParameters
owner:DiagramSprite
 
affilate:DiagramSprite
 
silent:Boolean (default = true)
createAnnotation()method 
public function createAnnotation(source:DiagramObject, initialtext:String = null):DiagramAnnotation

Creates a DiagramAnnotation to be attached to a DiagramObject and returns it.

Parameters
source:DiagramObject — DiagramObject to which the created DiagramAnnotation component will be attached.
 
initialtext:String (default = null)

Returns
DiagramAnnotation — Created DiagramAnnotation instance
createChildren()method 
protected override function createChildren():void

Creates DiagramView children. They are listed as follows:

createComposition()method 
public function createComposition(master:DiagramSprite, slave:DiagramSprite, silent:Boolean = true):Boolean

Create a composition between a master (composite) and an slave (composition element).

Parameters
master:DiagramSprite — The sprite that will become the composite. Its shape must have at least one element with action-accept:composite style. The slave will be resized to be moved inside the nearest element with action-accept:composite style.
 
slave:DiagramSprite — The composition element. Its shape must have at least one element with action-accept:composition style.
 
silent:Boolean (default = true) — If true, no event are dispatched, and no object proxy is called.

Returns
Booleantrue if master and slave can be composed.
createLink()method 
public function createLink(source:DiagramObject, target:DiagramObject, points:Array, silent:Boolean = true):DiagramLink

Creates a DiagramLink between a source and a target DiagramObject while respecting the control points and returns it.

Parameters
source:DiagramObject — Source DiagramObject component.
 
target:DiagramObject — Target DiagramObject component.
 
points:Array — Array of control points to be used when drawing the DiagramLink.
 
silent:Boolean (default = true)

Returns
DiagramLink — DiagramLink instance.
createSprite()method 
public function createSprite(id:String, p:Point, centered:Boolean = true, silent:Boolean = true):DiagramSprite

Creates a DiagramSprite at a defined position, given its ID and returns it. The creation of this DiagramSprite can be optionnaly made with consideration of centered drawing.

Parameters
id:String — DiagramSprite ID.
 
p:Point — DiagramSprite creation position.
 
centered:Boolean (default = true) — Indicates whether the DiagramSprite center point must be the same as the DiagramSprite creation position p.
 
silent:Boolean (default = true)

Returns
DiagramSprite — Created DiagramSprite instance.
createSpriteUponLink()method 
public function createSpriteUponLink(id:String, d:DiagramLink, p:Point, silent:Boolean = true):DiagramSprite

Creates sprite upon diagramLink, at a given point

Parameters
id:String — sprite Id to be created
 
d:DiagramLink — DiagramLink
 
p:Point — Point where to insert the sprite
 
silent:Boolean (default = true)

Returns
DiagramSprite — Sprite newly created
deselectAll()method 
public function deselectAll():void

Remove all Diagram Objects from current selection inside the DiagramView. If any object was selected, a DiagramEvent.SELECTION_CHANGE will be dispatched.

dragDropHandler()method 
protected function dragDropHandler(event:DragEvent):void

Finalizes the dragging process by creating the selected DiagramSprite (dragged item) at the Drag Drop position.

Parameters
event:DragEvent — Detected Drag Event (Drag Drop)
dragEnterHandler()method 
protected function dragEnterHandler(event:DragEvent):void

Enables dragging items referring to DiagramObjects from this DiagramView drag source. This function initialises the dragging process. Each dragged item must be accepted by the DragManager.

Parameters
event:DragEvent — Detected Drag Event (Drag Enter).
dragOverHandler()method 
protected function dragOverHandler(event:DragEvent):void

Sets the feedback indicator for the drag and drop operation to a Copy action. When dragging this function copies the dragged item and do not move it.

Parameters
event:DragEvent — Detected Drag Event (Drag Over).
fromXML()method 
public function fromXML(xml:XML):void

Parses this DiagramView from an XML object.

Parameters
xml:XML — An XML document representing this DiagramView. The XML document must be the result of the toXML method.

See also

getDiagramLaneUnderPoint()method 
public function getDiagramLaneUnderPoint(pt:Point):DiagramLane

Returns the Diagram Lane, belonging to this DiagramView, under a given point. It is used to enable Diagram Lane selection inside this DiagramView component.

Parameters
pt:Point — Point referring to a user selection inside this DiagramView component.

Returns
DiagramLane — The DiagramLane under the selection point.
getDiagramObjectUnderPoint()method 
public function getDiagramObjectUnderPoint(pt:Point, recursegroups:Boolean = false, selectableOnly:Boolean = false):DiagramObject

Returns the DiagramObject, belonging to this DiagramView, under a given point. It is used to enable Diagram Object selection inside a DiagramView component regardless of its Diagram Panel container.

Parameters
pt:Point — Point referring to a user selection inside this DiagramView component.
 
recursegroups:Boolean (default = false) — A boolean indicating whether the function should consider Diagram Group instances.
 
selectableOnly:Boolean (default = false)

Returns
DiagramObject — The DiagramObject under the selection point.
getDragBounds()method 
public function getDragBounds(target:DisplayObject):Rectangle

Get a bound to be used with Sprite.startDrag().

Parameters
target:DisplayObject — The Sprite parent.

Returns
Rectangle — A rectangle to use with startDrag()

See also

flash.display.Sprite.startDrag()
getElementByDataObjectId()method 
public function getElementByDataObjectId(doid:String):IDiagramElement

Search for a diagram element linked to a given dataobjectid.

Parameters
doid:String — dataobjectid to search for

Returns
IDiagramElement — The diagram element linked to the dataobjectid

See also

getElementById()method 
public function getElementById(id:String):IDiagramElement

Search for a diagram element that has a given did.

Parameters
id:String — did to search for

Returns
IDiagramElement — The diagram element that has the specified did

See also

did
getGridObjects()method 
public function getGridObjects(lane:DiagramLane, column:DiagramColumn, cl:Class):ArrayParameters
lane:DiagramLane
 
column:DiagramColumn
 
cl:Class

Returns
Array
getLaneIndex()method 
public function getLaneIndex(lane:DiagramLane):int

Returns the index of a DiagramLane embedded in this DiagramView.

Parameters
lane:DiagramLane — Instance of the DiagramLane embedded in this DiagramView

Returns
int — Index of the DiagramLane in this DiagramView, among the other DiagramLanes.
getLinksFromSelection()method 
public function getLinksFromSelection(selection:Array):Array

Returns in and out Links of a Sprites selection.

Parameters
selection:Array — Sprite selection array.

Returns
Array
getLinkUnderSprite()method 
public function getLinkUnderSprite(sprite:DiagramSprite):DiagramLink

Returns link under sprite (if found), by looping the links collection

Parameters
sprite:DiagramSprite

Returns
DiagramLink — link under the sprite (if found), otherwise null
getObjectByClassUnderSprite()method 
public function getObjectByClassUnderSprite(cl:Class, sprite:DiagramSprite):DiagramObject

Returns object of the searched class under sprite (if found), by looping the object collection

Parameters
cl:Class
 
sprite:DiagramSprite

Returns
DiagramObject — object under the sprite (if found), otherwise null
getObjectsByClass()method 
public function getObjectsByClass(cl:Class, f:Function = null, fargs:Array = null):Array

Retrieve all object in the DiagramView of the given class, using an optional filter function.

Parameters
cl:Class — retrieved elements inherit from cl
 
f:Function (default = null) — a Boolean filter function to test retrieved elements against
 
fargs:Array (default = null) — parameters of the filter function

Returns
Array — an array of filtered elements whose class is a subclass of the given argument
getPanelIndex()method 
public function getPanelIndex(panel:DiagramPanel):int

Returns the index of a DiagramPanel embedded in this DiagramView.

Parameters
panel:DiagramPanel — Instance of the DiagramPanel embedded in this DiagramView.

Returns
int — Index of the DiagramPanel in this DiagramView, among the other DiagramPanels.
getPointsBetweendDobs()method 
public function getPointsBetweendDobs(source:DiagramObject, target:DiagramObject):Array

Returns the minimum points mandatory to create a link between 2 diagramObjects

Parameters
source:DiagramObject — DiagramObject
 
target:DiagramObject — DiagramObject

Returns
Array — Array of points
getReference()method 
public function getReference(id:String):IDiagramElement

Returns a registered IDiagramElement given its ID (reference key).

Parameters
id:String — IDiagramElement ID

Returns
IDiagramElement — Referenced IDiagramElement having id as reference key.
getSelectedObjects()method 
public function getSelectedObjects():Array

Return all selected object

Returns
Array — An array of all selected objects.
getSpriteUnderSprite()method 
public function getSpriteUnderSprite(sprite:DiagramSprite):DiagramSprite

Returns sprite under sprite (if found), by looping the sprite collection

Parameters
sprite:DiagramSprite

Returns
DiagramSprite — sprite under the sprite (if found), otherwise null
getTagName()method 
public function getTagName():String

Returns This DiagramView tagname equal to "diagram".

Returns
String — This DiagramView tagname.
groupSelectedObjects()method 
public function groupSelectedObjects(persist:Boolean = false):DiagramGroup

Allows grouping selected objects in a DiagramGroup instance.

Parameters
persist:Boolean (default = false) — Indicates whether grouping operation must be moved from this DiagramView's UI layer to its correspondant DiagramLane's UI layer.

Returns
DiagramGroup — The creates DiagramGroup (null if operation doesn't succeed).
hasObjects()method 
public function hasObjects():Boolean

Check if the diagram contains an object.

Returns
Booleantrue if DiagramView contains at least one DiagramObject.
hideAllFeedbacksOnLinks()method 
public function hideAllFeedbacksOnLinks():void

Hides the feedback effect on all Links

hideAllFeedbacksOnSprites()method 
public function hideAllFeedbacksOnSprites():void

Hides the feedback effect on all Sprites

insertColumnAt()method 
public function insertColumnAt(idx:int, silent:Boolean = false):DiagramColumn

Inserts a DiagramColumn at a given index and returns it. It is added at the index position specified. An index of 0 represents the back (bottom) of the display list for this DiagramView.

Parameters
idx:int — Insertion index that will be the index of the DiagramColumn inside this DiagramView.
 
silent:Boolean (default = false)

Returns
DiagramColumn — The inserted DiagramColumn (null if insertion is not performed).
insertExistingSpriteUponLink()method 
public function insertExistingSpriteUponLink(s:DiagramSprite, d:DiagramLink, p:Point, silent:Boolean = true):DiagramSprite

Inserts existing sprite upon DiagramLink

Parameters
s:DiagramSprite — existing Sprite to be inserted upon Link
 
d:DiagramLink — DiagramLink
 
p:Point — Point where to insert the sprite
 
silent:Boolean (default = true)

Returns
DiagramSprite — Sprite inserted
insertLaneAt()method 
public function insertLaneAt(panel:DiagramPanel, idx:int, silent:Boolean = false):DiagramLane

Inserts a DiagramLane at a given index inside a DiagramPanel of this DiagramView and returns it. It is added at the index position specified. An index of 0 represents the back (bottom) of the display list for the DiagramPanel panel.

Parameters
panel:DiagramPanel — DiagramPanel in which the insertion will be performed.
 
idx:int — Insertion index that will be the index of the DiagramPanel inside this DiagramView.
 
silent:Boolean (default = false)

Returns
DiagramLane — The inserted DiagramPanel (null if insertion is not performed).
insertPanelAt()method 
public function insertPanelAt(idx:int, silent:Boolean = false):DiagramPanel

Inserts a DiagramPanel at a given index and returns it. It is added at the index position specified. An index of 0 represents the back (bottom) of the display list for this DiagramView.

Parameters
idx:int — Insertion index that will be the index of the DiagramPanel inside this DiagramView.
 
silent:Boolean (default = false)

Returns
DiagramPanel — The inserted DiagramPanel (null if insertion is not performed).
isAnimationPlaying()method 
public function isAnimationPlaying():Boolean

Check if an animation is currently playing

Returns
Boolean — true if any animation is playing
laneRemoved()method 
public function laneRemoved(lane:DiagramLane):void

Inflicts the effect of a DiagramLane removal on this DiagramView.

Parameters
lane:DiagramLane — Removed DiagramLane.
libraryStylesChanged()method 
public function libraryStylesChanged(event:SVGAssetLibraryEvent):void

Redraws this DiagramView and its children when library styles and assets change given a SVGAssetLibraryEvent. The redraw action affects directly its DiagramPanelsContainer.

Parameters
event:SVGAssetLibraryEvent — SVGAssetLibraryEvent telling a change in asset library properties.
mouseMoveHandler()method 
protected function mouseMoveHandler(event:MouseEvent):voidParameters
event:MouseEvent
moveToTop()method 
public function moveToTop(dob:DiagramObject):void

Move an object on top of its layer. It will cover of other objects of its layer.

Parameters
dob:DiagramObject — DiagramObject instance to change
notifyColumnChanged()method 
public function notifyColumnChanged(dob:DiagramObject, oldColumn:DiagramColumn):void

Notify application that a diagram object changed of column

Parameters
dob:DiagramObject — Object that changed of column
 
oldColumn:DiagramColumn — Previous column of the object
notifyColumnCreationRequest()method 
public function notifyColumnCreationRequest(sibling:DiagramColumn, idx:int):void

Dispatch event to ask for an asynchronous column creation. Called if asynccolumncreation is true

Parameters
sibling:DiagramColumn — Previous column in the parent hierarchy
 
idx:int — Index of the sibling column in the parent hierarchy

See also

asynccolumncreation
notifyElementAffilated()method 
public function notifyElementAffilated(el:IDiagramElement):void

Notify application of an element affilation.

Parameters
el:IDiagramElement — Diagram element loaded

See also

notifyElementCreated()method 
public function notifyElementCreated(el:IDiagramElement):void

Notify application of an element creation.

Parameters
el:IDiagramElement — Diagram element created.
notifyElementLoaded()method 
public function notifyElementLoaded(el:IDiagramElement):void

Notify application of an element load. Called after fromXML().

Parameters
el:IDiagramElement — Diagram element loaded

See also

notifyElementMoved()method 
public function notifyElementMoved(el:IDiagramElement):void

Notify application of an element move.

Parameters
el:IDiagramElement — Diagram element moved.
notifyElementPropertyChange()method 
public function notifyElementPropertyChange(el:IDiagramElement, property:String, value:Object, shapeid:String = null):void

Notify application that a element property changed

Parameters
el:IDiagramElement — The element that was modified
 
property:String — The property that changed
 
value:Object — The new value
 
shapeid:String (default = null) — The shapeid of the element if applicable
notifyElementRemoved()method 
public function notifyElementRemoved(el:IDiagramElement):void

Notify application of an element removal.

Parameters
el:IDiagramElement — Diagram element removed.
notifyElementsLoaded()method 
protected function notifyElementsLoaded():void

This methode is used to notify all elements loading. It is called at the end of fromXML method. It recursivelly calls panels and lanes and leads to call of notifyElementLoaded for each diagram element.

See also

notifyLaneChanged()method 
public function notifyLaneChanged(dob:DiagramObject, oldlane:DiagramLane):void

Notify application that a diagram object changed of lane

Parameters
dob:DiagramObject — Object that changed of lane
 
oldlane:DiagramLane — Previous lane of the object
notifyLaneCreationRequest()method 
public function notifyLaneCreationRequest(sibling:DiagramLane, idx:int):void

Dispatch event to ask for an asynchronous lane creation. Called if asynclanecreation is true

Parameters
sibling:DiagramLane — Previous lane in the parent hierarchy
 
idx:int — Index of the sibling lane in the parent hierarchy

See also

notifyLinkScopeChanged()method 
public function notifyLinkScopeChanged(dlink:DiagramLink, oldscope:String):void

Notify application of an link scope change.

Parameters
dlink:DiagramLink — Diagram link those scope changed
 
oldscope:String — Previous scope of the link
notifyPanelCreationRequest()method 
public function notifyPanelCreationRequest(sibling:DiagramPanel, idx:int):void

Dispatch event to ask for an asynchronous panel creation. Called if asyncpanelcreation is true

Parameters
sibling:DiagramPanel — Previous panel in the parent hierarchy
 
idx:int — Index of the sibling panel in the parent hierarchy

See also

asyncpanelcreation
objectColumnChanged()method 
public function objectColumnChanged(dob:DiagramObject, newColumn:DiagramColumn):voidParameters
dob:DiagramObject
 
newColumn:DiagramColumn
objectLayerChanged()method 
public function objectLayerChanged(dob:DiagramObject, sourcelayer:DiagramLayer, targetlayer:DiagramLayer):void

Inflicts the change of a source Layer and a target Layer on the DiagramView.

Parameters
dob:DiagramObject — Source Layer.
 
sourcelayer:DiagramLayer — Target Layer.
 
targetlayer:DiagramLayer
objectRemoved()method 
public function objectRemoved(dob:DiagramObject):void

Inflicts the effect of a DiagramObject removal on this DiagramView.

Parameters
dob:DiagramObject — Removed DiagramObject.
panelRemoved()method 
public function panelRemoved(panel:DiagramPanel):void

Inflicts the effect of a DiagramPanel removal on this DiagramView.

Parameters
panel:DiagramPanel — Removed DiagramPanel.
pendLinkToAnimation()method 
public function pendLinkToAnimation(link:DiagramLink, path:Array, tweeners:Array):void

Pends a link path animation to a tweeners array.

Parameters
link:DiagramLink
 
path:Array
 
tweeners:Array
pendSpriteToAnimation()method 
public function pendSpriteToAnimation(dob:DiagramSprite, newBox:Rectangle, tweeners:Array, update:Boolean = false):voidParameters
dob:DiagramSprite
 
newBox:Rectangle
 
tweeners:Array
 
update:Boolean (default = false)
registerAction()method 
public function registerAction(aclass:Class):Boolean

Registers a Diagram Action to be considered by the different parts of this DiagramView.

Parameters
aclass:Class — Diagram Action class instance to be registered.

Returns
Boolean — Diagram Action registration success.
registerReference()method 
public function registerReference(ref:IDiagramElement):void

Registers a IDiagramElement reference in this DiagramView using its ID as key. This aims at having fast access to the different Diagram Elements embedded inside this DiagramView.

Parameters
ref:IDiagramElement — IDiagramElement to be registered.
registerTool()method 
public function registerTool(aclass:Class):Boolean

Registers a Diagram Tool to be used by the different parts of this DiagramView.

Parameters
aclass:Class — Diagram Tool class instance to be registered.

Returns
Boolean — Diagram Tool registration success.
removeAll()method 
public override function removeAll():void

Removes all Diagram Objects inside this DiagramView.

removeLinksBetweenObjects()method 
public function removeLinksBetweenObjects(source:DiagramObject, target:DiagramObject, bidirection:Boolean = true, silent:Boolean = false):int

Remove links between source and target

Parameters
source:DiagramObject — Source DiagramObject component.
 
target:DiagramObject — Target DiagramObject component.
 
bidirection:Boolean (default = true) — Define if all links beetween objects are remove, or only from source to target.
 
silent:Boolean (default = false) — If true, event is sent and object proxy get messages.

Returns
int — Number of links removed
removeObject()method 
public function removeObject(o:DiagramObject, silent:Boolean = false):void

Removes an object inside this DiagramView.

Parameters
o:DiagramObject — Diagram object to remove
 
silent:Boolean (default = false) — If true, no event is dispatched and no object proxy is called.
removePanel()method 
public function removePanel(idx:int):DiagramPanel

Removes a DiagramPanel at a specified index. This index refers to the DiagramPanel position in the children list of DiagramView's DiagramPanelsContainer.

Parameters
idx:int — Index of the DiagramPanel to be removed.

Returns
DiagramPanel — Removed DiagramPanel.
removeSelectedObjects()method 
public function removeSelectedObjects():void

Removes all selected Diagram Objects inside this DiagramView.

returnToDefaultMode()method 
public function returnToDefaultMode():void

Return to default mode. Reset linkMode, handMode, transformMode.

See also

scrollMove()method 
public function scrollMove(horizontal:int, vertical:int):void

Scroll view position without animation

Parameters
horizontal:int — Horizontal scroll variation
 
vertical:int — Vertical scroll variation
scrollTo()method 
public function scrollTo(hpos:int, vpos:int):void

Scroll to a new position with animation.

Parameters
hpos:int — New horizontal position
 
vpos:int — New vertical position
selectAll()method 
public function selectAll():void

Selects all Diagram Objects inside the DiagramView. If any object was not selected, a DiagramEvent.SELECTION_CHANGE will be dispatched.

selectColumnObjects()method 
public function selectColumnObjects(column:DiagramColumn):voidParameters
column:DiagramColumn
selectColumnObjectsByIndex()method 
public function selectColumnObjectsByIndex(idx:uint):voidParameters
idx:uint
selectObject()method 
public function selectObject(dob:DiagramObject, s:Boolean = true, event:MouseEvent = null):void

Select or deselects a given DiagramObject inside this DiagramView and optionally dispatches a mouse event after selection or deselection is performed. If the object selected state changed, a DiagramEvent.SELECTION_CHANGE will be dispatched.

Parameters
dob:DiagramObject — DiagramObject instance to be selected or deselected.
 
s:Boolean (default = true) — Indicates whether the DiagramObject should be selected or deselected.
 
event:MouseEvent (default = null) — MouseEvent to be dispatched
selectObjectsInRect()method 
public function selectObjectsInRect(grect:Rectangle, selectableOnly:Boolean = false):void

Selects all Diagram Objects of this DiagramView, contained inside a given Rectangle. This function can be used for multiple selection. If any object inside rectangle was not selected, a DiagramEvent.SELECTION_CHANGE will be dispatched.

Parameters
grect:Rectangle — Selection rectangle inside which all Diagram Objects will be selected.
 
selectableOnly:Boolean (default = false)
showFeedBackOnSingleLink()method 
public function showFeedBackOnSingleLink(link:DiagramLink):void

Hightlights the link and disable feedback effect on all the others

Parameters
link:DiagramLink — DiagramLink to highlight
sortSpritesByPlacement()method 
protected function sortSpritesByPlacement(sprites:Array, vertical:Boolean = true, policy:uint = 0):void

Parameters
sprites:Array — Array of DiagramSprite to sorte
 
vertical:Boolean (default = true) — If true, sort is done vertically, else horizontally
 
policy:uint (default = 0) — Define how sort is doe, either CENTERED_POLICY, TOP_POLICY, BOTTOM_POLICY, RIGHT_POLICY, LEFT_POLICY.
stopAnimation()method 
public function stopAnimation():void

Stops any pending DiagramObjects animation

styleChanged()method 
public override function styleChanged(prop:String):void

Detects changes to style properties and handle the change accordingly. When any style property is set, Flex calls the styleChanged method, passing to it the name of the style being set.

Parameters
prop:String — The name of the style property, or null if all styles for this DiagramView have changed.
syncReferences()method 
public function syncReferences():void

Ask to all the Diagram elements to synchronize all reference after they have been loaded from XML. This function is called by fromXLM() function.

See also

syncSpritesTriggers()method 
public function syncSpritesTriggers():void

Adds mouse listeners and allows required actions for all DiagramSprite objects. Called after a linkMode change.

See also

toSVG()method 
public function toSVG():XML

Exports this DiagramView instance (edited diagram) to an SVG file by writing in an SVGSVGElement instance and calling the appendToSVGDocument method.

Returns
XML — SVG representation of this DiagramView Instance.
toXML()method 
public function toXML():XML

Writes this DiagramView into an XML document. The XML document will follow this schema :

     <?xml version="1.0" encoding="utf-8"?>
     <xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">
     <xs:complexType name="diagramObject" mixed="true">
     <xs:sequence minOccurs="0" maxOccurs="unbounded">
     <xs:element name="anchor" type="diagramAnchor" />
     </xs:sequence>
     <xs:attribute name="id" type="xs:string" use="required" />
     <xs:attribute name="dataid" type="xs:string" use="optional" />
     <xs:attribute name="selected" type="xs:boolean" use="optional" />
     <xs:attribute name="grouped" type="xs:boolean" use="optional" />
     <xs:attribute name="layer" type="xs:string" use="optional" />
     <xs:attribute name="master" type="xs:string" use="optional" />
     <xs:attribute name="annotation" type="xs:string" use="optional" />
     <xs:attribute name="selectable" type="xs:boolean" use="optional" />
     <xs:attribute name="resizeenabled" type="xs:boolean" use="optional" />
     <xs:attribute name="compositebounds" type="xs:string" use="optional" />
     <xs:attribute name="compositionboundindex" type="xs:integer" use="optional" />
     </xs:complexType>

     <xs:complexType name="diagramAnchor">
     <xs:attribute name="id" type="xs:string" use="required" />
     <xs:attribute name="dx" type="xs:float" use="required" />
     <xs:attribute name="dy" type="xs:float" use="required" />
     <xs:attribute name="target" type="xs:string" use="required" />
     </xs:complexType>

     <xs:complexType name="diagramSprite" mixed="true">
     <xs:complexContent>
     <xs:extension base="diagramObject">
     <xs:sequence>
     <xs:sequence minOccurs="0">
     <xs:element name="textfield">
     <xs:complexType>
     <xs:simpleContent>
     <xs:extension base="xs:string">
     <xs:attribute name="shapeid" type="xs:string" use="required" />
     </xs:extension>
     </xs:simpleContent>
     </xs:complexType>
     </xs:element>
     </xs:sequence>
     <xs:element name="svgmodifs" minOccurs="0">
     <xs:complexType>
     <xs:sequence minOccurs="0" maxOccurs="unbounded">
     <xs:element name="path" minOccurs="0">
     <xs:complexType>
     <xs:attribute name="id" type="xs:string" use="required"/>
     <xs:attribute name="commands" type="xs:string" use="required"/>
     </xs:complexType>
     </xs:element>
     <xs:element name="viewport" minOccurs="0">
     <xs:complexType>
     <xs:attribute name="id" type="xs:string"/>
     <xs:attribute name="width" type="xs:float" use="required"/>
     <xs:attribute name="height" type="xs:float" use="required"/>
     </xs:complexType>
     </xs:element>
     <xs:element name="element" minOccurs="0">
     <xs:complexType>
     <xs:attribute name="id" type="xs:string" use="required"/>
     <xs:attribute name="x" type="xs:float" use="required"/>
     <xs:attribute name="y" type="xs:float" use="required"/>
     </xs:complexType>
     </xs:element>
     </xs:sequence>
     </xs:complexType>
     </xs:element>

     </xs:sequence>
     <xs:attribute name="dx" type="xs:float" use="optional" />
     <xs:attribute name="dy" type="xs:float" use="optional" />
     <xs:attribute name="box" type="xs:string" use="required" />
     <xs:attribute name="dragenabled" type="xs:boolean" use="optional" />
     <xs:attribute name="spriteid" type="xs:string" use="required" />
     </xs:extension>
     </xs:complexContent>
     </xs:complexType>

     <xs:complexType name="diagramGroup">
     <xs:sequence>
     <xs:element maxOccurs="unbounded" name="sprite" type="diagramSprite" />
     </xs:sequence>
     <xs:attribute name="id" type="xs:string" use="required" />
     <xs:attribute name="box" type="xs:string" use="required" />
     </xs:complexType>

     <xs:complexType name="diagramLink">
     <xs:complexContent>
     <xs:extension base="diagramObject">
     <xs:attribute name="behaviour" type="xs:integer" use="required" />
     <xs:attribute name="geometry" type="xs:integer" use="required" />
     <xs:attribute name="styleclass" type="xs:string" use="required" />
     <xs:attribute name="x" type="xs:float" use="required"/>
     <xs:attribute name="y" type="xs:float" use="required"/>
     <xs:attribute name="points" type="xs:string" use="optional" />
     <xs:attribute name="target" type="xs:string" use="optional" />
     </xs:extension>
     </xs:complexContent>
     </xs:complexType>

     <xs:complexType name="diagramAnnotation">
     <xs:complexContent>
     <xs:extension base="diagramSprite" />
     </xs:complexContent>
     </xs:complexType>

     <xs:complexType name="diagramLinkAnnotation">
     <xs:complexContent>
     <xs:extension base="diagramSprite">
     <xs:attribute name="segmentindex" type="xs:integer" />
     </xs:extension>
     </xs:complexContent>
     </xs:complexType>

     <xs:complexType name="diagramLinksLayer">
     <xs:sequence minOccurs="0">
     <xs:element name="link" type="diagramLink" />
     </xs:sequence>
     <xs:attribute name="id" type="xs:string" use="required" />
     <xs:attribute name="dataid" type="xs:string" use="optional" />
     </xs:complexType>

     <xs:complexType name="diagramLinksAnnotationsLayer">
     <xs:sequence minOccurs="0">
     <xs:element name="linkannotation" type="diagramLinkAnnotation" />
     </xs:sequence>
     <xs:attribute name="id" type="xs:string" use="required" />
     <xs:attribute name="dataid" type="xs:string" use="optional" />
     </xs:complexType>

     <xs:complexType name="diagramSpritesLayer">
     <xs:sequence minOccurs="0" maxOccurs="unbounded">
     <xs:element minOccurs="0" name="group" type="diagramGroup" />
     <xs:element minOccurs="0" name="sprite" type="diagramSprite" />
     </xs:sequence>
     <xs:attribute name="id" type="xs:string" use="required" />
     </xs:complexType>

     <xs:complexType name="diagramAnnotationsLayer">
     <xs:sequence minOccurs="0">
     <xs:element name="annotation" type="diagramAnnotation" />
     <xs:element name="linkannotation" type="diagramLinkAnnotation" />
     </xs:sequence>
     <xs:attribute name="id" type="xs:string" use="required" />
     </xs:complexType>

     <xs:complexType name="diagramLane">
     <xs:sequence>
     <xs:element name="links" type="diagramLinksLayer" />
     <xs:element name="sprites" type="diagramSpritesLayer" />
     <xs:element name="annotations" type="diagramAnnotationsLayer" />
     </xs:sequence>
     <xs:attribute name="id" type="xs:string" use="required" />
     <xs:attribute name="dataid" type="xs:string" use="optional" />
     <xs:attribute name="height" type="xs:float" use="required" />
     <xs:attribute name="storedheight" type="xs:float" use="optional" />
     <xs:attribute name="expandedheight" type="xs:float" use="optional" />
     <xs:attribute name="title" type="xs:string" use="optional" />
     </xs:complexType>

     <xs:complexType name="diagramPanel">
     <xs:sequence>
     <xs:element maxOccurs="unbounded" name="lane" type="diagramLane" />
     <xs:element name="links" type="diagramLinksLayer" />
     <xs:element name="annotations" type="diagramLinksAnnotationsLayer" />
     </xs:sequence>
     <xs:attribute name="id" type="xs:string" use="required" />
     <xs:attribute name="dataid" type="xs:string" use="optional" />
     <xs:attribute name="height" type="xs:unsignedShort" use="required" />
     <xs:attribute name="title" type="xs:string" use="required" />
     </xs:complexType>

     <xs:complexType  name="diagramPanelContainer">
     <xs:sequence>
     <xs:element minOccurs="0" maxOccurs="unbounded" name="panel" type="diagramPanel" />
     <xs:element name="links" type="diagramLinksLayer" />
     <xs:element name="annotations" type="diagramLinksAnnotationsLayer" />
     </xs:sequence>
     <xs:attribute name="id" type="xs:string" use="required" />
     <xs:attribute name="dataid" type="xs:string" use="optional" />
     </xs:complexType>

     <xs:element name="diagram">
     <xs:complexType>
     <xs:sequence minOccurs ="0" maxOccurs="1">
     <xs:element name="panels" type="diagramPanelContainer" />
     </xs:sequence>
     <xs:attribute name="version" type="xs:integer" use="required" />
     <xs:attribute name="width" type="xs:float" use="required" />
     <xs:attribute name="height" type="xs:float" use="required" />
     <xs:attribute name="id" type="xs:string" use="required" />
     </xs:complexType>
     </xs:element>

     </xs:schema>
     

Returns
XML — An XML document representing this DiagramView. This document can be used as a parameter for fromXML() method.

See also

ungroupSelectedObjects()method 
public function ungroupSelectedObjects():void

Ungroups selected DiagramGroup instances.

unregisterAction()method 
public function unregisterAction(aclass:Class):Boolean

Unreegisters a Diagram Action considered by the different parts of this DiagramView.

Parameters
aclass:Class — Diagram Action class instance to be removed.

Returns
Boolean — Diagram Action unregistration success.
unregisterTool()method 
public function unregisterTool(aclass:Class):Boolean

Unregisters a Diagram Tool used by the different parts of this DiagramView.

Parameters
aclass:Class — Diagram Tool class instance to be removed.

Returns
Boolean — Diagram Tool unregistration success.
updateDisplayList()method 
protected override function updateDisplayList(w:Number, h:Number):void

Draws the DiagramView and/or sizes and positions its children. This method is called when the component is added to a container using the addChild() method, and when the component's invalidateDisplayList() method is called.

Parameters
w:Number — Width of the component.
 
h:Number — Height of the component.
Event detail
columnCreationRequestevent 
Event object type: com.kapit.diagram.DiagramEvent

diagramColumnCaptionDoubleClickedevent  
Event object type: com.kapit.diagram.DiagramEvent
DiagramEvent.type property = com.kapit.diagram.DiagramEvent.DIAGRAM_COLUMN_CAPTION_DOUBLE_CLICKED

Dispatched when a column caption is double clicked.

diagramDefaultModeevent  
Event object type: com.kapit.diagram.DiagramEvent
DiagramEvent.type property = com.kapit.diagram.DiagramEvent.DIAGRAM_DEFAULT_MODE_SET

Dispatched when default mode is set.

diagramGroupCreatedevent  
Event object type: com.kapit.diagram.DiagramEvent
DiagramEvent.type property = com.kapit.diagram.DiagramEvent.DIAGRAM_GROUP_CREATED

Dispatched when a group is created.

diagramGroupUngroupedevent  
Event object type: com.kapit.diagram.DiagramEvent
DiagramEvent.type property = com.kapit.diagram.DiagramEvent.DIAGRAM_GROUP_UNGROUPED

Dispatched when a group is deleted.

diagramHandModeevent  
Event object type: com.kapit.diagram.DiagramEvent
DiagramEvent.type property = com.kapit.diagram.DiagramEvent.DIAGRAM_HAND_MODE_SET

Dispatched when hand mode is set.

diagramLaneCaptionDoubleClickedevent  
Event object type: com.kapit.diagram.DiagramEvent
DiagramEvent.type property = com.kapit.diagram.DiagramEvent.DIAGRAM_LANE_CAPTION_DOUBLE_CLICKED

Dispatched when a lane caption is double clicked.

diagramLinkModeevent  
Event object type: com.kapit.diagram.DiagramEvent
DiagramEvent.type property = com.kapit.diagram.DiagramEvent.DIAGRAM_LINK_MODE_SET

Dispatched when link mode is set.

diagramModifiedevent  
Event object type: com.kapit.diagram.DiagramEvent
DiagramEvent.type property = com.kapit.diagram.DiagramEvent.DIAGRAM_MODIFIED

Dispatched when the diagram is modified.

diagramPanelCaptionDoubleClickedevent  
Event object type: com.kapit.diagram.DiagramEvent
DiagramEvent.type property = com.kapit.diagram.DiagramEvent.DIAGRAM_PANEL_CAPTION_DOUBLE_CLICKED

Dispatched when a panel caption is double clicked.

diagramTransformModeevent  
Event object type: com.kapit.diagram.DiagramEvent
DiagramEvent.type property = com.kapit.diagram.DiagramEvent.DIAGRAM_TRANSFORM_MODE_SET

Dispatched when transform mode is set.

diagramZoomModeevent  
Event object type: com.kapit.diagram.DiagramEvent
DiagramEvent.type property = com.kapit.diagram.DiagramEvent.DIAGRAM_ZOOM_MODE_SET

Dispatched when zoom mode is set.

dragEventDraggingevent  
Event object type: com.kapit.diagram.DiagramDragEvent
DiagramDragEvent.type property = com.kapit.diagram.DiagramDragEvent.DRAGGING

Dispatched when the user moves around the mouse while a drag operation is pending

dragEventFinishedWithGroupevent  
Event object type: com.kapit.diagram.DiagramDragEvent
DiagramDragEvent.type property = com.kapit.diagram.DiagramDragEvent.DRAG_FINISHED_WITH_GROUP

Dispatched after the drag operation has completed and before the ungroup of the selection

dragEventFinishedWithoutGroupevent  
Event object type: com.kapit.diagram.DiagramDragEvent
DiagramDragEvent.type property = com.kapit.diagram.DiagramDragEvent.DRAG_FINISHED_WITHOUT_GROUP

Dispatched after the drag operation has completed and after the ungroup of the selection

dragEventStartedevent  
Event object type: com.kapit.diagram.DiagramDragEvent
DiagramDragEvent.type property = com.kapit.diagram.DiagramDragEvent.DRAG_STARTED

Dispatched when the user initiates a drag operation

elementCreatedevent  
Event object type: com.kapit.diagram.DiagramEvent
DiagramEvent.type property = com.kapit.diagram.DiagramEvent.ELEMENT_CREATED

Dispatched when an element is added to the diagram.

elementLoadedevent  
Event object type: com.kapit.diagram.DiagramEvent
DiagramEvent.type property = com.kapit.diagram.DiagramEvent.ELEMENT_LOADED

Dispatched when an element is loaded from XML into the diagrammer.

elementMovedevent  
Event object type: com.kapit.diagram.DiagramEvent
DiagramEvent.type property = com.kapit.diagram.DiagramEvent.ELEMENT_MOVED

Dispatched when an element of the diagram is moved.

elementPropertyChangedevent  
Event object type: com.kapit.diagram.DiagramEvent
DiagramEvent.type property = com.kapit.diagram.DiagramEvent.ELEMENT_PROPERTY_CHANGED

Dispatched when an element property is modified.

elementRemovedevent  
Event object type: com.kapit.diagram.DiagramEvent
DiagramEvent.type property = com.kapit.diagram.DiagramEvent.ELEMENT_REMOVED

Dispatched when the whole selection is removed from the diagram.

elementResizeFinishedevent  
Event object type: com.kapit.diagram.DiagramEvent
DiagramEvent.type property = com.kapit.diagram.DiagramEvent.ELEMENT_RESIZE_FINISHED

Dispatched when the user has finished resizing an element.

elementResizeProgressevent  
Event object type: com.kapit.diagram.DiagramEvent
DiagramEvent.type property = com.kapit.diagram.DiagramEvent.ELEMENT_RESIZE_PROGRESS

Dispatched while an element is resized.

elementResizeStartedevent  
Event object type: com.kapit.diagram.DiagramEvent
DiagramEvent.type property = com.kapit.diagram.DiagramEvent.ELEMENT_RESIZE_STARTED

Dispatched when an element start to be resized by the user.

laneCreationRequestevent  
Event object type: com.kapit.diagram.DiagramEvent
DiagramEvent.type property = com.kapit.diagram.DiagramEvent.LANE_CREATIONREQUEST

Dispatched when an asynchronouslane creation request occurs.

linkScopeChangedevent  
Event object type: com.kapit.diagram.DiagramEvent
DiagramEvent.type property = com.kapit.diagram.DiagramEvent.LINK_SCOPECHANGED

Dispatched when a link scope changed.

panelCreationRequestevent  
Event object type: com.kapit.diagram.DiagramEvent
DiagramEvent.type property = com.kapit.diagram.DiagramEvent.PANEL_CREATIONREQUEST

Dispatched when an asynchronous panel creation request occurs.

selectionChangedevent  
Event object type: com.kapit.diagram.DiagramEvent
DiagramEvent.type property = com.kapit.diagram.DiagramEvent.SELECTION_CHANGED

Dispatched when the selection of objects in the diagram changed.

spriteLaneChangedevent  
Event object type: com.kapit.diagram.DiagramEvent
DiagramEvent.type property = com.kapit.diagram.DiagramEvent.SPRITE_LANECHANGED

Dispatched when a sprite is moved from one lane to another.

Constant detail
DEFAULT_DOCHEIGHTconstant
protected static const DEFAULT_DOCHEIGHT:Number = 2879

Default height of the SVG representation of this DiagramView.

See also

DEFAULT_DOCWIDTHconstant 
protected static const DEFAULT_DOCWIDTH:Number = 2879

Default width of the SVG representation of this DiagramView.

See also

HORIZONTAL_ALIGNEMENT_CENTEREDconstant 
public static const HORIZONTAL_ALIGNEMENT_CENTERED:uint = 0

Horizontal center alignement

See also

HORIZONTAL_ALIGNEMENT_LEFTconstant 
public static const HORIZONTAL_ALIGNEMENT_LEFT:uint = 2

Horizontal left alignement

See also

HORIZONTAL_ALIGNEMENT_RIGHTconstant 
public static const HORIZONTAL_ALIGNEMENT_RIGHT:uint = 1

Horizontal right alignement

See also

HORIZONTAL_DISTRIBUTION_CENTEREDconstant 
public static const HORIZONTAL_DISTRIBUTION_CENTERED:uint = 9

Horizontal distribution of center

See also

HORIZONTAL_DISTRIBUTION_LEFTconstant 
public static const HORIZONTAL_DISTRIBUTION_LEFT:uint = 10

Horizontal distribution of left

See also

HORIZONTAL_DISTRIBUTION_RIGHTconstant 
public static const HORIZONTAL_DISTRIBUTION_RIGHT:uint = 11

Horizontal distribution of right

See also

HORIZONTAL_EVEN_SPACINGconstant 
public static const HORIZONTAL_EVEN_SPACING:uint = 13

Horizontal event spacing

See also

LIB_LINK_MODEconstant 
public static const LIB_LINK_MODE:uint = 0

Link can be created using link zone on SVG library

See also

MANUAL_LINK_MODEconstant 
public static const MANUAL_LINK_MODE:uint = 1

Link are created manually by clicking on sprites.

See also

NO_LINK_MODEconstant 
public static const NO_LINK_MODE:uint = 2

Link can not be created. Used to disable linking using link zone

See also

VERTICAL_ALIGNEMENT_BOTTOMconstant 
public static const VERTICAL_ALIGNEMENT_BOTTOM:uint = 5

Vertical bottom alignement

See also

VERTICAL_ALIGNEMENT_CENTEREDconstant 
public static const VERTICAL_ALIGNEMENT_CENTERED:uint = 3

Vertical center alignement

See also

VERTICAL_ALIGNEMENT_TOPconstant 
public static const VERTICAL_ALIGNEMENT_TOP:uint = 4

Vertical top alignement

See also

VERTICAL_DISTRIBUTION_BOTTOMconstant 
public static const VERTICAL_DISTRIBUTION_BOTTOM:uint = 7

Vertical distribution of bottom

See also

VERTICAL_DISTRIBUTION_CENTEREDconstant 
public static const VERTICAL_DISTRIBUTION_CENTERED:uint = 6

Vertical distribution of center

See also

VERTICAL_DISTRIBUTION_TOPconstant 
public static const VERTICAL_DISTRIBUTION_TOP:uint = 8

Vertical distribution of top

See also

VERTICAL_EVEN_SPACINGconstant 
public static const VERTICAL_EVEN_SPACING:uint = 12

Vertical even spacing

See also