Package com.illumon.iris.db.plot
Interface Theme
- All Superinterfaces:
Cloneable
,Serializable
- All Known Implementing Classes:
ThemeImpl
public interface Theme extends Cloneable, Serializable
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.
-
Method Summary
Modifier and Type Method Description Theme
axisColor(Paint color)
Sets the Axis's color.Theme
axisColor(String color)
Sets the Axis's color.Theme
axisTickLabelColor(Paint color)
Sets the color of the Axis's tick labels.Theme
axisTickLabelColor(String color)
Sets the color of the Axis's tick labels.Theme
axisTicksFont(Font font)
Sets the Font of the Axis's tick labels.Theme
axisTicksFont(String family, String style, int size)
Sets the Font of the Axis's tick labels.Theme
axisTitleColor(Paint color)
Sets the color of the Axis's title.Theme
axisTitleColor(String color)
Sets the color of the Axis's title.Theme
axisTitleFont(Font font)
Sets the Font of the Axis's title.Theme
axisTitleFont(String family, String style, int size)
Sets the Font of the Axis's title.Theme
chartBackgroundColor(Paint color)
Sets the color of the Chart's background.Theme
chartBackgroundColor(String color)
Sets the color of the Chart's background.Theme
chartTitleColor(Paint color)
Sets the color of the Chart's title.Theme
chartTitleColor(String color)
Sets the color of the Chart's title.Theme
chartTitleFont(Font font)
Sets the Font of the Chart's title.Theme
chartTitleFont(String family, String style, int size)
Sets the Font of the Chart's title.Theme
copy()
Deep copy of this theme.Theme
figureTextColor(Paint color)
Defines the color of the default Font of the Figure's text.Theme
figureTextColor(String color)
Defines the color of the default Font of the Figure's text.Theme
figureTextFont(Font font)
Defines the default Font of the Figure's text.Theme
figureTextFont(String family, String style, int size)
Defines the default Font of the Figure's text.Theme
figureTitleColor(Paint color)
Sets the color of the Figure's title.Theme
figureTitleColor(String color)
Sets the color of the default Font of the Figure's text.Theme
figureTitleFont(Font font)
Sets the Font of the Figure's title.Theme
figureTitleFont(String family, String style, int size)
Sets the Font of the Figure's title.Paint
getAxisColor()
Gets the color of the Axes.Paint
getAxisTickLabelColor()
Gets thePaint
used for the color of each tick label.Font
getAxisTicksFont()
Gets the font used for the Axis's title.Paint
getAxisTitleColor()
Font
getAxisTitleFont()
Gets the font used for the Axis's title.Paint
getChartBackgroundColor()
Gets the color used for the background of the Chart.Paint
getChartTitleColor()
Font
getChartTitleFont()
Gets the font used for the Chart's title.boolean
getDisplayXGridLines()
boolean
getDisplayYGridLines()
Paint
getFigureTextColor()
Gets thePaint
of the figure's text.Font
getFigureTextFont()
Gets theFont
of the figure's text.Paint
getFigureTitleColor()
Gets the color used for the title of the Figure.Font
getFigureTitleFont()
Gets the font used for the Figure's title.Paint
getGridLineColor()
Font
getLegendFont()
Gets the font used for the Chart's legend.Paint
getLegendTextColor()
Gets the color used for the legend's font.String
getName()
Gets the name of this theme.Paint
getPointLabelColor()
Gets the color used for point labels.Font
getPointLabelFont()
Gets the font used for point labels.Paint
getSeriesColor(int i)
Gets the color of thei
-th series in the ChartColorPalette
getSeriesColorPalette()
Gets theColorPalette
used for eachChart
.Theme
gridLineColor(Paint color)
Sets the color of the Chart's grid lines.Theme
gridLineColor(String color)
Sets the color of the Chart's grid lines.Theme
gridLinesVisible(boolean visible)
Theme
gridLinesVisible(String visible)
Theme
legendFont(Font font)
Sets the Font of the legend's text.Theme
legendFont(String family, String style, int size)
Sets the Font of the legend's text.Theme
legendTextColor(Paint color)
Sets the color of the legned's text.Theme
legendTextColor(String color)
Sets the color of the legend's text.Theme
name(String name)
Sets the name of the ThemeTheme
pointLabelColor(Paint color)
Sets the color used for point labels.Theme
pointLabelColor(String color)
Sets the color used for point labels.Theme
pointLabelFont(Font font)
Sets the font used for point labels.Theme
pointLabelFont(String family, String style, int size)
Sets the font used for point labels.Theme
seriesColorGenerator(ColorPalette seriesColorPalette)
Sets the ColorPalette of this Theme.Theme
xGridLinesVisible(boolean visible)
Theme
xGridLinesVisible(String visible)
Theme
yGridLinesVisible(boolean visible)
Theme
yGridLinesVisible(String visible)
-
Method Details
-
copy
Theme copy()Deep copy of this theme.- Returns:
- a deep copy of this theme
-
name
Sets the name of the Theme- Parameters:
name
- case insensitive- Returns:
- this Theme
- Throws:
com.fishlib.base.verify.RequirementFailure
-name
must not be null
-
figureTextFont
Defines the default Font of the Figure's text. If no Font is set for one of the Theme's properties, this font is used.- Parameters:
font
- font- Returns:
- this Theme
-
figureTextFont
Defines the default Font of the Figure's text. If no Font is set for one of the Theme's properties, this font is used.- Parameters:
family
- family; if null, set to Arialstyle
- style; if null, set toFont.FontStyle
PLAINsize
- the point size of the Font- Returns:
- this Theme
-
figureTextColor
Defines 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.- Parameters:
color
- color- Returns:
- this Theme
-
figureTextColor
Defines 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.- Parameters:
color
- color- Returns:
- this Theme
-
figureTitleFont
Sets the Font of the Figure's title.- Parameters:
font
- font- Returns:
- this Theme
-
figureTitleFont
Sets the Font of the Figure's title.- Parameters:
family
- font family; if null, set to Arialstyle
- font style; if null, set toFont.FontStyle
PLAINsize
- the point size of the Font- Returns:
- this Theme
-
figureTitleColor
Sets the color of the Figure's title.- Parameters:
color
- color- Returns:
- this Theme
-
figureTitleColor
Sets 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.- Parameters:
color
- color- Returns:
- this Theme
-
chartTitleFont
Sets the Font of the Chart's title.- Parameters:
font
- font- Returns:
- this Theme
-
chartTitleFont
Sets the Font of the Chart's title.- Parameters:
family
- font family; if null, set to Arialstyle
- font style; if null, set toFont.FontStyle
PLAINsize
- the point size of the Font- Returns:
- this Theme
-
chartTitleColor
Sets the color of the Chart's title.- Parameters:
color
- color- Returns:
- this Theme
-
chartTitleColor
Sets the color of the Chart's title.- Parameters:
color
- color- Returns:
- this Theme
-
chartBackgroundColor
Sets the color of the Chart's background.- Parameters:
color
- color- Returns:
- this Theme
-
chartBackgroundColor
Sets the color of the Chart's background.- Parameters:
color
- color- Returns:
- this Theme
-
gridLineColor
Sets the color of the Chart's grid lines.- Parameters:
color
- color- Returns:
- this Theme
-
gridLineColor
Sets the color of the Chart's grid lines.- Parameters:
color
- color- Returns:
- this Theme
-
gridLinesVisible
- Parameters:
visible
- whether grid lines will be drawn- Returns:
- this Theme
-
gridLinesVisible
- Parameters:
visible
- whether grid lines will be drawn- Returns:
- this Theme
-
xGridLinesVisible
- Parameters:
visible
- whether grid lines in the x direction will be drawn- Returns:
- this Theme
-
xGridLinesVisible
- Parameters:
visible
- whether grid lines in the x direction will be drawn- Returns:
- this Theme
-
yGridLinesVisible
- Parameters:
visible
- whether grid lines in the y direction will be drawn- Returns:
- this Theme
-
yGridLinesVisible
- Parameters:
visible
- whether grid lines in the y direction will be drawn- Returns:
- this Theme
-
axisColor
Sets the Axis's color.- Parameters:
color
- color- Returns:
- this Theme
-
axisColor
Sets the Axis's color.- Parameters:
color
- color- Returns:
- this Theme
-
axisTitleFont
Sets the Font of the Axis's title.- Parameters:
font
- font- Returns:
- this Theme
-
axisTitleFont
Sets the Font of the Axis's title.- Parameters:
family
- font family; if null, set to Arialstyle
- font style; if null, set toFont.FontStyle
PLAINsize
- the point size of the Font- Returns:
- this Theme
-
axisTitleColor
Sets the color of the Axis's title.- Parameters:
color
- color- Returns:
- this Theme
-
axisTitleColor
Sets the color of the Axis's title.- Parameters:
color
- color- Returns:
- this Theme
-
axisTicksFont
Sets the Font of the Axis's tick labels.- Parameters:
font
- font- Returns:
- this Theme
-
axisTicksFont
Sets the Font of the Axis's tick labels.- Parameters:
family
- font family; if null, set to Arialstyle
- font style; if null, set toFont.FontStyle
PLAINsize
- the point size of the Font- Returns:
- this Theme
-
axisTickLabelColor
Sets the color of the Axis's tick labels.- Parameters:
color
- color- Returns:
- this Theme
-
axisTickLabelColor
Sets the color of the Axis's tick labels.- Parameters:
color
- color- Returns:
- this Theme
-
legendFont
Sets the Font of the legend's text.- Parameters:
font
- font- Returns:
- this Theme
-
legendFont
Sets the Font of the legend's text.- Parameters:
family
- font family; if null, set to Arialstyle
- font style; if null, set toFont.FontStyle
PLAINsize
- the point size of the Font- Returns:
- this Theme
-
legendTextColor
Sets the color of the legned's text.- Parameters:
color
- color- Returns:
- this Theme
-
legendTextColor
Sets the color of the legend's text.- Parameters:
color
- color- Returns:
- this Theme
-
pointLabelFont
Sets the font used for point labels.- Parameters:
font
- font- Returns:
- this Theme.
-
pointLabelFont
Sets the font used for point labels.- Parameters:
family
- font family; if null, set to Arialstyle
- font style; if null, set toFont.FontStyle
PLAINsize
- the point size of the Font- Returns:
- this Theme.
-
pointLabelColor
Sets the color used for point labels.- Parameters:
color
- point label color- Returns:
- this Theme.
-
pointLabelColor
Sets the color used for point labels.- Parameters:
color
- point label color- Returns:
- this Theme.
-
seriesColorGenerator
Sets the ColorPalette of this Theme.- Parameters:
seriesColorPalette
- color palette- Returns:
- this Theme
-
getName
String getName()Gets the name of this theme.- Returns:
- name of this theme
-
getFigureTitleFont
Font getFigureTitleFont()Gets the font used for the Figure's title.- Returns:
- Figure's title font
-
getFigureTitleColor
Paint getFigureTitleColor()Gets the color used for the title of the Figure.- Returns:
- color of the Figure's title
-
getChartTitleFont
Font getChartTitleFont()Gets the font used for the Chart's title.- Returns:
- Chart's title font
-
getChartBackgroundColor
Paint getChartBackgroundColor()Gets the color used for the background of the Chart.- Returns:
- background color of the Chart
-
getLegendFont
Font getLegendFont()Gets the font used for the Chart's legend.- Returns:
- legend's font
-
getLegendTextColor
Paint getLegendTextColor()Gets the color used for the legend's font.- Returns:
- color of the legend's font
-
getPointLabelFont
Font getPointLabelFont()Gets the font used for point labels.- Returns:
- font used for point labels.
-
getPointLabelColor
Paint getPointLabelColor()Gets the color used for point labels.- Returns:
- color used for point labels.
-
getAxisColor
Paint getAxisColor()Gets the color of the Axes.- Returns:
- color of the Axes
-
getAxisTitleFont
Font getAxisTitleFont()Gets the font used for the Axis's title.- Returns:
- Axis's title's font
-
getAxisTicksFont
Font getAxisTicksFont()Gets the font used for the Axis's title.- Returns:
- Axis's title's font
-
getSeriesColor
Gets the color of thei
-th series in the Chart- Parameters:
i
- color index- Returns:
- i-th color of the Chart's
ColorPalette
-
getFigureTextColor
Paint getFigureTextColor()Gets thePaint
of the figure's text.- Returns:
Paint
of the figure's text
-
getFigureTextFont
Font getFigureTextFont()Gets theFont
of the figure's text.- Returns:
Font
of the figure's text
-
getChartTitleColor
Paint getChartTitleColor() -
getGridLineColor
Paint getGridLineColor() -
getDisplayXGridLines
boolean getDisplayXGridLines()- Returns:
- whether to draw the grid lines in the x direction
-
getDisplayYGridLines
boolean getDisplayYGridLines()- Returns:
- whether to draw the grid lines in the y direction
-
getAxisTitleColor
Paint getAxisTitleColor() -
getAxisTickLabelColor
Paint getAxisTickLabelColor()Gets thePaint
used for the color of each tick label.- Returns:
Paint
used for the color of each tick label
-
getSeriesColorPalette
ColorPalette getSeriesColorPalette()Gets theColorPalette
used for eachChart
.- Returns:
ColorPalette
used for eachChart
-