com.vaadin.flow.component.charts.model.
Class ItemPartialFill
- java.lang.Object
-
- com.vaadin.flow.component.charts.model.AbstractConfigurationObject
-
- com.vaadin.flow.component.charts.model.ItemPartialFill
-
All Implemented Interfaces:
public class ItemPartialFill extends AbstractConfigurationObject
PartialFill configuration object to be used in
DataSeriesItemXrange
. Typically used to visualize how much of a task is performed.See Also:
-
-
Constructor Summary
Constructors Constructor Description ItemPartialFill()
Creates an empty PartialFill configuration object
ItemPartialFill(Number amount)
Creates a new PartialFill with the defined fill amount
ItemPartialFill(Number amount, Color fill)
Creates a new PartialFill with the defined fill color and amount
-
-
-
Constructor Detail
-
ItemPartialFill
public ItemPartialFill()
Creates an empty PartialFill configuration object
-
ItemPartialFill
public ItemPartialFill(Number amount)
Creates a new PartialFill with the defined fill amount
Parameters:
amount
- The amount of the xrange point to be filled.
-
-
Method Detail
-
getFill
public Color getFill()
Returns:
the color used for partial fills
See Also:
-
setFill
public void setFill(Color fill)
The fill color to be used for partial fills. When
null
, a darker shade of the point's color is used.Parameters:
fill
- color to be used for partial fills
-
getAmount
public Number getAmount()
Returns:
the amount used for partial fill
See Also:
-
setAmount
public void setAmount(Number amount)
The amount of the xrange point to be filled. Values can be 0-1 and are converted to percentages in the default data label formatter.
Parameters:
amount
-
-
-