Packagecom.kapit.diagram.proxies
Classpublic class GroupDiagramProxy
InheritanceGroupDiagramProxy Inheritance DiagramProxy

A proxy beetween a DiagramGroup and the layout algorithms. It enables to apply layout to a group.



Public Properties
 PropertyDefined by
 InheritedanimatedOrganicLayout : AnimatedForceDirectedLayout
DiagramProxy
 InheritedanimationDuration : uint = 1000
DiagramProxy
 InheritedballoonLayout : BalloonLayout
DiagramProxy
 InheritedcenterPoint : Point
DiagramProxy
 InheritedcircularLayout : SingleCycleCircularLayout
DiagramProxy
 InheritedconstraintManager : ConstraintManager
DiagramProxy
 InheriteddefaultLayout : int
DiagramProxy
 InheritededgeLinkMap : Dictionary
DiagramProxy
 InheritedexportSuccess : Boolean
Export status
DiagramProxy
 Inheritedgraph : IGraph
DiagramProxy
 InheritedgroupProxies : Dictionary
Included group proxies to be handled by this Diagram Proxy
DiagramProxy
 InheritedhierarchicalLayout : HierarchicalLayout
DiagramProxy
 InheritedlayoutConstaints : XML
DiagramProxy
 InheritedlayoutConstraints : XML
DiagramProxy
 InheritedlayoutOnDiagramChanged : Boolean
DiagramProxy
 InheritedlinkEdgeMap : Dictionary
DiagramProxy
 InheritedmindMapLayout : MindMapLayout
DiagramProxy
 InheritednodeSpriteMap : Dictionary
DiagramProxy
 InheritedorganicLayout : StaticGEMLayout
DiagramProxy
 InheritedorthogonalLayout : OrthogonalLayout
DiagramProxy
 InheritedradialLayout : RadialLayout
DiagramProxy
  renderer : Object
GroupDiagramProxy
 InheritedselectedProxy : DiagramProxy
Selected Proxy in the DiagramView (the proxy of a selected group in the DiagramView)
DiagramProxy
  source : Object
GroupDiagramProxy
 InheritedspriteNodeMap : Dictionary
DiagramProxy
 InheritedstoredParameters : Array
User defined layout parameters
DiagramProxy
 InheritedsugiyamaLayout : SugiyamaLayout
DiagramProxy
 InheritedtopLevelProxy : DiagramProxy
DiagramProxy
 Inheritedtweeners : Array
Animation tweeners
DiagramProxy
Protected Properties
 PropertyDefined by
 Inherited_constraintNodes : Dictionary
DiagramProxy
 Inherited_edgeLinkMap : Dictionary
DiagramProxy
 Inherited_exportSuccess : Boolean = false
DiagramProxy
 Inherited_finishTime : int
DiagramProxy
 Inherited_graph : IGraph
DiagramProxy
 Inherited_groupProxies : Dictionary
DiagramProxy
 Inherited_linkEdgeMap : Dictionary
DiagramProxy
 Inherited_nodeSpriteMap : Dictionary
DiagramProxy
 Inherited_numberOfIteration : int
DiagramProxy
 Inherited_selectedProxy : DiagramProxy
DiagramProxy
 Inherited_spriteNodeMap : Dictionary
DiagramProxy
 Inherited_startTime : int
DiagramProxy
 Inherited_storedParametersMap : Array
DiagramProxy
 Inherited_topLevelProxy : DiagramProxy
DiagramProxy
 Inherited_tweeners : Array
DiagramProxy
Public Methods
 MethodDefined by
  
GroupDiagramProxy(topLevelProxy:DiagramProxy, graph:IGraph, group:DiagramGroup, groupProxies:Dictionary)
GroupDiagramProxy
 Inherited
addDiagramGroupAsMetaNode(group:DiagramGroup, withExternalLinks:Boolean = true):IGraph
Adds a metanode as a graph to the general graph description of this DiagramProxy from a DiagramGroup instance and returns it.
DiagramProxy
 Inherited
addDiagramLinkAsEdge(link:DiagramLink, customGraph:IGraph = null, customEdgeLinkMap:Dictionary = null, customLinkEdgeMap:Dictionary = null, customSpriteNodeMap:Dictionary = null):IEdge
Adds a edge to the graph description of this DiagramProxy from a DiagramEdge instance and returns it.
DiagramProxy
 Inherited
addDiagramSpriteAsNode(sprite:DiagramSprite, customGraph:IGraph = null, customNodeSpriteMap:Dictionary = null, customSpriteNodeMap:Dictionary = null, customConstraintManager:ConstraintManager = null, customConstraintNodes:Dictionary = null):INode
Adds a node to the graph description of this DiagramProxy from a DiagramSprite instance and returns it.
DiagramProxy
 Inherited
Adds an item (a DiagramObject) to this DiagramProxy (graph and renderer references)
DiagramProxy
 Inherited
DiagramProxy
 Inherited
animateGroupLinks(edges:Array, customTweeners:Array = null, withAnimation:Boolean = true):void
Animates Group In/Out Links
DiagramProxy
 Inherited
