com.vaadin.flow.component.charts.model.
Class DataSeriesItemXrange
- java.lang.Object
-
- com.vaadin.flow.component.charts.model.AbstractConfigurationObject
-
- com.vaadin.flow.component.charts.model.AbstractSeriesItem
-
- com.vaadin.flow.component.charts.model.DataSeriesItem
-
- com.vaadin.flow.component.charts.model.DataSeriesItemXrange
-
All Implemented Interfaces:
public class DataSeriesItemXrange extends DataSeriesItem
DataSeriesItem that can hold also x2 and partialFill amount and color. Used in e.g. xrange series.
To change partial fill amount or color use
getPartialFill()
to get the configuration object.See Also:
-
-
Constructor Summary
Constructors Constructor Description DataSeriesItemXrange()
Constructs an empty item
DataSeriesItemXrange(Number x, Number x2, Number y)
Constructs an item with X, X2 and Y
DataSeriesItemXrange(Number x, Number x2, Number y, Number partialFillAmount)
Constructs an item with X, X2, Y and partialFillAmount.
DataSeriesItemXrange(Number x, Number x2, Number y, Number partialFillAmount, Color partialFillColor)
Constructs an item with X, X2, Y, partialFillAmount and partialFillColor.
DataSeriesItemXrange(Instant x, Instant x2, Number y)
Constructs an item with X, X2 and Y
DataSeriesItemXrange(Instant x, Instant x2, Number y, Number partialFillAmount)
Constructs an item with X, X2, Y and partialFillAmount.
DataSeriesItemXrange(Instant x, Instant x2, Number y, Number partialFillAmount, Color partialFillColor)
Constructs an item with X, X2, Y, partialFillAmount and partialFillColor.
-
Method Summary
All Methods Modifier and Type Method Description ItemPartialFill
getPartialFill()
Number
getX2()
Returns the X2-value of the item.
void
setPartialFill(ItemPartialFill partialFill)
Partial fill configuration for series points, typically used to visualize how much of a task is performed.
void
setX2(Number x2)
Sets the X2 value of this data item.
void
setX2(Instant instant)
Sets the given instant as the x2 value.
-
Methods inherited from class com.vaadin.flow.component.charts.model.DataSeriesItem
getCursor, getDataLabels, getDescription, getDial, getHigh, getLow, isCustomized, isSelected, makeCustomized, setColor, setCursor, setDataLabels, setDescription, setDial, setHigh, setId, setLegendIndex, setLow, setMarker, setName, setSelected, setSliced
-
Methods inherited from class com.vaadin.flow.component.charts.model.AbstractSeriesItem
getClassName, getColor, getColorIndex, getId, getLegendIndex, getMarker, getName, getSliced, getX, getY, setClassName, setColorIndex, setX, setX, setX, setY
-
-
-
-
Constructor Detail
-
DataSeriesItemXrange
public DataSeriesItemXrange()
Constructs an empty item
-
DataSeriesItemXrange
public DataSeriesItemXrange(Number x, Number x2, Number y)
Constructs an item with X, X2 and Y
Parameters:
x
-x2
-y
-
-
DataSeriesItemXrange
public DataSeriesItemXrange(Instant x, Instant x2, Number y)
Constructs an item with X, X2 and Y
Parameters:
x
-x2
-y
-
-
DataSeriesItemXrange
public DataSeriesItemXrange(Number x, Number x2, Number y, Number partialFillAmount)
Constructs an item with X, X2, Y and partialFillAmount.
Parameters:
x
-x2
-y
-partialFillAmount
-
-
DataSeriesItemXrange
public DataSeriesItemXrange(Instant x, Instant x2, Number y, Number partialFillAmount)
Constructs an item with X, X2, Y and partialFillAmount.
Parameters:
x
-x2
-y
-partialFillAmount
-
-
DataSeriesItemXrange
public DataSeriesItemXrange(Number x, Number x2, Number y, Number partialFillAmount, Color partialFillColor)
Constructs an item with X, X2, Y, partialFillAmount and partialFillColor.
Parameters:
x
-x2
-y
-partialFillAmount
-partialFillColor
-
-
-
Method Detail
-
getX2
public Number getX2()
Returns the X2-value of the item.
Returns:
The X2 value of this data item.
See Also:
-
setX2
public void setX2(Number x2)
Sets the X2 value of this data item. Defaults to null.
Parameters:
x
- X-value of the item.
-
setX2
public void setX2(Instant instant)
Sets the given instant as the x2 value.
Parameters:
instant
- Instant to set.
-
getPartialFill
public ItemPartialFill getPartialFill()
See Also:
-
setPartialFill
public void setPartialFill(ItemPartialFill partialFill)
Partial fill configuration for series points, typically used to visualize how much of a task is performed.
-
-