public class nUIChartingTheme
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
DATA_METAL_THEME
For the data series, pick values from the metal spectrum (loops).
|
static int |
DATA_PASTEL_SPECTRUM_THEME
For the data series, pick values from the lighter pastel theme (loops).
|
static int |
DATA_STANDARD_SPECTRUM_THEME
For the data series, pick values from the standard spectrum (loops).
|
static int |
DATA_THEMES
Number of themes for data series
|
static int |
DATA_TRAFFIC_LIGHT_REVERSED_THEME
For the data series, pick values from the reversed traffic light spectrum (doesn't loop).
|
static int |
DATA_TRAFFIC_LIGHT_THEME
For the data series, pick values from the traffic light spectrum (doesn't loop).
|
static int[] |
DEFAULT_AXIS_COLOR
Default chart axis color
|
static int[] |
DEFAULT_AXIS_LABEL_TEXT_COLOR
Default chart axis label text color
|
static int[] |
DEFAULT_BORDER_COLOR
Default chart edging color
|
static int[] |
DEFAULT_LABEL_TEXT_COLOR
Default chart data label text color
|
static int[] |
DEFAULT_MAJOR_GRIDLINE_COLOR |
static int[] |
DEFAULT_MINOR_GRIDLINE_COLOR
Default chart gridline color
|
static int[] |
DEFAULT_OUTLINING_COLOR
Default chart outlining colour.
|
static int[] |
DEFAULT_TRAFFIC_CHART_INDICATOR_COLOR
Default color for the traffic light chart indicator
|
static int |
STRUCTURE_DARK_ON_LIGHT_THEME
Default theme for handsets that have a lighter background.
|
static int |
STRUCTURE_LIGHT_ON_DARK_THEME
Default theme for handsets that have a dark background.
|
static int |
STRUCTURE_THEMES
Number of structure themes that are available.
|
Constructor and Description |
---|
nUIChartingTheme() |
Modifier and Type | Method and Description |
---|---|
static int |
getDataTheme()
Gets the currently set theme that is used for drawing data values on the chart.
|
static int |
getDefaultAxisColor()
For the current structure theme, gets the default colour to use when drawing the
axis lines themselves.
|
static int |
getDefaultAxisLabelTextColor()
For the current structure theme, gets the default colour to use when drawing the axes labels.
|
static int |
getDefaultBorderColor()
For the current structure theme, gets the default colour to use when drawing a border around the chart.
|
static int |
getDefaultColor(int index,
int max)
For the current data theme, gets the default colour to use for a given colour index out of a maximum.
|
static int |
getDefaultLabelTextColor()
For the current structure theme, gets the default colour to use when labelling axes and chart segments.
|
static int |
getDefaultMajorGridlineColor()
For the current structure theme, gets the default colour to use when drawing major gridlines.
|
static int |
getDefaultMinorGridlineColor()
For the current structure theme, gets the default colour to use when drawing minor gridlines.
|
static int |
getDefaultOutliningColor()
For the current structure theme, gets the default colour used to outline a data segment.
|
static int |
getDefaultTrafficChartIndicatorColor()
For the current structure theme, gets the default colour to use when drawing the
indicator on a traffic chart.
|
static int |
getStructureTheme()
Gets the current theme that is set for drawing structural parts of the chart.
|
static void |
setDataTheme(int data_theme)
Sets the theme from which default values will be pulled when drawing the
data values on the chart.
|
static void |
setStructureTheme(int structure_theme)
Sets the theme from which default values will be pulled when drawing the
structural parts of the chart.
|
public static final int STRUCTURE_DARK_ON_LIGHT_THEME
public static final int STRUCTURE_LIGHT_ON_DARK_THEME
public static final int STRUCTURE_THEMES
public static final int DATA_STANDARD_SPECTRUM_THEME
public static final int DATA_PASTEL_SPECTRUM_THEME
public static final int DATA_METAL_THEME
public static final int DATA_TRAFFIC_LIGHT_THEME
public static final int DATA_TRAFFIC_LIGHT_REVERSED_THEME
public static final int DATA_THEMES
public static final int[] DEFAULT_BORDER_COLOR
public static final int[] DEFAULT_OUTLINING_COLOR
public static final int[] DEFAULT_LABEL_TEXT_COLOR
public static final int[] DEFAULT_AXIS_LABEL_TEXT_COLOR
public static final int[] DEFAULT_TRAFFIC_CHART_INDICATOR_COLOR
public static final int[] DEFAULT_AXIS_COLOR
public static final int[] DEFAULT_MINOR_GRIDLINE_COLOR
public static final int[] DEFAULT_MAJOR_GRIDLINE_COLOR
public static void setStructureTheme(int structure_theme) throws java.lang.IllegalArgumentException
structure_theme
- the theme to setjava.lang.IllegalArgumentException
- if structure_theme
is less than 0 or greater
than the highest theme id.public static int getStructureTheme()
public static void setDataTheme(int data_theme) throws java.lang.IllegalArgumentException
data_theme
- java.lang.IllegalArgumentException
- if data_theme
is less than 0 or greater
than the highest theme id.public static int getDataTheme()
public static int getDefaultBorderColor()
public static int getDefaultOutliningColor()
public static int getDefaultLabelTextColor()
public static int getDefaultAxisLabelTextColor()
public static int getDefaultTrafficChartIndicatorColor()
public static int getDefaultAxisColor()
public static int getDefaultMinorGridlineColor()
public static int getDefaultMajorGridlineColor()
public static int getDefaultColor(int index, int max)
index
- the index of the colour.max
- the overall number of colours that this chart will require for its data series.