Source for file ThemesList.php
Documentation is available at ThemesList.php
* <p>Description: ThemesList is a collection of Theme objects.</p>
* <p>Copyright (c) 2005-2007 by Steema Software SL. All Rights Reserved.</p>
* <p>Company: Steema Software SL</p>
* <pre><font face="Courier" size="4">
* ThemesList.applyTheme(myChart.getChart(), new
* ExcelTheme(myChart.getChart()));
* @see com.steema.teechart.themes.Theme
public static $OPERATHEME = 0;
public static $BLACKISBLACKTHEME = 1;
public static $DEFAULTTHEME = 2;
public static $EXCELTHEME = 3;
public static $CLASSICTHEME = 4;
public static $XPTHEME = 5;
public static $WEBTHEME = 6;
public static $BUSINESSTHEME = 7;
public static $BLUESKYTHEME = 8;
public static $GRAYSCALETHEME = 9;
* Returns the number of registered Chart Theme classes.
* Returns index'th Theme class in list.
* Creates a new instance of index'th Theme and applies it to chart.
* @param chart IBaseChart
public static function applyTheme($chart, $index) {
self::_applyTheme($chart, new OperaTheme($chart));
self::_applyTheme($chart, new ExcelTheme($chart));
self::_applyTheme($chart, new XPTheme($chart));
self::_applyTheme($chart, new WebTheme($chart));
self::_applyTheme($chart, new Y2009($chart));
* Applies Theme to Chart. Color palette is determined by the Theme class.
* @param chart IBaseChart
self::__applyTheme($chart, $theme, - 1);
* Applies Theme to Chart and sets the Chart palette (if paletteIndex is
* @param chart IBaseChart
* @param paletteIndex int
public static function __applyTheme($chart, $theme, $paletteIndex) {
if ($paletteIndex != - 1) {
* Returns the textual description of index'th Theme in list.
* @see com.steema.teechart.themes.Theme
|