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:

Serializable

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 Details

    • 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.

    • ItemPartialFill

      public ItemPartialFill(Number amount, Color fill)

      Creates a new PartialFill with the defined fill color and amount

      Parameters:

      amount - The amount of the xrange point to be filled.

      fill - The color to be used for partial fills

  • Method Details

    • 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 -