| Package | rdfbrowser.components |
| Class | public class CanvasCluster |
| Inheritance | CanvasCluster mx.containers.Canvas |
| Property | Defined By | ||
|---|---|---|---|
| drawQueue : Array = null
Array of the elements to draw. | CanvasCluster | ||
| Method | Defined By | ||
|---|---|---|---|
CanvasCluster(data:Array, maxRadius:Number, maxFill:Number, maxAlpha:Number)
CanvasCluster class constructor. | CanvasCluster | ||
addCircle(element:CanvasItem):void
This function places the CanvasItem element. | CanvasCluster | ||
checkCollision(element:CanvasItem):Boolean
This functions checks if the CanvasItem element doesn't have points in
common with other element of the galaxy
| CanvasCluster | ||
process(data:Array, maxRadius:Number, maxFill:Number, maxAlpha:Number):void
This function creates the galaxy. | CanvasCluster | ||
| drawQueue | property |
public var drawQueue:Array = nullArray of the elements to draw.
The default value is null.
| CanvasCluster | () | Constructor |
public function CanvasCluster(data:Array, maxRadius:Number, maxFill:Number, maxAlpha:Number)CanvasCluster class constructor.
Parametersdata:Array — Array of CanvasItem elements to draw.
| |
maxRadius:Number | |
maxFill:Number | |
maxAlpha:Number |
| addCircle | () | method |
public function addCircle(element:CanvasItem):voidThis function places the CanvasItem element. It sets the x and y coordinates of the element and introduces it into the "drawn" array.
Parameters
element:CanvasItem — CanvasItem element to draw.
|
| checkCollision | () | method |
public function checkCollision(element:CanvasItem):BooleanThis functions checks if the CanvasItem element doesn't have points in common with other element of the galaxy
Parameters
element:CanvasItem — CanvasItem element to check
|
Boolean — true: the element has points in common with other element (collision).
false: the element has not points in common with other element.
|
| process | () | method |
public function process(data:Array, maxRadius:Number, maxFill:Number, maxAlpha:Number):voidThis function creates the galaxy. It process all the data and draw the elements.
Parameters
data:Array — Array of CanvasItem elements to draw.
| |
maxRadius:Number | |
maxFill:Number | |
maxAlpha:Number |