Packageflare.vis.data.render
Classpublic class ShapeRenderer
ImplementsIRenderer

Renderer that draws shapes. The ShapeRender uses a ShapePalette instance as needed to look up shape drawing routines based on the DataSprite shape property.

See also

flare.vis.palette.ShapePalette


Public Properties
 PropertyDefined by
  defaultSize : Number
The default size value for drawn shapes.
ShapeRenderer
  instance : ShapeRenderer
[static][read-only] Static ShapeRenderer instance.
ShapeRenderer
Public Methods
 MethodDefined by
  
ShapeRenderer(defaultSize:Number = 6)
Creates a new ShapeRenderer
ShapeRenderer
  
Renders drawing content for the input DataSprite.
ShapeRenderer
Property detail
defaultSizeproperty
public var defaultSize:Number

The default size value for drawn shapes. This value is multiplied by a DataSprite's size property to determine the final size.

instanceproperty 
instance:ShapeRenderer  [read-only]

Static ShapeRenderer instance.

Implementation
    public static function get instance():ShapeRenderer
Constructor detail
ShapeRenderer()constructor
public function ShapeRenderer(defaultSize:Number = 6)

Creates a new ShapeRenderer

Parameters
defaultSize:Number (default = 6) — the default size (radius) for shapes
Method detail
render()method
public function render(d:DataSprite):void

Renders drawing content for the input DataSprite.

Parameters
d:DataSprite — the DataSprite to draw