Class ItemPartialFill
- java.lang.Object
-
- com.vaadin.flow.component.charts.model.AbstractConfigurationObject
-
- com.vaadin.flow.component.charts.model.ItemPartialFill
-
- All Implemented Interfaces:
Serializable
public class ItemPartialFill extends AbstractConfigurationObject
PartialFill configuration object to be used inDataSeriesItemXrange
. Typically used to visualize how much of a task is performed.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ItemPartialFill()
Creates an empty PartialFill configuration objectItemPartialFill(Number amount)
Creates a new PartialFill with the defined fill amountItemPartialFill(Number amount, Color fill)
Creates a new PartialFill with the defined fill color and amount
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Number
getAmount()
Color
getFill()
void
setAmount(Number amount)
The amount of the xrange point to be filled.void
setFill(Color fill)
The fill color to be used for partial fills.
-
-
-
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(Color)
-
setFill
public void setFill(Color fill)
The fill color to be used for partial fills. Whennull
, 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(Number)
-
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
-
-
-