Class TargetOptions
- java.lang.Object
-
- com.vaadin.flow.component.charts.model.AbstractConfigurationObject
-
- com.vaadin.flow.component.charts.model.TargetOptions
-
- All Implemented Interfaces:
Serializable
public class TargetOptions extends AbstractConfigurationObject
Set options related with look and position of targets.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description TargetOptions()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Color
getBorderColor()
Number
getBorderWidth()
Color
getColor()
String
getHeight()
String
getWidth()
void
setBorderColor(Color borderColor)
Can set aborderColor
of the rectangle representing the target.void
setBorderWidth(Number borderWidth)
Can set the borderWidth of the rectangle representing the target.void
setColor(Color color)
Can set a color of the rectangle representing the target.void
setHeight(String height)
The height of the rectangle representing the target.void
setWidth(String width)
The width of the rectangle representing the target.
-
-
-
Method Detail
-
getBorderColor
public Color getBorderColor()
- See Also:
setBorderColor(Color)
-
setBorderColor
public void setBorderColor(Color borderColor)
Can set aborderColor
of the rectangle representing the target. When not set, the point's border color is used.
-
getBorderWidth
public Number getBorderWidth()
- See Also:
setBorderWidth(Number)
-
setBorderWidth
public void setBorderWidth(Number borderWidth)
Can set the borderWidth of the rectangle representing the target.Defaults to: 0
-
getColor
public Color getColor()
- See Also:
setColor(Color)
-
setColor
public void setColor(Color color)
Can set a color of the rectangle representing the target. When not set, point's color (if set in point's options - color) or zone of the target value (if zones or negativeColor are set) or the same color as the point has is used.
-
getHeight
public String getHeight()
- See Also:
setHeight(String)
-
setHeight
public void setHeight(String height)
The height of the rectangle representing the target.Defaults to: 3
-
getWidth
public String getWidth()
- See Also:
setWidth(String)
-
setWidth
public void setWidth(String width)
The width of the rectangle representing the target. Could be set as a pixel value or as a percentage of a column width.Defaults to: 140%
-
-