Language:

The Free and Open Productivity Suite
Apache OpenOffice 4.1.4 released

Developer's Guide

API

SDK

Tips 'n' Tricks

Miscellaneous


:: com :: sun :: star :: chart2 ::

interface XColorScheme

Methods' Summary
getColorByIndex returns the default color for the nth data series.  
Methods' Details
getColorByIndex
::com::sun::star::util::Color
getColorByIndex( [in] long  nIndex );

Description
returns the default color for the nth data series.

This may be a system wide color or a color coming from a color scheme.

Usually there exist a fixed number of default colors. This method should always return a valid Color. If the index (i) is higher than the number of default colors (n), the method should return the modulus (i mod n), i.e., the colors should repeat in a cyclic way.

Parameter nIndex
The index of the series. This is used to obtain the correct default color.
Top of Page

Apache Software Foundation

Copyright & License | Privacy | Contact Us | Donate | Thanks

Apache and the Apache feather logo are trademarks of The Apache Software Foundation. OpenOffice, OpenOffice.org and the seagull logo are registered trademarks of The Apache Software Foundation. Other names appearing on the site may be trademarks of their respective owners.