| Package | com.kapit.diagram.view |
| Class | public class DiagramView |
| Inheritance | DiagramView fr.kapit.licence.KapCanvas |
| Implements | IDiagramElement |
<?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
| Property | Defined 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 | ||
| Property | Defined by | ||
|---|---|---|---|
| _columns : DiagramColumnContainer = null | DiagramView | ||
| _tweenengine : TweenEngine = null
The
TweenEngine used for animation during diagram transitions. | DiagramView | ||
| _version : String = "0"
DiagramView version.
| DiagramView | ||
| Method | Defined 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 | ||
|
canCloseColumn(l:DiagramColumn):Boolean
Check if a column can be closed.
| DiagramView | ||
|
canCloseLane(l:DiagramLane):Boolean
Check if a lane can be closed.
| DiagramView | ||
|
canClosePanel(p:DiagramPanel):Boolean
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 | ||
|
checkElementRemoved(el:IDiagramElement):Boolean
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 | ||
|
clearReferences():void
Clears all embedded references to IDiagramElements of this DiagramView
| DiagramView | ||
|
columnRemoved(column:DiagramColumn):void
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 | ||
|
countSelectedObjects():uint
Counts all selected Diagram Objects inside this DiagramView.
| DiagramView | ||
| DiagramView | |||
|
Creates a DiagramAnnotation to be attached to a DiagramObject and returns it.
| DiagramView | ||
|
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 | ||
|
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 | ||
|
getDiagramLaneUnderPoint(pt:Point):DiagramLane
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 | ||
|
getElementByDataObjectId(doid:String):IDiagramElement
Search for a diagram element linked to a given dataobjectid.
| DiagramView | ||
|
getElementById(id:String):IDiagramElement
Search for a diagram element that has a given did.
| DiagramView | ||
| DiagramView | |||
|
getLaneIndex(lane:DiagramLane):int
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 | ||
|
getPanelIndex(panel:DiagramPanel):int
Returns the index of a DiagramPanel embedded in this DiagramView.
| DiagramView | ||
|
Returns the minimum points mandatory to create a link between 2 diagramObjects
| DiagramView | ||
|
getReference(id:String):IDiagramElement
Returns a registered IDiagramElement given its ID (reference key).
| DiagramView | ||
|
getSelectedObjects():Array
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 | ||
|
hideAllFeedbacksOnLinks():void
Hides the feedback effect on all Links
| DiagramView | ||
|
hideAllFeedbacksOnSprites():void
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 | ||
|
insertExistingSpriteUponLink(s:DiagramSprite, d:DiagramLink, p:Point, silent:Boolean = true):DiagramSprite
Inserts existing sprite upon DiagramLink
| DiagramView | ||
|
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 | ||
|
isAnimationPlaying():Boolean
Check if an animation is currently playing
| DiagramView | ||
|
laneRemoved(lane:DiagramLane):void
Inflicts the effect of a DiagramLane removal on this DiagramView.
| DiagramView | ||
|
libraryStylesChanged(event:SVGAssetLibraryEvent):void
Redraws this DiagramView and its children when library styles and assets change given a SVGAssetLibraryEvent.
| DiagramView | ||
|
moveToTop(dob:DiagramObject):void
Move an object on top of its layer.
| DiagramView | ||
|
Notify application that a diagram object changed of column
| DiagramView | ||
|
notifyColumnCreationRequest(sibling:DiagramColumn, idx:int):void
Dispatch event to ask for an asynchronous column creation.
| DiagramView | ||
|
notifyElementAffilated(el:IDiagramElement):void
Notify application of an element affilation.
| DiagramView | ||
|
notifyElementCreated(el:IDiagramElement):void
Notify application of an element creation.
| DiagramView | ||
|
notifyElementLoaded(el:IDiagramElement):void
Notify application of an element load.
| DiagramView | ||
|
notifyElementMoved(el:IDiagramElement):void
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 | ||
|
notifyElementRemoved(el:IDiagramElement):void
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 | ||
|
notifyPanelCreationRequest(sibling:DiagramPanel, idx:int):void
Dispatch event to ask for an asynchronous panel creation.
| DiagramView | ||
| DiagramView | |||
|
Inflicts the change of a source Layer and a target Layer on the DiagramView.
| DiagramView | ||
|
objectRemoved(dob:DiagramObject):void
Inflicts the effect of a DiagramObject removal on this DiagramView.
| DiagramView | ||
|
panelRemoved(panel:DiagramPanel):void
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 | ||
|
registerReference(ref:IDiagramElement):void
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 | ||
|
removePanel(idx:int):DiagramPanel
Removes a DiagramPanel at a specified index.
| DiagramView | ||
|
removeSelectedObjects():void
Removes all selected Diagram Objects inside this DiagramView.
| DiagramView | ||
|
returnToDefaultMode():void
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 | ||
|
selectColumnObjects(column:DiagramColumn):void
| DiagramView | ||
|
selectColumnObjectsByIndex(idx:uint):void
| 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 | ||
|
showFeedBackOnSingleLink(link:DiagramLink):void
Hightlights the link and disable feedback effect on all the others
| DiagramView | ||
|
stopAnimation():void
Stops any pending DiagramObjects animation
| DiagramView | ||
|
styleChanged(prop:String):void
Detects changes to style properties and handle the change accordingly.
| DiagramView | ||
|
syncReferences():void
Ask to all the Diagram elements to synchronize all reference after they have been loaded from XML.
| DiagramView | ||
|
syncSpritesTriggers():void
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 | ||
|
ungroupSelectedObjects():void
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 | ||
| Method | Defined by | ||
|---|---|---|---|
|
createChildren():void
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 | ||
|
notifyElementsLoaded():void
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 | ||
| Event | Summary | Defined 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 | |||
| Constant | Defined 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 | ||
| Constant | Defined 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 | ||
| actionsmanager | property |
actionsmanager:ActionsManager [read-only]The ActionManager used by this DiagramView to manage registered actions (enable, disable, remove...).
Implementation public function get actionsmanager():ActionsManager
| activetool | property |
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
| asynccolumncreation | property |
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.
public function get asynccolumncreation():Boolean
public function set asynccolumncreation(value:Boolean):void
| asynclanecreation | property |
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.
public function get asynclanecreation():Boolean
public function set asynclanecreation(value:Boolean):void
| asyncpanelcreation | property |
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.
public function get asyncpanelcreation():Boolean
public function set asyncpanelcreation(value:Boolean):void
| childrenScaleX | property |
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
| childrenScaleY | property |
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
| _columns | property |
protected var _columns:DiagramColumnContainer = null
| columns | property |
columns:DiagramColumnContainer [read-only]The DiagramColumnContainer in which all the DiagramView's panels are embedded.
Implementation public function get columns():DiagramColumnContainer
| dataobjectid | property |
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.
public function get dataobjectid():String
public function set dataobjectid(value:String):void
See also
| defaultLinkMode | property |
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.
public function get defaultLinkMode():uint
public function set defaultLinkMode(value:uint):void
See also
| defaultlinktype | property |
defaultlinktype:DiagramLinkType [read-write]Default DiagramLink parameters used by UI actions
Implementation public function get defaultlinktype():DiagramLinkType
public function set defaultlinktype(value:DiagramLinkType):void
| did | property |
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.
public function get did():String
public function set did(value:String):void
See also
| docheight | property |
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.
public function get docheight():Number
public function set docheight(value:Number):void
See also
| docwidth | property |
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.
public function get docwidth():Number
public function set docwidth(value:Number):void
See also
| dragenabled | property |
dragenabled:Boolean [read-write]Enable dragging of diagram objects.
The default value is false.
public function get dragenabled():Boolean
public function set dragenabled(value:Boolean):void
| dropenabled | property |
dropenabled:Boolean [read-write]Enable dropping of new diagram objects
The default value is false.
public function get dropenabled():Boolean
public function set dropenabled(value:Boolean):void
| handMode | property |
handMode:Boolean [read-write]
Hand mode switch.
If true, a hand tool is activated and enable diagram scrolling.
The default value is false.
public function get handMode():Boolean
public function set handMode(value:Boolean):void
See also
| hideControlButtons | property |
hideControlButtons:Boolean [read-write]Indicator if the control buttons hidden.
Implementation public function get hideControlButtons():Boolean
public function set hideControlButtons(value:Boolean):void
| keyboardenabled | property |
keyboardenabled:Boolean [read-write]Indicates whether keyboard support is currently enabled in this DiagramView instance.
The default value is false.
public function get keyboardenabled():Boolean
public function set keyboardenabled(value:Boolean):void
| linkMode | property |
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.
public function get linkMode():uint
public function set linkMode(value:uint):void
See also
| model | property |
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).
public function get model():DiagramModel
public function set model(value:DiagramModel):void
| modified | property |
modified:Boolean [read-write]
Indicates if diagram has been modified. If modified become true, a DIAGRAM_MODIFIED event is dispatched.
public function get modified():Boolean
public function set modified(value:Boolean):void
See also
| multicolumn | property |
multicolumn:Boolean [read-write]Indicates whether multicolumn option is enabled.
The default value is true.
public function get multicolumn():Boolean
public function set multicolumn(value:Boolean):void
| multipanel | property |
multipanel:Boolean [read-write]Indicates whether multipanel option is enabled.
The default value is true.
public function get multipanel():Boolean
public function set multipanel(value:Boolean):void
| multipleselection | property |
multipleselection:Boolean [read-write]Indicates whether multiple selection is used in this DiagramView.
The default value is false.
public function get multipleselection():Boolean
public function set multipleselection(value:Boolean):void
| panels | property |
panels:DiagramPanelsContainer [read-only]The DiagramPanelsContainer in which all the DiagramView's panels are embedded.
Implementation public function get panels():DiagramPanelsContainer
| saveselection | property |
saveselection:Boolean [read-write]
If true, state of selection is saved when toXML() is called
The default value is true.
public function get saveselection():Boolean
public function set saveselection(value:Boolean):void
See also
| selectionenabled | property |
selectionenabled:Boolean [read-write]Indicates whether selection is currently enabled in this DiagramView instance.
The default value is false.
public function get selectionenabled():Boolean
public function set selectionenabled(value:Boolean):void
| showUIOnRollOver | property |
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.
public function get showUIOnRollOver():Boolean
public function set showUIOnRollOver(value:Boolean):void
| transformMode | property |
transformMode:Boolean [read-write]
Transform mode switch.
If true, a transform tool is activated and enable sprite shape modification.
The default value is false.
public function get transformMode():Boolean
public function set transformMode(value:Boolean):void
See also
| _tweenengine | property |
protected var _tweenengine:TweenEngine = null
The TweenEngine used for animation during diagram transitions.
| uiColumnTextFormat | property |
uiColumnTextFormat:TextFormat [read-only]The TextFormat used by the DiagramColumn components in this DiagramView.
Implementation public function get uiColumnTextFormat():TextFormat
| uiLaneTextFormat | property |
uiLaneTextFormat:TextFormat [read-only]The TextFormat used by the DiagramLane components in this DiagramView.
Implementation public function get uiLaneTextFormat():TextFormat
| uilayer | property |
uilayer:UILayer [read-only]The UIs Layer embedded in this DiagramView.
Implementation public function get uilayer():UILayer
| uiPanelTextFormat | property |
uiPanelTextFormat:TextFormat [read-only]The TextFormat used by the DiagramPanel components in this DiagramView.
Implementation public function get uiPanelTextFormat():TextFormat
| uitextformat | property |
uitextformat:TextFormat [read-only]The TextFormat used by the DiagramLane components in this DiagramView.
Implementation public function get uitextformat():TextFormat
| _version | property |
protected var _version:String = "0"DiagramView version.
| view | property |
view:DiagramView [read-only]
The diagram view of this element. The view is the DiagramView itself.
public function get view():DiagramView
| DiagramView | () | constructor |
public function DiagramView()Creates a DiagramView instance by assigning its Diagram Unique ID, default size, registered actions and event listeners.
| activateUI | () | method |
public function activateUI(a:Boolean):voidActivates or deactivates this DiagramView. An activated DiagramView interacts with mouse events and a deactivated one doesn't.
Parametersa:Boolean — The desired value of the DiagramView active status.
|
| alignElements | () | method |
public function alignElements(sprites:Array, alignCommand:uint, customSpacing:Number, withAnimation:Boolean = false):voidAlign an array of sprites according to a choosen method.
Parameterssprites: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):voidAlign selected sprites according to a choosen method.
ParametersalignCommand: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):voidAnimate DiagramObjects using parameters defined through an array of Tweener objects
Parameterstweeners: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):voidApplies 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.
Parametersdob: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):voidApplies a given function (processing logic) to DiagramPanelsContainer children of this DiagramView given function parameters.
Parametersf: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.
l:DiagramColumn — column to check
|
Boolean — true 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.
l:DiagramLane — lane to check
|
Boolean — true 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.
p:DiagramPanel — panel to check
|
Boolean — true if panel can be closed.
|
| canInsertExistingSpriteUponLink | () | method |
public function canInsertExistingSpriteUponLink(s:DiagramSprite, d:DiagramLink):BooleanCheck is existing sprite can be inserted upon DiagramLink
Parameterss:DiagramSprite — existing Sprite to be inserted upon Link
|
|
d:DiagramLink — DiagramLink
|
Boolean — Sprite inserted
|
| centeredZoom | () | method |
public function centeredZoom(ratio:Number, relative:Boolean, origin:Point = null):voidZooms and scrolls the view, the focus point beeing on the center of the viewport
Parametersratio: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.
el:IDiagramElement — Diagram element to check
|
|
property:String — Property name
|
|
value:Object — Property value
|
|
shapeid:String (default = null) — Shapeid of the sprite, if applicable.
|
Boolean — true 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.
el:IDiagramElement — Diagram element to check
|
Boolean — true if element can be removed.
|
See also
| checkTagName | () | method |
public function checkTagName(xml:XML):BooleanChecks if an XML description is adequate to this DiagramView instance by checking the tag name property.
Parametersxml:XML — Provided DiagramView Description
|
Boolean — Validity of the XML description (partial verification as it only checks the Tag Name).
|
| clearReferences | () | method |
public function clearReferences():voidClears all embedded references to IDiagramElements of this DiagramView
| columnRemoved | () | method |
public function columnRemoved(column:DiagramColumn):voidInflicts the effect of a DiagramColumn removal on this DiagramView.
Parameterscolumn:DiagramColumn — Removed DiagramColumn.
|
| countObjectsByClass | () | method |
public function countObjectsByClass(cl:Class, f:Function, fargs:Array):intCount all object in the DiagramView of the given class, using an optional filter function.
Parameterscl:Class — retrieved elements inherit from cl
|
|
f:Function — a Boolean filter function to test retrieved elements against
|
|
fargs:Array — of the filter function
|
int — the number of objects matching the given class and filter function
|
| countSelectedObjects | () | method |
public function countSelectedObjects():uintCounts all selected Diagram Objects inside this DiagramView.
Returnsuint — 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):DiagramAnnotationCreates a DiagramAnnotation to be attached to a DiagramObject and returns it.
Parameterssource:DiagramObject — DiagramObject to which the created DiagramAnnotation component will be attached.
|
|
initialtext:String (default = null) |
DiagramAnnotation —
Created DiagramAnnotation instance
|
| createChildren | () | method |
protected override function createChildren():voidCreates DiagramView children. They are listed as follows:
| createComposition | () | method |
public function createComposition(master:DiagramSprite, slave:DiagramSprite, silent:Boolean = true):BooleanCreate a composition between a master (composite) and an slave (composition element).
Parametersmaster: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.
|
Boolean — true if master and slave can be composed.
|
| createLink | () | method |
public function createLink(source:DiagramObject, target:DiagramObject, points:Array, silent:Boolean = true):DiagramLinkCreates a DiagramLink between a source and a target DiagramObject while respecting the control points and returns it.
Parameterssource: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) |
DiagramLink —
DiagramLink instance.
|
| createSprite | () | method |
public function createSprite(id:String, p:Point, centered:Boolean = true, silent:Boolean = true):DiagramSpriteCreates 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.
Parametersid: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) |
DiagramSprite —
Created DiagramSprite instance.
|
| createSpriteUponLink | () | method |
public function createSpriteUponLink(id:String, d:DiagramLink, p:Point, silent:Boolean = true):DiagramSpriteCreates sprite upon diagramLink, at a given point
Parametersid:String — sprite Id to be created
|
|
d:DiagramLink — DiagramLink
|
|
p:Point — Point where to insert the sprite
|
|
silent:Boolean (default = true) |
DiagramSprite —
Sprite newly created
|
| deselectAll | () | method |
public function deselectAll():voidRemove 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):voidFinalizes the dragging process by creating the selected DiagramSprite (dragged item) at the Drag Drop position.
Parametersevent:DragEvent — Detected Drag Event (Drag Drop)
|
| dragEnterHandler | () | method |
protected function dragEnterHandler(event:DragEvent):voidEnables 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.
Parametersevent:DragEvent — Detected Drag Event (Drag Enter).
|
| dragOverHandler | () | method |
protected function dragOverHandler(event:DragEvent):voidSets 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.
Parametersevent:DragEvent — Detected Drag Event (Drag Over).
|
| fromXML | () | method |
public function fromXML(xml:XML):voidParses this DiagramView from an XML object.
Parametersxml: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):DiagramLaneReturns the Diagram Lane, belonging to this DiagramView, under a given point. It is used to enable Diagram Lane selection inside this DiagramView component.
Parameterspt:Point — Point referring to a user selection inside this DiagramView component.
|
DiagramLane —
The DiagramLane under the selection point.
|
| getDiagramObjectUnderPoint | () | method |
public function getDiagramObjectUnderPoint(pt:Point, recursegroups:Boolean = false, selectableOnly:Boolean = false):DiagramObjectReturns 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.
Parameterspt: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) |
DiagramObject —
The DiagramObject under the selection point.
|
| getDragBounds | () | method |
public function getDragBounds(target:DisplayObject):RectangleGet a bound to be used with Sprite.startDrag().
Parameterstarget:DisplayObject — The Sprite parent.
|
Rectangle — A rectangle to use with startDrag()
|
See also
| getElementByDataObjectId | () | method |
public function getElementByDataObjectId(doid:String):IDiagramElementSearch for a diagram element linked to a given dataobjectid.
Parametersdoid:String — dataobjectid to search for
|
IDiagramElement —
The diagram element linked to the dataobjectid
|
See also
| getElementById | () | method |
public function getElementById(id:String):IDiagramElementSearch for a diagram element that has a given did.
Parametersid:String — did to search for
|
IDiagramElement —
The diagram element that has the specified did
|
See also
| getGridObjects | () | method |
public function getGridObjects(lane:DiagramLane, column:DiagramColumn, cl:Class):ArrayParameters
lane:DiagramLane |
|
column:DiagramColumn |
|
cl:Class |
Array |
| getLaneIndex | () | method |
public function getLaneIndex(lane:DiagramLane):intReturns the index of a DiagramLane embedded in this DiagramView.
Parameterslane:DiagramLane — Instance of the DiagramLane embedded in this DiagramView
|
int — Index of the DiagramLane in this DiagramView, among the other DiagramLanes.
|
| getLinksFromSelection | () | method |
public function getLinksFromSelection(selection:Array):ArrayReturns in and out Links of a Sprites selection.
Parametersselection:Array — Sprite selection array.
|
Array |
| getLinkUnderSprite | () | method |
public function getLinkUnderSprite(sprite:DiagramSprite):DiagramLinkReturns link under sprite (if found), by looping the links collection
Parameterssprite:DiagramSprite |
DiagramLink —
link under the sprite (if found), otherwise null
|
| getObjectByClassUnderSprite | () | method |
public function getObjectByClassUnderSprite(cl:Class, sprite:DiagramSprite):DiagramObjectReturns object of the searched class under sprite (if found), by looping the object collection
Parameterscl:Class |
|
sprite:DiagramSprite |
DiagramObject —
object under the sprite (if found), otherwise null
|
| getObjectsByClass | () | method |
public function getObjectsByClass(cl:Class, f:Function = null, fargs:Array = null):ArrayRetrieve all object in the DiagramView of the given class, using an optional filter function.
Parameterscl: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
|
Array — an array of filtered elements whose class is a subclass of the given argument
|
| getPanelIndex | () | method |
public function getPanelIndex(panel:DiagramPanel):intReturns the index of a DiagramPanel embedded in this DiagramView.
Parameterspanel:DiagramPanel — Instance of the DiagramPanel embedded in this DiagramView.
|
int — Index of the DiagramPanel in this DiagramView, among the other DiagramPanels.
|
| getPointsBetweendDobs | () | method |
public function getPointsBetweendDobs(source:DiagramObject, target:DiagramObject):ArrayReturns the minimum points mandatory to create a link between 2 diagramObjects
Parameterssource:DiagramObject — DiagramObject
|
|
target:DiagramObject — DiagramObject
|
Array — Array of points
|
| getReference | () | method |
public function getReference(id:String):IDiagramElementReturns a registered IDiagramElement given its ID (reference key).
Parametersid:String — IDiagramElement ID
|
IDiagramElement —
Referenced IDiagramElement having id as reference key.
|
| getSelectedObjects | () | method |
public function getSelectedObjects():ArrayReturn all selected object
ReturnsArray — An array of all selected objects.
|
| getSpriteUnderSprite | () | method |
public function getSpriteUnderSprite(sprite:DiagramSprite):DiagramSpriteReturns sprite under sprite (if found), by looping the sprite collection
Parameterssprite:DiagramSprite |
DiagramSprite —
sprite under the sprite (if found), otherwise null
|
| getTagName | () | method |
public function getTagName():String
Returns This DiagramView tagname equal to "diagram".
String — This DiagramView tagname.
|
| groupSelectedObjects | () | method |
public function groupSelectedObjects(persist:Boolean = false):DiagramGroupAllows grouping selected objects in a DiagramGroup instance.
Parameterspersist:Boolean (default = false) — Indicates whether grouping operation must be moved from this DiagramView's UI layer
to its correspondant DiagramLane's UI layer.
|
DiagramGroup —
The creates DiagramGroup (null if operation doesn't succeed).
|
| hasObjects | () | method |
public function hasObjects():BooleanCheck if the diagram contains an object.
ReturnsBoolean — true if DiagramView contains at least one DiagramObject.
|
| hideAllFeedbacksOnLinks | () | method |
public function hideAllFeedbacksOnLinks():voidHides the feedback effect on all Links
| hideAllFeedbacksOnSprites | () | method |
public function hideAllFeedbacksOnSprites():voidHides the feedback effect on all Sprites
| insertColumnAt | () | method |
public function insertColumnAt(idx:int, silent:Boolean = false):DiagramColumnInserts 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.
Parametersidx:int — Insertion index that will be the index of the DiagramColumn inside this DiagramView.
|
|
silent:Boolean (default = false) |
DiagramColumn —
The inserted DiagramColumn (null if insertion is not performed).
|
| insertExistingSpriteUponLink | () | method |
public function insertExistingSpriteUponLink(s:DiagramSprite, d:DiagramLink, p:Point, silent:Boolean = true):DiagramSpriteInserts existing sprite upon DiagramLink
Parameterss:DiagramSprite — existing Sprite to be inserted upon Link
|
|
d:DiagramLink — DiagramLink
|
|
p:Point — Point where to insert the sprite
|
|
silent:Boolean (default = true) |
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.
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) |
DiagramLane —
The inserted DiagramPanel (null if insertion is not performed).
|
| insertPanelAt | () | method |
public function insertPanelAt(idx:int, silent:Boolean = false):DiagramPanelInserts 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.
Parametersidx:int — Insertion index that will be the index of the DiagramPanel inside this DiagramView.
|
|
silent:Boolean (default = false) |
DiagramPanel —
The inserted DiagramPanel (null if insertion is not performed).
|
| isAnimationPlaying | () | method |
public function isAnimationPlaying():BooleanCheck if an animation is currently playing
ReturnsBoolean — true if any animation is playing
|
| laneRemoved | () | method |
public function laneRemoved(lane:DiagramLane):voidInflicts the effect of a DiagramLane removal on this DiagramView.
Parameterslane:DiagramLane — Removed DiagramLane.
|
| libraryStylesChanged | () | method |
public function libraryStylesChanged(event:SVGAssetLibraryEvent):voidRedraws this DiagramView and its children when library styles and assets change given a SVGAssetLibraryEvent. The redraw action affects directly its DiagramPanelsContainer.
Parametersevent: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):voidMove an object on top of its layer. It will cover of other objects of its layer.
Parametersdob:DiagramObject — DiagramObject instance to change
|
| notifyColumnChanged | () | method |
public function notifyColumnChanged(dob:DiagramObject, oldColumn:DiagramColumn):voidNotify application that a diagram object changed of column
Parametersdob: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
sibling:DiagramColumn — Previous column in the parent hierarchy
|
|
idx:int — Index of the sibling column in the parent hierarchy
|
See also
| notifyElementAffilated | () | method |
public function notifyElementAffilated(el:IDiagramElement):voidNotify application of an element affilation.
Parametersel:IDiagramElement — Diagram element loaded
|
See also
| notifyElementCreated | () | method |
public function notifyElementCreated(el:IDiagramElement):voidNotify application of an element creation.
Parametersel:IDiagramElement — Diagram element created.
|
| notifyElementLoaded | () | method |
public function notifyElementLoaded(el:IDiagramElement):voidNotify application of an element load. Called after fromXML().
Parametersel:IDiagramElement — Diagram element loaded
|
See also
| notifyElementMoved | () | method |
public function notifyElementMoved(el:IDiagramElement):voidNotify application of an element move.
Parametersel:IDiagramElement — Diagram element moved.
|
| notifyElementPropertyChange | () | method |
public function notifyElementPropertyChange(el:IDiagramElement, property:String, value:Object, shapeid:String = null):voidNotify application that a element property changed
Parametersel: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):voidNotify application of an element removal.
Parametersel: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):voidNotify application that a diagram object changed of lane
Parametersdob: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
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):voidNotify application of an link scope change.
Parametersdlink: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
sibling:DiagramPanel — Previous panel in the parent hierarchy
|
|
idx:int — Index of the sibling panel in the parent hierarchy
|
See also
| 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):voidInflicts the change of a source Layer and a target Layer on the DiagramView.
Parametersdob:DiagramObject — Source Layer.
|
|
sourcelayer:DiagramLayer — Target Layer.
|
|
targetlayer:DiagramLayer |
| objectRemoved | () | method |
public function objectRemoved(dob:DiagramObject):voidInflicts the effect of a DiagramObject removal on this DiagramView.
Parametersdob:DiagramObject — Removed DiagramObject.
|
| panelRemoved | () | method |
public function panelRemoved(panel:DiagramPanel):voidInflicts the effect of a DiagramPanel removal on this DiagramView.
Parameterspanel:DiagramPanel — Removed DiagramPanel.
|
| pendLinkToAnimation | () | method |
public function pendLinkToAnimation(link:DiagramLink, path:Array, tweeners:Array):voidPends a link path animation to a tweeners array.
Parameterslink: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):BooleanRegisters a Diagram Action to be considered by the different parts of this DiagramView.
Parametersaclass:Class — Diagram Action class instance to be registered.
|
Boolean — Diagram Action registration success.
|
| registerReference | () | method |
public function registerReference(ref:IDiagramElement):voidRegisters 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.
Parametersref:IDiagramElement — IDiagramElement to be registered.
|
| registerTool | () | method |
public function registerTool(aclass:Class):BooleanRegisters a Diagram Tool to be used by the different parts of this DiagramView.
Parametersaclass:Class — Diagram Tool class instance to be registered.
|
Boolean — Diagram Tool registration success.
|
| removeAll | () | method |
public override function removeAll():voidRemoves all Diagram Objects inside this DiagramView.
| removeLinksBetweenObjects | () | method |
public function removeLinksBetweenObjects(source:DiagramObject, target:DiagramObject, bidirection:Boolean = true, silent:Boolean = false):intRemove links between source and target
Parameterssource: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.
|
int — Number of links removed
|
| removeObject | () | method |
public function removeObject(o:DiagramObject, silent:Boolean = false):voidRemoves an object inside this DiagramView.
Parameterso: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):DiagramPanelRemoves a DiagramPanel at a specified index. This index refers to the DiagramPanel position in the children list of DiagramView's DiagramPanelsContainer.
Parametersidx:int — Index of the DiagramPanel to be removed.
|
DiagramPanel —
Removed DiagramPanel.
|
| removeSelectedObjects | () | method |
public function removeSelectedObjects():voidRemoves 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):voidScroll view position without animation
Parametershorizontal:int — Horizontal scroll variation
|
|
vertical:int — Vertical scroll variation
|
| scrollTo | () | method |
public function scrollTo(hpos:int, vpos:int):voidScroll to a new position with animation.
Parametershpos:int — New horizontal position
|
|
vpos:int — New vertical position
|
| selectAll | () | method |
public function selectAll():voidSelects all Diagram Objects inside the DiagramView. If any object was not selected, a DiagramEvent.SELECTION_CHANGE will be dispatched.
| selectColumnObjects | () | method |
| selectColumnObjectsByIndex | () | method |
public function selectColumnObjectsByIndex(idx:uint):voidParameters
idx:uint |
| selectObject | () | method |
public function selectObject(dob:DiagramObject, s:Boolean = true, event:MouseEvent = null):voidSelect 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.
Parametersdob: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):voidSelects 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.
Parametersgrect:Rectangle — Selection rectangle inside which all Diagram Objects will be selected.
|
|
selectableOnly:Boolean (default = false) |
| showFeedBackOnSingleLink | () | method |
public function showFeedBackOnSingleLink(link:DiagramLink):voidHightlights the link and disable feedback effect on all the others
Parameterslink:DiagramLink — DiagramLink to highlight
|
| sortSpritesByPlacement | () | method |
protected function sortSpritesByPlacement(sprites:Array, vertical:Boolean = true, policy:uint = 0):voidParameters
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():voidStops 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.
prop:String — The name of the style property, or null if all styles for this DiagramView have changed.
|
| syncReferences | () | method |
public function syncReferences():voidAsk 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():voidAdds 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.
XML — SVG representation of this DiagramView Instance.
|
| toXML | () | method |
public function toXML():XMLWrites 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>
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():voidUngroups selected DiagramGroup instances.
| unregisterAction | () | method |
public function unregisterAction(aclass:Class):BooleanUnreegisters a Diagram Action considered by the different parts of this DiagramView.
Parametersaclass:Class — Diagram Action class instance to be removed.
|
Boolean — Diagram Action unregistration success.
|
| unregisterTool | () | method |
public function unregisterTool(aclass:Class):BooleanUnregisters a Diagram Tool used by the different parts of this DiagramView.
Parametersaclass:Class — Diagram Tool class instance to be removed.
|
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.
w:Number — Width of the component.
|
|
h:Number — Height of the component.
|
| columnCreationRequest | event |
| diagramColumnCaptionDoubleClicked | event |
com.kapit.diagram.DiagramEvent
com.kapit.diagram.DiagramEvent.DIAGRAM_COLUMN_CAPTION_DOUBLE_CLICKED
Dispatched when a column caption is double clicked.
| diagramDefaultMode | event |
com.kapit.diagram.DiagramEvent
com.kapit.diagram.DiagramEvent.DIAGRAM_DEFAULT_MODE_SET
Dispatched when default mode is set.
| diagramGroupCreated | event |
com.kapit.diagram.DiagramEvent
com.kapit.diagram.DiagramEvent.DIAGRAM_GROUP_CREATED
Dispatched when a group is created.
| diagramGroupUngrouped | event |
com.kapit.diagram.DiagramEvent
com.kapit.diagram.DiagramEvent.DIAGRAM_GROUP_UNGROUPED
Dispatched when a group is deleted.
| diagramHandMode | event |
com.kapit.diagram.DiagramEvent
com.kapit.diagram.DiagramEvent.DIAGRAM_HAND_MODE_SET
Dispatched when hand mode is set.
| diagramLaneCaptionDoubleClicked | event |
com.kapit.diagram.DiagramEvent
com.kapit.diagram.DiagramEvent.DIAGRAM_LANE_CAPTION_DOUBLE_CLICKED
Dispatched when a lane caption is double clicked.
| diagramLinkMode | event |
com.kapit.diagram.DiagramEvent
com.kapit.diagram.DiagramEvent.DIAGRAM_LINK_MODE_SET
Dispatched when link mode is set.
| diagramModified | event |
com.kapit.diagram.DiagramEvent
com.kapit.diagram.DiagramEvent.DIAGRAM_MODIFIED
Dispatched when the diagram is modified.
| diagramPanelCaptionDoubleClicked | event |
com.kapit.diagram.DiagramEvent
com.kapit.diagram.DiagramEvent.DIAGRAM_PANEL_CAPTION_DOUBLE_CLICKED
Dispatched when a panel caption is double clicked.
| diagramTransformMode | event |
com.kapit.diagram.DiagramEvent
com.kapit.diagram.DiagramEvent.DIAGRAM_TRANSFORM_MODE_SET
Dispatched when transform mode is set.
| diagramZoomMode | event |
com.kapit.diagram.DiagramEvent
com.kapit.diagram.DiagramEvent.DIAGRAM_ZOOM_MODE_SET
Dispatched when zoom mode is set.
| dragEventDragging | event |
com.kapit.diagram.DiagramDragEvent
com.kapit.diagram.DiagramDragEvent.DRAGGING
Dispatched when the user moves around the mouse while a drag operation is pending
| dragEventFinishedWithGroup | event |
com.kapit.diagram.DiagramDragEvent
com.kapit.diagram.DiagramDragEvent.DRAG_FINISHED_WITH_GROUP
Dispatched after the drag operation has completed and before the ungroup of the selection
| dragEventFinishedWithoutGroup | event |
com.kapit.diagram.DiagramDragEvent
com.kapit.diagram.DiagramDragEvent.DRAG_FINISHED_WITHOUT_GROUP
Dispatched after the drag operation has completed and after the ungroup of the selection
| dragEventStarted | event |
com.kapit.diagram.DiagramDragEvent
com.kapit.diagram.DiagramDragEvent.DRAG_STARTED
Dispatched when the user initiates a drag operation
| elementCreated | event |
com.kapit.diagram.DiagramEvent
com.kapit.diagram.DiagramEvent.ELEMENT_CREATED
Dispatched when an element is added to the diagram.
| elementLoaded | event |
com.kapit.diagram.DiagramEvent
com.kapit.diagram.DiagramEvent.ELEMENT_LOADED
Dispatched when an element is loaded from XML into the diagrammer.
| elementMoved | event |
com.kapit.diagram.DiagramEvent
com.kapit.diagram.DiagramEvent.ELEMENT_MOVED
Dispatched when an element of the diagram is moved.
| elementPropertyChanged | event |
com.kapit.diagram.DiagramEvent
com.kapit.diagram.DiagramEvent.ELEMENT_PROPERTY_CHANGED
Dispatched when an element property is modified.
| elementRemoved | event |
com.kapit.diagram.DiagramEvent
com.kapit.diagram.DiagramEvent.ELEMENT_REMOVED
Dispatched when the whole selection is removed from the diagram.
| elementResizeFinished | event |
com.kapit.diagram.DiagramEvent
com.kapit.diagram.DiagramEvent.ELEMENT_RESIZE_FINISHED
Dispatched when the user has finished resizing an element.
| elementResizeProgress | event |
com.kapit.diagram.DiagramEvent
com.kapit.diagram.DiagramEvent.ELEMENT_RESIZE_PROGRESS
Dispatched while an element is resized.
| elementResizeStarted | event |
com.kapit.diagram.DiagramEvent
com.kapit.diagram.DiagramEvent.ELEMENT_RESIZE_STARTED
Dispatched when an element start to be resized by the user.
| laneCreationRequest | event |
com.kapit.diagram.DiagramEvent
com.kapit.diagram.DiagramEvent.LANE_CREATIONREQUEST
Dispatched when an asynchronouslane creation request occurs.
| linkScopeChanged | event |
com.kapit.diagram.DiagramEvent
com.kapit.diagram.DiagramEvent.LINK_SCOPECHANGED
Dispatched when a link scope changed.
| panelCreationRequest | event |
com.kapit.diagram.DiagramEvent
com.kapit.diagram.DiagramEvent.PANEL_CREATIONREQUEST
Dispatched when an asynchronous panel creation request occurs.
| selectionChanged | event |
com.kapit.diagram.DiagramEvent
com.kapit.diagram.DiagramEvent.SELECTION_CHANGED
Dispatched when the selection of objects in the diagram changed.
| spriteLaneChanged | event |
com.kapit.diagram.DiagramEvent
com.kapit.diagram.DiagramEvent.SPRITE_LANECHANGED
Dispatched when a sprite is moved from one lane to another.
| DEFAULT_DOCHEIGHT | constant |
protected static const DEFAULT_DOCHEIGHT:Number = 2879Default height of the SVG representation of this DiagramView.
See also
| DEFAULT_DOCWIDTH | constant |
protected static const DEFAULT_DOCWIDTH:Number = 2879Default width of the SVG representation of this DiagramView.
See also
| HORIZONTAL_ALIGNEMENT_CENTERED | constant |
public static const HORIZONTAL_ALIGNEMENT_CENTERED:uint = 0Horizontal center alignement
See also
| HORIZONTAL_ALIGNEMENT_LEFT | constant |
public static const HORIZONTAL_ALIGNEMENT_LEFT:uint = 2Horizontal left alignement
See also
| HORIZONTAL_ALIGNEMENT_RIGHT | constant |
public static const HORIZONTAL_ALIGNEMENT_RIGHT:uint = 1Horizontal right alignement
See also
| HORIZONTAL_DISTRIBUTION_CENTERED | constant |
public static const HORIZONTAL_DISTRIBUTION_CENTERED:uint = 9Horizontal distribution of center
See also
| HORIZONTAL_DISTRIBUTION_LEFT | constant |
public static const HORIZONTAL_DISTRIBUTION_LEFT:uint = 10Horizontal distribution of left
See also
| HORIZONTAL_DISTRIBUTION_RIGHT | constant |
public static const HORIZONTAL_DISTRIBUTION_RIGHT:uint = 11Horizontal distribution of right
See also
| HORIZONTAL_EVEN_SPACING | constant |
public static const HORIZONTAL_EVEN_SPACING:uint = 13Horizontal event spacing
See also
| LIB_LINK_MODE | constant |
public static const LIB_LINK_MODE:uint = 0Link can be created using link zone on SVG library
See also
| MANUAL_LINK_MODE | constant |
public static const MANUAL_LINK_MODE:uint = 1Link are created manually by clicking on sprites.
See also
| NO_LINK_MODE | constant |
public static const NO_LINK_MODE:uint = 2Link can not be created. Used to disable linking using link zone
See also
| VERTICAL_ALIGNEMENT_BOTTOM | constant |
public static const VERTICAL_ALIGNEMENT_BOTTOM:uint = 5Vertical bottom alignement
See also
| VERTICAL_ALIGNEMENT_CENTERED | constant |
public static const VERTICAL_ALIGNEMENT_CENTERED:uint = 3Vertical center alignement
See also
| VERTICAL_ALIGNEMENT_TOP | constant |
public static const VERTICAL_ALIGNEMENT_TOP:uint = 4Vertical top alignement
See also
| VERTICAL_DISTRIBUTION_BOTTOM | constant |
public static const VERTICAL_DISTRIBUTION_BOTTOM:uint = 7Vertical distribution of bottom
See also
| VERTICAL_DISTRIBUTION_CENTERED | constant |
public static const VERTICAL_DISTRIBUTION_CENTERED:uint = 6Vertical distribution of center
See also
| VERTICAL_DISTRIBUTION_TOP | constant |
public static const VERTICAL_DISTRIBUTION_TOP:uint = 8Vertical distribution of top
See also
| VERTICAL_EVEN_SPACING | constant |
public static const VERTICAL_EVEN_SPACING:uint = 12Vertical even spacing
See also