public class PlotOptionsSetterAdapter extends Object
lineWidth
) but whose first common ancestor class does not contain
such an attribute. This class allows to set the properties through a
unified API. If the wrapped class does not have a property then the setter
method of this class simply ignores it and does nothing.Constructor and Description |
---|
PlotOptionsSetterAdapter(com.vaadin.addon.charts.model.AbstractPlotOptions options)
Wraps the plot options
|
Modifier and Type | Method and Description |
---|---|
void |
enableDataLabels()
Enables the data labels on the adapted plot options.
|
void |
setColor(com.vaadin.addon.charts.model.style.SolidColor color)
Sets the color to the adapted plot options.
|
void |
setColor(String color)
Sets the color to the adapted plot options.
|
void |
setDashStyle(com.vaadin.addon.charts.model.DashStyle style)
Sets the dash style to the adapted plot options.
|
void |
setDataLabels(com.vaadin.addon.charts.model.AbstractDataLabels dataLabels)
Sets the data labels.
|
void |
setFillColor(com.vaadin.addon.charts.model.style.SolidColor color)
Sets the fill color to the adapted plot options.
|
void |
setFillOpacity(Decimal fillOpacity)
Sets the fill opacity to the wrapped plot options.
|
void |
setLineWidth(Decimal lineWidth)
Sets the line width to the adapted plot options.
|
void |
setMarker(com.vaadin.addon.charts.model.Marker marker)
Sets the marker to the adapted plot options.
|
void |
setShadow(Boolean shadow)
Sets the shadow flag to the wrapped plot options.
|
void |
setShowInLegend(Boolean showInLegend)
Sets the showInLegend flag.
|
void |
setStacking()
Sets the normal stacking to the adapted plot options.
|
public PlotOptionsSetterAdapter(com.vaadin.addon.charts.model.AbstractPlotOptions options)
options
- the options to be wrapped.public void setMarker(com.vaadin.addon.charts.model.Marker marker)
marker
- public void setLineWidth(Decimal lineWidth)
lineWidth
- public void setDashStyle(com.vaadin.addon.charts.model.DashStyle style)
style
- public void setStacking()
public void setColor(String color)
color
- public void setColor(com.vaadin.addon.charts.model.style.SolidColor color)
color
- public void setFillColor(com.vaadin.addon.charts.model.style.SolidColor color)
color
- public void setFillOpacity(Decimal fillOpacity)
fillOpacity
- public void setDataLabels(com.vaadin.addon.charts.model.AbstractDataLabels dataLabels)
dataLabels
- the data labels to setClassCastException
- if the data labels type does not match
the expected data labels type of the wrapped plot optionspublic void enableDataLabels()
public void setShowInLegend(Boolean showInLegend)
showInLegend
- the value flag to setpublic void setShadow(Boolean shadow)
shadow
- the shadow flag value to setCopyright © 2007-2018 Whitestein Technologies. All Rights Reserved.