RenderData structures are used by chart elements to store
all of the relevant values and data needed to fully render the chart.
Storing these values in a separate structure lets chart elements
decouple their rendering from their assigned properties
and data as necessary.
This ability is used by the chart effects: effects such as
SeriesInterpolate substitute temporary values calculated from
previous and future renderData structures. Effects such as SeriesSlide
and SeriesZoom substitute temporary RenderData structures
with values calculated to render the effect correctly.
The bounds of all of the items a series displays on screen,
relative to the series's coordinate system.
This value is used by the various effects during rendering.
A series fills in this value when the effect
calls the getElementBounds() method.
A series does not need to fill in this field
unless specifically requested.
cache
property
public var cache:Array
Language Version :
ActionScript 3.0
Product Version :
Flex 3
Runtime Versions :
Flash Player 9, AIR 1.1
The list of ChartItems representing the items
in the series's dataProvider.
elementBounds
property
public var elementBounds:Array
Language Version :
ActionScript 3.0
Product Version :
Flex 3
Runtime Versions :
Flash Player 9, AIR 1.1
An Array of rectangles describing the bounds of the series's
ChartItems, relative to the series's coordinate system.
Effects use this Array
to generate the effect rendering.
An effect calls the getElementBounds() method, which
causes the series to fill in this value.
A series does not need to fill in this field
unless specifically requested.
Effects modify this Array to relect current positions
of the items during the effect duration.
If this value is filled in on the series's renderData,
the series renders itself based on these rectangles
rather than from the series's data.
filteredCache
property
public var filteredCache:Array
Language Version :
ActionScript 3.0
Product Version :
Flex 3
Runtime Versions :
Flash Player 9, AIR 1.1
The list of ChartItems representing the items
in the series's dataProvider that remain after filtering.
length
property
length:uint [read-only]
Language Version :
ActionScript 3.0
Product Version :
Flex 3
Runtime Versions :
Flash Player 9, AIR 1.1
The number of items represented in this render data.
Implementation public function get length():uint
visibleRegion
property
public var visibleRegion:Rectangle
Language Version :
ActionScript 3.0
Product Version :
Flex 3
Runtime Versions :
Flash Player 9, AIR 1.1
The rectangle describing the possible coordinate range
that a series can display on screen.
This value is used by the various effects during rendering.
An effect calls the getElementBounds() method
to fill in this value.
A series does not need to fill in this field
unless specifically requested.
If left null, effects assume the visible region of an element
is the bounding box of the element itself (0, 0, width, height),
expressed relative to the element.
Constructor Detail
RenderData
()
Constructor
public function RenderData(cache:Array = null, filteredCache:Array = null)
Language Version :
ActionScript 3.0
Product Version :
Flex 3
Runtime Versions :
Flash Player 9, AIR 1.1
Constructor.
Parameters
cache:Array (default = null) — The list of ChartItems representing the items
in the series's dataProvider.
filteredCache:Array (default = null) — The list of ChartItems representing the items
in the series's dataProvider that remain after filtering.