com.steema.teechart.themes
Class ThemesList

java.lang.Object
  extended by com.steema.teechart.themes.ThemesList

public final class ThemesList
extends java.lang.Object

Title:

Description: ThemesList is a collection of Theme objects.

Copyright (c) 2005-2008 by Steema Software SL. All Rights Reserved.

Company: Steema Software SL

Example:


 ThemesList.applyTheme(myChart.getChart(), new
 ExcelTheme(myChart.getChart()));
 

See Also:
Theme

Constructor Summary
ThemesList()
           
 
Method Summary
static void applyTheme(IBaseChart chart, int index)
          Creates a new instance of index'th Theme and applies it to chart.
static void applyTheme(IBaseChart chart, Theme theme)
          Applies Theme to Chart.
static void applyTheme(IBaseChart chart, Theme theme, int paletteIndex)
          Applies Theme to Chart and sets the Chart palette (if paletteIndex is different than -1).
static java.lang.Class getTheme(int index)
          Returns index'th Theme class in list.
static java.lang.String getThemeDescription(int index)
          Returns the textual description of index'th Theme in list.
static int size()
          Returns the number of registered Chart Theme classes.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ThemesList

public ThemesList()
Method Detail

size

public static int size()
Returns the number of registered Chart Theme classes.

Returns:
int

getTheme

public static java.lang.Class getTheme(int index)
Returns index'th Theme class in list.

Parameters:
index - int
Returns:
Class

applyTheme

public static void applyTheme(IBaseChart chart,
                              int index)
Creates a new instance of index'th Theme and applies it to chart.

Parameters:
chart - IBaseChart
index - int

applyTheme

public static void applyTheme(IBaseChart chart,
                              Theme theme)
Applies Theme to Chart. Color palette is determined by the Theme class.

Parameters:
chart - IBaseChart
theme - Theme

applyTheme

public static void applyTheme(IBaseChart chart,
                              Theme theme,
                              int paletteIndex)
Applies Theme to Chart and sets the Chart palette (if paletteIndex is different than -1).

Parameters:
chart - IBaseChart
theme - Theme
paletteIndex - int

getThemeDescription

public static java.lang.String getThemeDescription(int index)
Returns the textual description of index'th Theme in list.

Parameters:
index - int
Returns:
String
See Also:
Theme