rwlogo
Rogue Wave Views 5.5.1

Rogue Wave Views
Charts Package API Reference Guide

Product Documentation:

Rogue Wave Views
Documentation Home

IlvStackedBarChartDisplayer Class Reference

Displays data sets as stacked bars. More...

#include <ilviews/charts/stacked.h>

Inheritance diagram for IlvStackedBarChartDisplayer:
IlvStackedChartDisplayer IlvCompositeChartDisplayer IlvAbstractChartDisplayer

List of all members.

Public Member Functions

 IlvStackedBarChartDisplayer (IlUInt count, IlvPalette *const *palettes=0, IlBoolean stacked100PerCent=IlFalse)
 Constructor.
virtual IlvAbstractChartDisplayercopy () const
 Virtual copy constructor.

Protected Member Functions

virtual IlvAbstractChartDisplayercreateDisplayer (IlUInt index, IlvPalette *palette=0)
 Defines the child displayers that will be created by default to compose the current displayer.

Detailed Description

Displays data sets as stacked bars.

Library: ilvcharts

This class is a subclass of IlvStackedChartDisplayer which allows you to represent data with stacked bars.

The stacked bar displayer is a composite displayer that is composed of as many bar displayers as the number of data sets you want to be stacked (see the IlvBarChartDisplayer class).

The stacked bar displayer displays as many data sets as you want. The data sets that are set on this displayer are represented by bars. 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 bar displayer in a Cartesian chart (on the left) and a polar chart (on the right).

img_stackedbar.gif
img_stackedbar_polar.gif
See also:
IlvStackedChartDisplayer.

Constructor & Destructor Documentation

IlvStackedBarChartDisplayer::IlvStackedBarChartDisplayer ( IlUInt  count,
IlvPalette *const *  palettes = 0,
IlBoolean  stacked100PerCent = IlFalse 
)

Constructor.

Initializes a new IlvStackedBarChartDisplayer object with count child displayers.

Parameters:
count The number of child displayers that are created.
palettes The palettes that will be used by 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%.

Member Function Documentation

virtual IlvAbstractChartDisplayer* IlvStackedBarChartDisplayer::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.

Returns:
A copy of the current object.

Reimplemented from IlvStackedChartDisplayer.

virtual IlvAbstractChartDisplayer* IlvStackedBarChartDisplayer::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 IlvBarChartDisplayer. See the IlvCompositeChartDisplayer::createDisplayer method for more details.

Parameters:
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.