com.vaadin.flow.component.charts.model.style.
Class Theme
- java.lang.Object
-
- com.vaadin.flow.component.charts.model.AbstractConfigurationObject
-
- com.vaadin.flow.component.charts.model.style.Theme
-
All Implemented Interfaces:
Direct Known Subclasses:
public class Theme extends AbstractConfigurationObject
Theme class for Chart. This is empty theme, and only defines the structure of Theme. Inherit own Theme class, or use Themes inherited from this class to theme your Charts.
See Also:
VaadinTheme
, Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Theme()
-
Method Summary
All Methods Modifier and Type Method Description ChartStyle
getChart()
Get chart style
Color[]
getColors()
Get colors of items
Credits
getCredits()
Get credits style
Style
getLabels()
Get style of labels
LegendStyle
getLegend()
Get style of legend
PlotOptionsStyle
getPlotOptions()
Get style of plots
Style
getSubtitle()
Get style of Chart subtitle
Style
getTitle()
Get style of Chart title
TooltipStyle
getTooltip()
Get style of tooltips
AxisStyle
getxAxis()
Get style of X axes
AxisStyle
getyAxis()
Get style of Y axes
void
setChart(ChartStyle style)
Set new chart style
void
setColors(Color... colors)
Set colors of items (bars, pie sectors ...) in chart
void
setCredits(Credits credits)
Set new style for credits
void
setLabels(Style style)
Set new style of labels
void
setLegend(LegendStyle style)
Set new style legend
void
setPlotOptions(PlotOptionsStyle plotOptions)
Set new style of plot
void
setSubtitle(Style style)
Set style of Chart subtitle
void
setTitle(Style style)
Set style of Chart title
void
setTooltip(TooltipStyle tooltip)
Set new style of tooltips
void
setxAxis(AxisStyle style)
Set new style of X axes
void
setyAxis(AxisStyle style)
Set new style of Y axes
-
-
-
Method Detail
-
setColors
public void setColors(Color... colors)
Set colors of items (bars, pie sectors ...) in chart
Parameters:
colors
- Colors of items
-
getColors
public Color[] getColors()
Get colors of items
Returns:
Colors of items, null if not defined
-
getChart
public ChartStyle getChart()
Get chart style
Returns:
Chart style
-
setChart
public void setChart(ChartStyle style)
Set new chart style
Parameters:
style
- Chart style
-
getTitle
public Style getTitle()
Get style of Chart title
Returns:
Style of title
-
setTitle
public void setTitle(Style style)
Set style of Chart title
Parameters:
style
- New style of title
-
getSubtitle
public Style getSubtitle()
Get style of Chart subtitle
Returns:
Style of subtitle
-
setSubtitle
public void setSubtitle(Style style)
Set style of Chart subtitle
Parameters:
style
- New style of subtitle
-
getLabels
public Style getLabels()
Get style of labels
Returns:
Labels style
-
setLabels
public void setLabels(Style style)
Set new style of labels
Parameters:
style
- Labels style
-
getLegend
public LegendStyle getLegend()
Get style of legend
Returns:
Legend style
-
setLegend
public void setLegend(LegendStyle style)
Set new style legend
Parameters:
style
- Legend style
-
getxAxis
public AxisStyle getxAxis()
Get style of X axes
Returns:
X axis style
-
setxAxis
public void setxAxis(AxisStyle style)
Set new style of X axes
Parameters:
style
- X axis style
-
getyAxis
public AxisStyle getyAxis()
Get style of Y axes
Returns:
Y axis style
-
setyAxis
public void setyAxis(AxisStyle style)
Set new style of Y axes
Parameters:
style
- Y axis style
-
getTooltip
public TooltipStyle getTooltip()
Get style of tooltips
Returns:
Tooltip style
-
setTooltip
public void setTooltip(TooltipStyle tooltip)
Set new style of tooltips
Parameters:
tooltip
- Tooltip style
-
getPlotOptions
public PlotOptionsStyle getPlotOptions()
Get style of plots
Returns:
Plot styles
-
setPlotOptions
public void setPlotOptions(PlotOptionsStyle plotOptions)
Set new style of plot
Parameters:
plotOptions
- Plot styles
-
getCredits
public Credits getCredits()
Get credits style
Returns:
Credits style
-
setCredits
public void setCredits(Credits credits)
Set new style for credits
Parameters:
credits
- Credits style
-
-