Class FlagItem
- 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.FlagItem
-
- All Implemented Interfaces:
Serializable
public class FlagItem extends DataSeriesItem
DataSeriesItem that can hold also title and text values. Used in flags charts.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description FlagItem(Number x, String title)
Constructs an item with X and Title valuesFlagItem(Number x, String title, String text)
Constructs an item with X, Title and Text valuesFlagItem(Instant instant, String title)
Constructs an item with X and Title valuesFlagItem(Instant instant, String title, String text)
Constructs an item with X, Title and Text valuesFlagItem(Date date, String title)
Deprecated.as of 4.0.FlagItem(Date date, String title, String text)
Deprecated.as of 4.0.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getText()
String
getTitle()
void
setText(String text)
Sets the text to be displayed when the flag is highlightedvoid
setTitle(String title)
Sets the title of the flag-
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
-
FlagItem
public FlagItem(Number x, String title)
Constructs an item with X and Title values- Parameters:
x
-title
-
-
FlagItem
public FlagItem(Instant instant, String title)
Constructs an item with X and Title values- Parameters:
instant
-title
-
-
FlagItem
@Deprecated public FlagItem(Date date, String title)
Deprecated.as of 4.0. UseFlagItem(Instant, String)
-
FlagItem
public FlagItem(Number x, String title, String text)
Constructs an item with X, Title and Text values- Parameters:
x
-title
-
-
FlagItem
public FlagItem(Instant instant, String title, String text)
Constructs an item with X, Title and Text values- Parameters:
instant
-title
-text
-
-
FlagItem
@Deprecated public FlagItem(Date date, String title, String text)
Deprecated.as of 4.0. UseFlagItem(Instant, String, String)
-
-
Method Detail
-
setTitle
public void setTitle(String title)
Sets the title of the flag- Parameters:
title
-
-
getTitle
public String getTitle()
- Returns:
- the title of the flag
-
getText
public String getText()
- See Also:
setText(String)
-
setText
public void setText(String text)
Sets the text to be displayed when the flag is highlighted
-
-