com.vaadin.flow.component.charts.model.
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:
public class FlagItem extends DataSeriesItem
DataSeriesItem that can hold also title and text values. Used in flags charts.
See Also:
-
-
Constructor Summary
Constructors Constructor Description FlagItem(Number x, String title)
Constructs an item with X and Title values
FlagItem(Number x, String title, String text)
Constructs an item with X, Title and Text values
FlagItem(Instant instant, String title)
Constructs an item with X and Title values
FlagItem(Instant instant, String title, String text)
Constructs an item with X, Title and Text values
FlagItem(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 Modifier and Type Method Description String
getText()
String
getTitle()
void
setText(String text)
Sets the text to be displayed when the flag is highlighted
void
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
public void setText(String text)
Sets the text to be displayed when the flag is highlighted
-
-