com.vaadin.flow.component.charts.model.
Class Background
- java.lang.Object
-
- com.vaadin.flow.component.charts.model.AbstractConfigurationObject
-
- com.vaadin.flow.component.charts.model.Background
-
All Implemented Interfaces:
public class Background extends AbstractConfigurationObject
An object, or array of objects, for backgrounds. Sub options include backgroundColor (which can be solid or gradient), innerWidth, outerWidth, borderWidth, borderColor.
These configuration options apply only to polar and angular gauges trough the Pane-configuration object.
See Also:
-
-
Constructor Summary
Constructors Constructor and Description Background()
-
Method Summary
All Methods Modifier and Type Method and Description String
getInnerRadius()
String
getOuterRadius()
BackgroundShape
getShape()
Returns current shape of the background.
void
setInnerRadius(String innerRadius)
Sets the inner radius of the circular shaped background using a string representation of a percentage, e.g.
void
setOuterRadius(String outerRadius)
Sets the outer radius of the circular shaped background using a string representation of a percentage, e.g.
void
setShape(BackgroundShape shape)
Sets the current shape of the background.
-
-
-
Method Detail
-
setOuterRadius
public void setOuterRadius(String outerRadius)
Sets the outer radius of the circular shaped background using a string representation of a percentage, e.g. "110%". The percentage is relative to the radius of the chart. This is applicable only to circular
ChartType.GAUGE
type charts.Parameters:
outerRadius
-
-
getOuterRadius
public String getOuterRadius()
See Also:
-
setInnerRadius
public void setInnerRadius(String innerRadius)
Sets the inner radius of the circular shaped background using a string representation of a percentage, e.g. "110%". The percentage is relative to the radius of the chart. This is applicable only to circular
ChartType.GAUGE
type charts.Parameters:
innerRadius
-
-
getInnerRadius
public String getInnerRadius()
See Also:
-
getShape
public BackgroundShape getShape()
Returns current shape of the background.
Returns:
Current shape.
-
setShape
public void setShape(BackgroundShape shape)
Sets the current shape of the background.
Parameters:
shape
- New shape.
-
-