doAnimatedTransition(outEdges:Array = null, customGraph:IGraph = null, customNodeSpriteMap:Dictionary = null, customEdgeLinkMap:Dictionary = null, customTweeners:Array = null, withAnimation:Boolean = true, doTransition:Boolean = true):void
Performs an animated transition from old sprites position to new positions grabbed from the graph (usually after layout)
DiagramProxy
  
exportGraph(layoutType:int):void
GroupDiagramProxy
 Inherited
getLayoutFromType(layoutType:int, customGraph:IGraph = null):Layout
Returns a Layout subclass instance according to a layoutType from the Constants class.
DiagramProxy
 Inherited
DiagramProxy
 Inherited
Finalizes a drag operation
DiagramProxy
 Inherited
Handles a drag operation in the rendrer layer and performs required computation
DiagramProxy
 Inherited
DiagramProxy
  
importGraph():IGraph
GroupDiagramProxy
 Inherited
layoutSelection(layoutType:uint, sprites:Array, customOutEdges:Array = null, withAnimation:Boolean = false, doTransition:Boolean = true, tweeners:Array = null, minX:Number = 0, minY:Number = 0):IGraph
DiagramProxy
 Inherited
Removes a DiagramGroup references from this DiagramProxy
DiagramProxy
 Inherited
Removes an item (a DiagramObject) to this DiagramProxy (graph and renderer references)
DiagramProxy
 Inherited
Removes a DiagramLink references from this DiagramProxy
DiagramProxy
 Inherited
Removes a DiagramSprite references from this DiagramProxy
DiagramProxy
 Inherited
Inflicts an ungroup operation in the Diagram to the graph structure and Renderer-GraphLayout maps.
DiagramProxy
 Inherited
DiagramProxy
 Inherited
updateRendererFromGraph(element:IGraphItem, withAnimation:Boolean = true, update:Boolean = false):void
inheritDoc
DiagramProxy
Protected Methods
 MethodDefined by
  
Called when animation is finished
GroupDiagramProxy
 Inherited
Returns an Edge type given a DiagramLinkType
DiagramProxy
 Inherited
getIntermediatePoint(point1:Point, point2:Point, isHorizontal:Boolean):Point
Determines the intermediate point that links two points in an orthogonal fashion
DiagramProxy
 Inherited
Returns a DiagramLinkType according to an edgeType int (from the Constants class)
DiagramProxy
 Inherited
initLayouts():void
DiagramProxy
 Inherited
updateDiagramLinkFromEdge(edge:IEdge, customGraph:IGraph = null, customEdgeLinkMap:Dictionary = null, customTweeners:Array = null, withAnimation:Boolean = true):void
Updates the DiagramLink referenced by a edge (via the map _edgeLinkMap) by applying the edge properties on it (path).
DiagramProxy
 Inherited
updateDiagramSpriteFromNode(node:INode, customGraph:IGraph = null, customNodeSpriteMap:Dictionary = null, customTweeners:Array = null, withAnimation:Boolean = true, update:Boolean = false):void
Updates the DiagramSprite referenced by a node (via the map _nodeSpriteMap) by applying the node properties on it (placement and size).
DiagramProxy
 Inherited
updateEdgeExtremities(edge:IEdge, customGraph:IGraph = null, customEdgeLinkMap:Dictionary = null):void
Updates Edge Extremities given its extremity nodes position.
DiagramProxy
 Inherited
updateEdgePointsFromLink(edge:IEdge, link:DiagramLink):void
Updates edge points from a DiagramLink
DiagramProxy
 Inherited
updateEdgesFromLinks(customGraph:IGraph = null, customedgeLinkMap:Dictionary = null, customNodeSpriteMap:Dictionary = null, customGroupProxies:Dictionary = null):void
Updates graph nodes from their respective sprites
DiagramProxy
 Inherited
Updates node properties (size and position) from a given DiagramSprite
DiagramProxy
 Inherited
updateNodesFromSprites(customGraph:IGraph = null, customNodeSpriteMap:Dictionary = null, customGroupProxies:Dictionary = null):void
Updates graph nodes from their respective sprites
DiagramProxy
  
Validates a group position after a translate animation (occuring when group position is negative)
GroupDiagramProxy
Property detail
rendererproperty
renderer:Object  [read-write]

Implementation
    public function get renderer():Object
    public function set renderer(value:Object):void
sourceproperty 
source:Object  [read-write]

Implementation
    public function get source():Object
    public function set source(value:Object):void
Constructor detail
GroupDiagramProxy()constructor
public function GroupDiagramProxy(topLevelProxy:DiagramProxy, graph:IGraph, group:DiagramGroup, groupProxies:Dictionary)Parameters
topLevelProxy:DiagramProxy
 
graph:IGraph
 
group:DiagramGroup
 
groupProxies:Dictionary
Method detail
animFinishedHandler()method
protected function animFinishedHandler(event:TweenEngineEvent):void

Called when animation is finished

Parameters
event:TweenEngineEvent
exportGraph()method 
public override function exportGraph(layoutType:int):void

Parameters
layoutType:int
importGraph()method 
public override function importGraph():IGraph

Returns
IGraph
validateGroupPosition()method 
protected function validateGroupPosition(event:TweenEngineEvent):void

Validates a group position after a translate animation (occuring when group position is negative)

Parameters
event:TweenEngineEvent