rwlogo

Rogue Wave Views
Charts Package API Reference Guide

Product Documentation:

Rogue Wave Views
Documentation Home

List of all members | Public Member Functions
IlvChartDefaultColors Class Reference

Repository of predefined colors. More...

#include <ilviews/charts/display.h>

Public Member Functions

 IlvChartDefaultColors (IlvDisplay *display)
 Constructor. More...
 
IlvColorgetColor (IlUInt colNb)
 Returns a predefined color by its number. More...
 
IlUInt getNbColors () const
 Returns the number of predefined colors. More...
 

Detailed Description

Repository of predefined colors.

Library: ilvcharts

This class is used to hold some predefined colors that the displayers can use.

Constructor & Destructor Documentation

IlvChartDefaultColors::IlvChartDefaultColors ( IlvDisplay display)

Constructor.

Creates and initializes an instance of IlvChartDefaultColors.

Parameters
displayThe display where the predefined colors are allocated.

Member Function Documentation

IlvColor* IlvChartDefaultColors::getColor ( IlUInt  colNb)

Returns a predefined color by its number.

The result will never be 0 even if colNb is larger than the number of colors: colNb is reduced to its value modulo the number of colors.

Note that the returned IlvColor is not locked.

Parameters
colNbthe index number of the color
Returns
An IlvColor.
IlUInt IlvChartDefaultColors::getNbColors ( ) const

Returns the number of predefined colors.

Returns
The number of predefined colors.

© Copyright 2014, 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.