Package com.illumon.iris.db.plot.themes
Class ThemeImpl
java.lang.Object
com.illumon.iris.db.plot.themes.ThemeImpl
- All Implemented Interfaces:
Theme,Serializable,Cloneable
The theme of a chart.
Sets the default colors and fonts of various parts of a chart, such as
axes, gridlines, and background colors, axes and figure title fonts.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the Axis's color.Sets the Axis's color.axisTickLabelColor(Paint color) Sets the color of the Axis's tick labels.axisTickLabelColor(String color) Sets the color of the Axis's tick labels.axisTicksFont(Font font) Sets the Font of the Axis's tick labels.axisTicksFont(String family, String style, int size) Sets the Font of the Axis's tick labels.axisTitleColor(Paint color) Sets the color of the Axis's title.axisTitleColor(String color) Sets the color of the Axis's title.axisTitleFont(Font font) Sets the Font of the Axis's title.axisTitleFont(String family, String style, int size) Sets the Font of the Axis's title.chartBackgroundColor(Paint color) Sets the color of the Chart's background.chartBackgroundColor(String color) Sets the color of the Chart's background.chartTitleColor(Paint color) Sets the color of the Chart's title.chartTitleColor(String color) Sets the color of the Chart's title.chartTitleFont(Font font) Sets the Font of the Chart's title.chartTitleFont(String family, String style, int size) Sets the Font of the Chart's title.copy()Deep copy of this theme.booleanfigureTextColor(Paint color) Defines the color of the default Font of the Figure's text.figureTextColor(String color) Defines the color of the default Font of the Figure's text.figureTextFont(Font font) Defines the default Font of the Figure's text.figureTextFont(String family, String style, int size) Defines the default Font of the Figure's text.figureTitleColor(Paint color) Sets the color of the Figure's title.figureTitleColor(String color) Sets the color of the default Font of the Figure's text.figureTitleFont(Font font) Sets the Font of the Figure's title.figureTitleFont(String family, String style, int size) Sets the Font of the Figure's title.Gets the color of the Axes.Gets thePaintused for the color of each tick label.Gets the font used for the Axis's title.Gets the font used for the Axis's title.Gets the color used for the background of the Chart.Gets the font used for the Chart's title.booleanbooleanGets thePaintof the figure's text.Gets theFontof the figure's text.Gets the color used for the title of the Figure.Gets the font used for the Figure's title.Gets the font used for the Chart's legend.Gets the color used for the legend's font.getName()Gets the name of this theme.Gets the color used for point labels.Gets the font used for point labels.getSeriesColor(int i) Gets the color of thei-th series in the ChartGets theColorPaletteused for eachChart.gridLineColor(Paint color) Sets the color of the Chart's grid lines.gridLineColor(String color) Sets the color of the Chart's grid lines.gridLinesVisible(boolean visible) gridLinesVisible(String visible) inthashCode()legendFont(Font font) Sets the Font of the legend's text.legendFont(String family, String style, int size) Sets the Font of the legend's text.legendTextColor(Paint color) Sets the color of the legned's text.legendTextColor(String color) Sets the color of the legend's text.Sets the name of the ThemepointLabelColor(Paint color) Sets the color used for point labels.pointLabelColor(String color) Sets the color used for point labels.pointLabelFont(Font font) Sets the font used for point labels.pointLabelFont(String family, String style, int size) Sets the font used for point labels.seriesColorGenerator(ColorPalette seriesColorPalette) Sets the ColorPalette of this Theme.xGridLinesVisible(boolean visible) xGridLinesVisible(String visible) yGridLinesVisible(boolean visible) yGridLinesVisible(String visible)
-
Constructor Details
-
ThemeImpl
public ThemeImpl()
-
-
Method Details
-
getName
Description copied from interface:ThemeGets the name of this theme. -
getFigureTitleFont
Description copied from interface:ThemeGets the font used for the Figure's title.- Specified by:
getFigureTitleFontin interfaceTheme- Returns:
- Figure's title font
-
getFigureTitleColor
Description copied from interface:ThemeGets the color used for the title of the Figure.- Specified by:
getFigureTitleColorin interfaceTheme- Returns:
- color of the Figure's title
-
getChartTitleFont
Description copied from interface:ThemeGets the font used for the Chart's title.- Specified by:
getChartTitleFontin interfaceTheme- Returns:
- Chart's title font
-
getChartBackgroundColor
Description copied from interface:ThemeGets the color used for the background of the Chart.- Specified by:
getChartBackgroundColorin interfaceTheme- Returns:
- background color of the Chart
-
getLegendFont
Description copied from interface:ThemeGets the font used for the Chart's legend.- Specified by:
getLegendFontin interfaceTheme- Returns:
- legend's font
-
getLegendTextColor
Description copied from interface:ThemeGets the color used for the legend's font.- Specified by:
getLegendTextColorin interfaceTheme- Returns:
- color of the legend's font
-
getPointLabelFont
Description copied from interface:ThemeGets the font used for point labels.- Specified by:
getPointLabelFontin interfaceTheme- Returns:
- font used for point labels.
-
getPointLabelColor
Description copied from interface:ThemeGets the color used for point labels.- Specified by:
getPointLabelColorin interfaceTheme- Returns:
- color used for point labels.
-
getAxisColor
Description copied from interface:ThemeGets the color of the Axes.- Specified by:
getAxisColorin interfaceTheme- Returns:
- color of the Axes
-
getAxisTitleFont
Description copied from interface:ThemeGets the font used for the Axis's title.- Specified by:
getAxisTitleFontin interfaceTheme- Returns:
- Axis's title's font
-
getAxisTicksFont
Description copied from interface:ThemeGets the font used for the Axis's title.- Specified by:
getAxisTicksFontin interfaceTheme- Returns:
- Axis's title's font
-
getSeriesColor
Description copied from interface:ThemeGets the color of thei-th series in the Chart- Specified by:
getSeriesColorin interfaceTheme- Parameters:
i- color index- Returns:
- i-th color of the Chart's
ColorPalette
-
getFigureTextColor
Description copied from interface:ThemeGets thePaintof the figure's text.- Specified by:
getFigureTextColorin interfaceTheme- Returns:
Paintof the figure's text
-
getFigureTextFont
Description copied from interface:ThemeGets theFontof the figure's text.- Specified by:
getFigureTextFontin interfaceTheme- Returns:
Fontof the figure's text
-
getChartTitleColor
Description copied from interface:Theme- Specified by:
getChartTitleColorin interfaceTheme- Returns:
Paintused for the title of eachChart
-
getGridLineColor
Description copied from interface:Theme- Specified by:
getGridLineColorin interfaceTheme- Returns:
Paintof eachChart's text
-
getDisplayXGridLines
public boolean getDisplayXGridLines()- Specified by:
getDisplayXGridLinesin interfaceTheme- Returns:
- whether to draw the grid lines in the x direction
-
getDisplayYGridLines
public boolean getDisplayYGridLines()- Specified by:
getDisplayYGridLinesin interfaceTheme- Returns:
- whether to draw the grid lines in the y direction
-
getAxisTitleColor
Description copied from interface:Theme- Specified by:
getAxisTitleColorin interfaceTheme- Returns:
Paintused for the color of eachAxis
-
getAxisTickLabelColor
Description copied from interface:ThemeGets thePaintused for the color of each tick label.- Specified by:
getAxisTickLabelColorin interfaceTheme- Returns:
Paintused for the color of each tick label
-
getSeriesColorPalette
Description copied from interface:ThemeGets theColorPaletteused for eachChart.- Specified by:
getSeriesColorPalettein interfaceTheme- Returns:
ColorPaletteused for eachChart
-
copy
Description copied from interface:ThemeDeep copy of this theme. -
name
Description copied from interface:ThemeSets the name of the Theme -
figureTextFont
Description copied from interface:ThemeDefines the default Font of the Figure's text. If no Font is set for one of the Theme's properties, this font is used.- Specified by:
figureTextFontin interfaceTheme- Parameters:
font- font- Returns:
- this Theme
-
figureTextFont
Description copied from interface:ThemeDefines the default Font of the Figure's text. If no Font is set for one of the Theme's properties, this font is used.- Specified by:
figureTextFontin interfaceTheme- Parameters:
family- family; if null, set to Arialstyle- style; if null, set toFont.FontStylePLAINsize- the point size of the Font- Returns:
- this Theme
-
figureTextColor
Description copied from interface:ThemeDefines the color of the default Font of the Figure's text. If no Color is set for one of the Theme's properties, this color is used.- Specified by:
figureTextColorin interfaceTheme- Parameters:
color- color- Returns:
- this Theme
-
figureTextColor
Description copied from interface:ThemeDefines the color of the default Font of the Figure's text. If no Color is set for one of the Theme's properties, this color is used.- Specified by:
figureTextColorin interfaceTheme- Parameters:
color- color- Returns:
- this Theme
-
figureTitleFont
Description copied from interface:ThemeSets the Font of the Figure's title.- Specified by:
figureTitleFontin interfaceTheme- Parameters:
font- font- Returns:
- this Theme
-
figureTitleFont
Description copied from interface:ThemeSets the Font of the Figure's title.- Specified by:
figureTitleFontin interfaceTheme- Parameters:
family- font family; if null, set to Arialstyle- font style; if null, set toFont.FontStylePLAINsize- the point size of the Font- Returns:
- this Theme
-
figureTitleColor
Description copied from interface:ThemeSets the color of the Figure's title.- Specified by:
figureTitleColorin interfaceTheme- Parameters:
color- color- Returns:
- this Theme
-
figureTitleColor
Description copied from interface:ThemeSets the color of the default Font of the Figure's text. If no Color is set for one of the Theme's properties, this color is used.- Specified by:
figureTitleColorin interfaceTheme- Parameters:
color- color- Returns:
- this Theme
-
chartTitleFont
Description copied from interface:ThemeSets the Font of the Chart's title.- Specified by:
chartTitleFontin interfaceTheme- Parameters:
font- font- Returns:
- this Theme
-
chartTitleFont
Description copied from interface:ThemeSets the Font of the Chart's title.- Specified by:
chartTitleFontin interfaceTheme- Parameters:
family- font family; if null, set to Arialstyle- font style; if null, set toFont.FontStylePLAINsize- the point size of the Font- Returns:
- this Theme
-
chartTitleColor
Description copied from interface:ThemeSets the color of the Chart's title.- Specified by:
chartTitleColorin interfaceTheme- Parameters:
color- color- Returns:
- this Theme
-
chartTitleColor
Description copied from interface:ThemeSets the color of the Chart's title.- Specified by:
chartTitleColorin interfaceTheme- Parameters:
color- color- Returns:
- this Theme
-
chartBackgroundColor
Description copied from interface:ThemeSets the color of the Chart's background.- Specified by:
chartBackgroundColorin interfaceTheme- Parameters:
color- color- Returns:
- this Theme
-
chartBackgroundColor
Description copied from interface:ThemeSets the color of the Chart's background.- Specified by:
chartBackgroundColorin interfaceTheme- Parameters:
color- color- Returns:
- this Theme
-
gridLineColor
Description copied from interface:ThemeSets the color of the Chart's grid lines.- Specified by:
gridLineColorin interfaceTheme- Parameters:
color- color- Returns:
- this Theme
-
gridLineColor
Description copied from interface:ThemeSets the color of the Chart's grid lines.- Specified by:
gridLineColorin interfaceTheme- Parameters:
color- color- Returns:
- this Theme
-
gridLinesVisible
- Specified by:
gridLinesVisiblein interfaceTheme- Parameters:
visible- whether grid lines will be drawn- Returns:
- this Theme
-
gridLinesVisible
- Specified by:
gridLinesVisiblein interfaceTheme- Parameters:
visible- whether grid lines will be drawn- Returns:
- this Theme
-
xGridLinesVisible
- Specified by:
xGridLinesVisiblein interfaceTheme- Parameters:
visible- whether grid lines in the x direction will be drawn- Returns:
- this Theme
-
xGridLinesVisible
- Specified by:
xGridLinesVisiblein interfaceTheme- Parameters:
visible- whether grid lines in the x direction will be drawn- Returns:
- this Theme
-
yGridLinesVisible
- Specified by:
yGridLinesVisiblein interfaceTheme- Parameters:
visible- whether grid lines in the y direction will be drawn- Returns:
- this Theme
-
yGridLinesVisible
- Specified by:
yGridLinesVisiblein interfaceTheme- Parameters:
visible- whether grid lines in the y direction will be drawn- Returns:
- this Theme
-
axisColor
Description copied from interface:ThemeSets the Axis's color. -
axisColor
Description copied from interface:ThemeSets the Axis's color. -
axisTitleFont
Description copied from interface:ThemeSets the Font of the Axis's title.- Specified by:
axisTitleFontin interfaceTheme- Parameters:
font- font- Returns:
- this Theme
-
axisTitleFont
Description copied from interface:ThemeSets the Font of the Axis's title.- Specified by:
axisTitleFontin interfaceTheme- Parameters:
family- font family; if null, set to Arialstyle- font style; if null, set toFont.FontStylePLAINsize- the point size of the Font- Returns:
- this Theme
-
axisTitleColor
Description copied from interface:ThemeSets the color of the Axis's title.- Specified by:
axisTitleColorin interfaceTheme- Parameters:
color- color- Returns:
- this Theme
-
axisTitleColor
Description copied from interface:ThemeSets the color of the Axis's title.- Specified by:
axisTitleColorin interfaceTheme- Parameters:
color- color- Returns:
- this Theme
-
axisTicksFont
Description copied from interface:ThemeSets the Font of the Axis's tick labels.- Specified by:
axisTicksFontin interfaceTheme- Parameters:
font- font- Returns:
- this Theme
-
axisTicksFont
Description copied from interface:ThemeSets the Font of the Axis's tick labels.- Specified by:
axisTicksFontin interfaceTheme- Parameters:
family- font family; if null, set to Arialstyle- font style; if null, set toFont.FontStylePLAINsize- the point size of the Font- Returns:
- this Theme
-
axisTickLabelColor
Description copied from interface:ThemeSets the color of the Axis's tick labels.- Specified by:
axisTickLabelColorin interfaceTheme- Parameters:
color- color- Returns:
- this Theme
-
axisTickLabelColor
Description copied from interface:ThemeSets the color of the Axis's tick labels.- Specified by:
axisTickLabelColorin interfaceTheme- Parameters:
color- color- Returns:
- this Theme
-
legendFont
Description copied from interface:ThemeSets the Font of the legend's text.- Specified by:
legendFontin interfaceTheme- Parameters:
font- font- Returns:
- this Theme
-
legendFont
Description copied from interface:ThemeSets the Font of the legend's text.- Specified by:
legendFontin interfaceTheme- Parameters:
family- font family; if null, set to Arialstyle- font style; if null, set toFont.FontStylePLAINsize- the point size of the Font- Returns:
- this Theme
-
legendTextColor
Description copied from interface:ThemeSets the color of the legned's text.- Specified by:
legendTextColorin interfaceTheme- Parameters:
color- color- Returns:
- this Theme
-
legendTextColor
Description copied from interface:ThemeSets the color of the legend's text.- Specified by:
legendTextColorin interfaceTheme- Parameters:
color- color- Returns:
- this Theme
-
pointLabelFont
Description copied from interface:ThemeSets the font used for point labels.- Specified by:
pointLabelFontin interfaceTheme- Parameters:
font- font- Returns:
- this Theme.
-
pointLabelFont
Description copied from interface:ThemeSets the font used for point labels.- Specified by:
pointLabelFontin interfaceTheme- Parameters:
family- font family; if null, set to Arialstyle- font style; if null, set toFont.FontStylePLAINsize- the point size of the Font- Returns:
- this Theme.
-
pointLabelColor
Description copied from interface:ThemeSets the color used for point labels.- Specified by:
pointLabelColorin interfaceTheme- Parameters:
color- point label color- Returns:
- this Theme.
-
pointLabelColor
Description copied from interface:ThemeSets the color used for point labels.- Specified by:
pointLabelColorin interfaceTheme- Parameters:
color- point label color- Returns:
- this Theme.
-
seriesColorGenerator
Description copied from interface:ThemeSets the ColorPalette of this Theme.- Specified by:
seriesColorGeneratorin interfaceTheme- Parameters:
seriesColorPalette- color palette- Returns:
- this Theme
-
equals
-
hashCode
public int hashCode()
-