Class DateTimeLabelFormats
java.lang.Object
com.vaadin.flow.component.charts.model.AbstractConfigurationObject
com.vaadin.flow.component.charts.model.DateTimeLabelFormats
- All Implemented Interfaces:
Serializable
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, see
DateFormat
. 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:
-
Constructor Summary
ConstructorDescriptionDateTimeLabelFormats
(String month, String year) Constructs a DateTimeLabelFormats with the given format strings for month and year -
Method Summary
Modifier and TypeMethodDescriptiongetDay()
getHour()
getMonth()
getWeek()
getYear()
void
Sets the format String for day resolution.void
Sets the format String for hour resolutionvoid
Sets the format String for minute resolution.void
Sets the format String for month resolution.void
Sets the format String for second resolution.void
Sets the format String for week resolution.void
Sets the format String for year resolution.
-
Constructor Details
-
DateTimeLabelFormats
public DateTimeLabelFormats() -
DateTimeLabelFormats
Constructs a DateTimeLabelFormats with the given format strings for month and year- Parameters:
month
-year
-
-
-
Method Details
-
getSecond
- Returns:
- The format string for second resolution.
- See Also:
-
setSecond
Sets the format String for second resolution.- Parameters:
second
-
-
getMinute
- Returns:
- The format string for minute resolution.
- See Also:
-
setMinute
Sets the format String for minute resolution.- Parameters:
minute
-
-
getHour
- Returns:
- The format string for hour resolution.
- See Also:
-
setHour
Sets the format String for hour resolution- Parameters:
hour
-
-
getDay
- Returns:
- The format string for day resolution
- See Also:
-
setDay
Sets the format String for day resolution.- Parameters:
day
-
-
getWeek
- Returns:
- The format string for week resolution.
- See Also:
-
setWeek
Sets the format String for week resolution.- Parameters:
week
-
-
getMonth
- Returns:
- The format string for month resolution.
- See Also:
-
setMonth
Sets the format String for month resolution.- Parameters:
month
-
-
getYear
- Returns:
- The format string for year resolution
- See Also:
-
setYear
Sets the format String for year resolution.- Parameters:
year
-
-