Rogue Wave Views 5.5.1 |
Rogue Wave Views |
Rogue Wave Views Documentation Home |
Displays data sets as stacked areas. More...
#include <ilviews/charts/stacked.h>
Public Member Functions | |
IlvStackedPolygonChartDisplayer (IlUInt count, IlvPalette *const *palettes=0, IlBoolean stacked100PerCent=IlFalse) | |
Constructor. | |
virtual IlvAbstractChartDisplayer * | copy () const |
Virtual copy constructor. | |
Protected Member Functions | |
virtual IlvAbstractChartDisplayer * | createDisplayer (IlUInt index, IlvPalette *palette=0) |
Defines the child displayers that will be created by default to compose the current displayer. |
Displays data sets as stacked areas.
Library: ilvcharts
This class is a subclass of IlvStackedChartDisplayer
which allows you to represent data with stacked polygons.
The stacked polygon displayer is a composite displayer that is composed of as many polygon displayers as the number of data sets you want to be stacked (see the IlvPolygonChartDisplayer
class).
The stacked polygon displayer displays as many data sets as you want. The data sets that are set on this displayer are represented by polygons. The first data set is represented at the bottom. The second one is represented stacked on the first one. The third one is represented stacked on the second one, and so on. This displayer can be used with any type of projection. (See the IlvAbstractProjector
class for more details.)
The following images show data sets represented with a stacked polygon displayer in a Cartesian chart (on the left) and a polar chart (on the right).
IlvStackedChartDisplayer
. IlvStackedPolygonChartDisplayer::IlvStackedPolygonChartDisplayer | ( | IlUInt | count, | |
IlvPalette *const * | palettes = 0 , |
|||
IlBoolean | stacked100PerCent = IlFalse | |||
) |
Constructor.
Initializes a new IlvStackedPolygonChartDisplayer
object with count child displayers.
count | The number of child displayers that are created. | |
palettes | The palettes associated with the created child displayers. If a valid array of palettes is provided, its size must match count. | |
stacked100PerCent | A Boolean indicating whether the data are stacked with the total amount equal to 100%. |
virtual IlvAbstractChartDisplayer* IlvStackedPolygonChartDisplayer::copy | ( | ) | const [virtual] |
Virtual copy constructor.
Creates and returns a copy of the current object. This method must be overloaded in subclasses. It is automatically declared by the DeclareChartDisplayerTypeInfo
macro. The IlvPredefinedChartDisplayerIOMembers
macro lets you define a default implementation, which returns an instance initialized with the copy constructor.
Reimplemented from IlvStackedChartDisplayer.
virtual IlvAbstractChartDisplayer* IlvStackedPolygonChartDisplayer::createDisplayer | ( | IlUInt | index, | |
IlvPalette * | palette = 0 | |||
) | [protected, virtual] |
Defines the child displayers that will be created by default to compose the current displayer.
This method creates an instance of IlvPolygonChartDisplayer
. See the IlvCompositeChartDisplayer::createDisplayer
method for more details.
index | The index at which the created displayer will be added later to the collection of displayers that compose the current displayer. | |
palette | The palette that will be used by the new displayer. |
Reimplemented from IlvCompositeChartDisplayer.
© Copyright 2012, Rogue Wave Software, Inc. All Rights Reserved.
Rogue Wave is a registered trademark of Rogue Wave Software, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.