public final class ThemesList
extends java.lang.Object
Title:
Description: ThemesList is a collection of Theme objects.
Copyright (c) 2005-2019 by Steema Software SL. All Rights Reserved.
Company: Steema Software SL
Example:
ThemesList.applyTheme(myChart.getChart(), new ExcelTheme(myChart.getChart()));
Theme
Constructor and Description |
---|
ThemesList() |
Modifier and Type | Method and Description |
---|---|
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.
|
public static int size()
public static java.lang.Class getTheme(int index)
index
- intpublic static void applyTheme(IBaseChart chart, int index)
chart
- IBaseChartindex
- intpublic static void applyTheme(IBaseChart chart, Theme theme)
chart
- IBaseCharttheme
- Themepublic static void applyTheme(IBaseChart chart, Theme theme, int paletteIndex)
chart
- IBaseCharttheme
- ThemepaletteIndex
- intpublic static java.lang.String getThemeDescription(int index)
index
- intTheme