Class DateTimeLabelFormats
- java.lang.Object
-
- com.vaadin.flow.component.charts.model.AbstractConfigurationObject
-
- com.vaadin.flow.component.charts.model.DateTimeLabelFormats
-
- All Implemented Interfaces:
Serializable
public class DateTimeLabelFormats extends AbstractConfigurationObject
For a DATETIME axis, the scale will automatically adjust to the appropriate unit. This member gives the default string representations used for each unit. For an overview of the replacement codes, seeDateFormat
. Defaults to:{ second: '%H:%M:%S', minute: '%H:%M', hour: '%H:%M', day: '%e. %b', week: '%e. %b', month: '%b \'%y', year: '%Y' }
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DateTimeLabelFormats()
DateTimeLabelFormats(String month, String year)
Constructs a DateTimeLabelFormats with the given format strings for month and year
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getDay()
String
getHour()
String
getMinute()
String
getMonth()
String
getSecond()
String
getWeek()
String
getYear()
void
setDay(String day)
Sets the format String for day resolution.void
setHour(String hour)
Sets the format String for hour resolutionvoid
setMinute(String minute)
Sets the format String for minute resolution.void
setMonth(String month)
Sets the format String for month resolution.void
setSecond(String second)
Sets the format String for second resolution.void
setWeek(String week)
Sets the format String for week resolution.void
setYear(String year)
Sets the format String for year resolution.
-
-
-
Method Detail
-
getSecond
public String getSecond()
- Returns:
- The format string for second resolution.
- See Also:
setSecond(String)
-
setSecond
public void setSecond(String second)
Sets the format String for second resolution.- Parameters:
second
-
-
getMinute
public String getMinute()
- Returns:
- The format string for minute resolution.
- See Also:
setMinute(String)
-
setMinute
public void setMinute(String minute)
Sets the format String for minute resolution.- Parameters:
minute
-
-
getHour
public String getHour()
- Returns:
- The format string for hour resolution.
- See Also:
setHour(String)
-
setHour
public void setHour(String hour)
Sets the format String for hour resolution- Parameters:
hour
-
-
getDay
public String getDay()
- Returns:
- The format string for day resolution
- See Also:
setDay(String)
-
setDay
public void setDay(String day)
Sets the format String for day resolution.- Parameters:
day
-
-
getWeek
public String getWeek()
- Returns:
- The format string for week resolution.
- See Also:
setWeek(String)
-
setWeek
public void setWeek(String week)
Sets the format String for week resolution.- Parameters:
week
-
-
getMonth
public String getMonth()
- Returns:
- The format string for month resolution.
- See Also:
setMonth(String)
-
setMonth
public void setMonth(String month)
Sets the format String for month resolution.- Parameters:
month
-
-
getYear
public String getYear()
- Returns:
- The format string for year resolution
- See Also:
setYear(String)
-
setYear
public void setYear(String year)
Sets the format String for year resolution.- Parameters:
year
-
-
-