Package | com.yworks.graph.anim |
Class | public class LayoutMorpherWrapper |
Inheritance | LayoutMorpherWrapper flash.events.EventDispatcher |
GraphMorpher
for use with
LayoutGraph
instances.
See also
Property | Defined By | ||
---|---|---|---|
duration : Number [write-only]
The preferred duration in milliseconds. | LayoutMorpherWrapper | ||
easingFunction : Function [write-only]
The easing function used for the animation tween. | LayoutMorpherWrapper | ||
newBounds : IRectangle [write-only]
The new bounds of the graph. | LayoutMorpherWrapper | ||
newViewPoint : Point [write-only]
The view point the graph should arrive at. | LayoutMorpherWrapper | ||
newZoom : Number [write-only]
The target zoom value. | LayoutMorpherWrapper |
Method | Defined By | ||
---|---|---|---|
LayoutMorpherWrapper(graphCanvas:GraphCanvasComponent, layout:GraphLayout, newBounds:IRectangle = null, newViewPoint:Point = null, newZoom:Number = -1, tableLayoutConfigurator:TableLayoutConfigurator = null)
Creates a new LayoutMorpherWrapper instance. | LayoutMorpherWrapper | ||
createWrapperForCopiedGraph(graphCanvas:GraphCanvasComponent, clg:CopiedLayoutGraph):LayoutMorpherWrapper [static]
Convenience method to create a LayoutMorpherWrapper that morphs the layout from a
CopiedLayoutGraph to the graph in the given graphCanvas. | LayoutMorpherWrapper | ||
play():void
Starts the animation. | LayoutMorpherWrapper | ||
stop():void
Stops the animation, if it is currently running. | LayoutMorpherWrapper |
Event | Summary | Defined By | ||
---|---|---|---|---|
Dispatched when the graph animation ended. | LayoutMorpherWrapper | |||
Dispatched before the graph animation starts. | LayoutMorpherWrapper |
duration | property |
duration:Number
[write-only] The preferred duration in milliseconds.
public function set duration(value:Number):void
easingFunction | property |
easingFunction:Function
[write-only] The easing function used for the animation tween.
public function set easingFunction(value:Function):void
See also
newBounds | property |
newBounds:IRectangle
[write-only] The new bounds of the graph.
This property is ignored.
public function set newBounds(value:IRectangle):void
newViewPoint | property |
newViewPoint:Point
[write-only] The view point the graph should arrive at.
public function set newViewPoint(value:Point):void
newZoom | property |
newZoom:Number
[write-only] The target zoom value.
public function set newZoom(value:Number):void
LayoutMorpherWrapper | () | Constructor |
public function LayoutMorpherWrapper(graphCanvas:GraphCanvasComponent, layout:GraphLayout, newBounds:IRectangle = null, newViewPoint:Point = null, newZoom:Number = -1, tableLayoutConfigurator:TableLayoutConfigurator = null)
Creates a new LayoutMorpherWrapper instance.
This constructor is suitable for morphing an IGraph
to a layout computed by one of the
layout algorithms:
var adapter:LayoutGraphAdapter = new LayoutGraphAdapter(graph); var layouter:OrthogonalLayouter = new OrthogonalLayouter(); var layout:GraphLayout = layouter.calcLayout(adapter, adapter); var morpher:LayoutMorpherWrapper = new LayoutMorpherWrapper(graphCanvas, layout);Parameters
graphCanvas:GraphCanvasComponent — The GraphCanvasComponent containing the graph the
layout should be morphed into.
| |
layout:GraphLayout — The target layout with respect to the layoutGraph.
| |
newBounds:IRectangle (default = null ) — The target graph bounds.
If none are provided, they will be calculated from the target layout.
This parameter is ignored when the yFiles FLEX library 1.4.x or less is referenced. | |
newViewPoint:Point (default = null ) — The view point to morph to. If none is provided, the current
view point is kept.
| |
newZoom:Number (default = -1 ) — The zoom to morph to. If a value < 0 is provided, the current
zoom is kept.
| |
tableLayoutConfigurator:TableLayoutConfigurator (default = null ) — The TableLayoutConfigurator which was
used to configure the tables for the layout or null if the layout
was not configured for tables.
|
createWrapperForCopiedGraph | () | method |
public static function createWrapperForCopiedGraph(graphCanvas:GraphCanvasComponent, clg:CopiedLayoutGraph):LayoutMorpherWrapper
Convenience method to create a LayoutMorpherWrapper
that morphs the layout from a
CopiedLayoutGraph
to the graph in the given graphCanvas
.
Parameters
graphCanvas:GraphCanvasComponent — The canvas containing the graph to morph the layout to.
| |
clg:CopiedLayoutGraph — The copied layout graph containing the calculated layout.
|
LayoutMorpherWrapper — The created LayoutMorpherWrapper instance.
|
play | () | method |
public function play():void
Starts the animation.
stop | () | method |
public function stop():void
Stops the animation, if it is currently running.
morphEnd | Event |
com.yworks.graph.anim.GraphMorphEvent
GraphMorphEvent.MORPH_END
Dispatched when the graph animation ended.
morphStart | Event |
com.yworks.graph.anim.GraphMorphEvent
GraphMorphEvent.MORPH_START
Dispatched before the graph animation starts.