rwlogo
Rogue Wave Views 5.6

Rogue Wave Views
Charts Package API Reference Guide

Product Documentation:

Rogue Wave Views
Documentation Home

IlvSideBySideBarChartDisplayer Class Reference

Displays data sets as adjacent bars. More...

#include <ilviews/charts/sidebyside.h>

Inheritance diagram for IlvSideBySideBarChartDisplayer:
IlvSideBySideChartDisplayer IlvCompositeChartDisplayer IlvAbstractChartDisplayer

List of all members.

Public Member Functions

 IlvSideBySideBarChartDisplayer (IlUInt count, IlvPalette *const *palettes=0)
 Constructor.
virtual IlvAbstractChartDisplayercopy () const
 Virtual copy constructor.

Protected Member Functions

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

Detailed Description

Displays data sets as adjacent bars.

Library: ilvcharts

This class is a subclass of IlvSideBySideChartDisplayer which allows you to represent data with side-by-side bars.

The side-by-side bar displayer is a composite displayer that is composed of as many bar displayers as the number of data sets you want to be displayed side by side. (See the IlvBarChartDisplayer class.)

The side-by-side bar displayer displays as many data sets as you want. The data sets that are set on this displayer are represented by bars. The data items of the first data set are represented first. The data items of the second data set are represented next to the data items of the first data set. The data items of the third data set are represented next to the data items of the second data set, 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 side-by-side bar displayer in a Cartesian chart (on the left) and a polar chart (on the right).

img_sidebysidebar.gif
img_sidebysidebar_polar.gif
See also:
IlvSideBySideChartDisplayer.

Constructor & Destructor Documentation

IlvSideBySideBarChartDisplayer::IlvSideBySideBarChartDisplayer ( IlUInt  count,
IlvPalette *const *  palettes = 0 
)

Constructor.

Initializes a new IlvSideBySideBarChartDisplayer 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.

Member Function Documentation

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

virtual IlvAbstractChartDisplayer* IlvSideBySideBarChartDisplayer::createDisplayer ( IlUInt  ,
IlvPalette = 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.

 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.