rwlogo
Rogue Wave Views 5.6

Rogue Wave Views
Charts Package API Reference Guide

Product Documentation:

Rogue Wave Views
Documentation Home

IlvStackedPolygonChartDisplayer Class Reference

Displays data sets as stacked areas. More...

#include <ilviews/charts/stacked.h>

Inheritance diagram for IlvStackedPolygonChartDisplayer:
IlvStackedChartDisplayer IlvCompositeChartDisplayer IlvAbstractChartDisplayer

List of all members.

Public Member Functions

 IlvStackedPolygonChartDisplayer (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 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).

img_stackedpolygon.gif
img_stackedpolygon_polar.gif
See also:
IlvStackedChartDisplayer.

Constructor & Destructor Documentation

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

Constructor.

Initializes a new IlvStackedPolygonChartDisplayer object with count child displayers.

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

Member Function Documentation

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.

Returns:
A copy of the current object.

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.

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.

 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

© 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.