You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The draw method on the main TreeMap class draws once the layout managers change. It should really maintain all the layout managers in an internal Array and draw them all at once. This also allows things like redraw without having to compute the rectangles all over again.
public function draw():void{
var rects:Array = currentLayoutManager.getRects();
for each(var treeRect:TreeRect in rects){
var renderer:DisplayObject = new _renderer() as DisplayObject;
addChild(renderer);
ITreeMapRenderer(renderer).draw(this, treeRect);
renderer.x = treeRect.rect.x
renderer.y = treeRect.rect.y;
}
}
The text was updated successfully, but these errors were encountered:
The draw method on the main TreeMap class draws once the layout managers change. It should really maintain all the layout managers in an internal Array and draw them all at once. This also allows things like redraw without having to compute the rectangles all over again.
public function draw():void{
The text was updated successfully, but these errors were encountered: