Packagerdfbrowser.components
Classpublic class CanvasItem
InheritanceCanvasItem Inheritance mx.containers.Canvas

This class creates a canvas object which represents an item of the galaxy. The shape of the item is a circle and its customization parameters are:



Public Properties
 PropertyDefined By
  fill : Number
Value of the property associated to the fill visualization parameter.
CanvasItem
  radius : Number
Value of the property associated to the radius visualization parameter.
CanvasItem
  title : String
Short description of the item.
CanvasItem
  transparency : Number
Value of the property associated to the alpha visualization parameter.
CanvasItem
Public Methods
 MethodDefined By
  
CanvasItem(radius:Number, fill:Number, transparency:Number, colorNormal:uint, colorHighlighted:uint, title:String)
CanvasItem class constructor.
CanvasItem
  
draw():void
This function draws the item.
CanvasItem
  
setAlpha(maxTransparency:Number):void
This function sets the alpha of the item (expressed in percentage).
CanvasItem
  
setFill(maxFill:Number):void
This function sets the fill of the item (expressed in percentage respect the radius of the circle).
CanvasItem
  
setRadius(maxRadius:Number):void
This function sets the radius of the item.
CanvasItem
  
setXY(xPosition:Number, yPosition:Number):void
This function sets the position of the item.
CanvasItem
Property Detail
fillproperty
public var fill:Number

Value of the property associated to the fill visualization parameter.

radiusproperty 
public var radius:Number

Value of the property associated to the radius visualization parameter.

titleproperty 
public var title:String

Short description of the item.

transparencyproperty 
public var transparency:Number

Value of the property associated to the alpha visualization parameter.

Constructor Detail
CanvasItem()Constructor
public function CanvasItem(radius:Number, fill:Number, transparency:Number, colorNormal:uint, colorHighlighted:uint, title:String)

CanvasItem class constructor.

Parameters
radius:Number — Value of the property associated to the radius visualization parameter.
 
fill:Number — Value of the property associated to the fill visualization parameter.
 
transparency:Number — Value of the property associated to the alpha visualization parameter.
 
colorNormal:uint — Color of the outer circle of the item.
 
colorHighlighted:uint — Color of the inner circle of the item.
 
title:String — Shor description of the item.
Method Detail
draw()method
public function draw():void

This function draws the item.

setAlpha()method 
public function setAlpha(maxTransparency:Number):void

This function sets the alpha of the item (expressed in percentage).

Parameters

maxTransparency:Number — Maximum value of the property associated to the alpha parameter.

setFill()method 
public function setFill(maxFill:Number):void

This function sets the fill of the item (expressed in percentage respect the radius of the circle).

Parameters

maxFill:Number — Maximum value of the property associated to the fill parameter.

setRadius()method 
public function setRadius(maxRadius:Number):void

This function sets the radius of the item.

Parameters

maxRadius:Number — Maximum value of the property associated to the radius parameter.

setXY()method 
public function setXY(xPosition:Number, yPosition:Number):void

This function sets the position of the item.

Parameters

xPosition:Number — Coordinate x.
 
yPosition:Number — Coordinate y.