rwlogo
Rogue Wave Views 5.6

Rogue Wave Views
Charts Package API Reference Guide

Product Documentation:

Rogue Wave Views
Documentation Home

IlvChartDefaultColors Class Reference

Repository of predefined colors. More...

#include <ilviews/charts/display.h>

List of all members.

Public Member Functions

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

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:
display The 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:
colNb the index number of the color
Returns:
An IlvColor.
IlUInt IlvChartDefaultColors::getNbColors (  )  const

Returns the number of predefined colors.

Returns:
The number of predefined colors.
 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.