Package com.storedobject.chart
Interface TimeDataProvider
- All Superinterfaces:
AbstractDataProvider<LocalDateTime>,ComponentPart,ComponentProperty
- All Known Implementing Classes:
TimeData
Data provider to provide time values.
- Author:
- Syam
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.storedobject.chart.AbstractDataProvider
AbstractDataProvider.NumberComparator -
Method Summary
Modifier and TypeMethodDescriptiondefault booleanadd(long timeInMillis) Add a time value as time in milliseconds.default booleanAdd a date value.booleanadd(LocalDateTime time) Add a time value.default booleanAdd a date value.default Comparator<LocalDateTime> This comparator, if available, will be used to determine the min/max values of the data if required by theAbstractDataProvider.getMin()andAbstractDataProvider.getMax()methods.default DataTypeGet the value type of the data.Methods inherited from interface com.storedobject.chart.AbstractDataProvider
asList, create, create, encode, encodeJSON, getId, getMax, getMin, getName, stream, validateMethods inherited from interface com.storedobject.chart.ComponentPart
className, getRenderingIndex, getSerial, setName, setRenderingIndex, setSerial
-
Method Details
-
getDataType
Description copied from interface:AbstractDataProviderGet the value type of the data.- Specified by:
getDataTypein interfaceAbstractDataProvider<LocalDateTime>- Returns:
- Value type.
-
add
Add a time value.- Parameters:
time- time value to add.- Returns:
- True if added. Otherwise, false.
-
add
Add a date value.- Parameters:
date- Date value to add.- Returns:
- True if added. Otherwise, false.
-
add
Add a date value.- Parameters:
date- Date value to add.- Returns:
- True if added. Otherwise, false.
-
add
default boolean add(long timeInMillis) Add a time value as time in milliseconds.- Parameters:
timeInMillis- Time in milliseconds.- Returns:
- True if added. Otherwise, false.
-
getComparator
Description copied from interface:AbstractDataProviderThis comparator, if available, will be used to determine the min/max values of the data if required by theAbstractDataProvider.getMin()andAbstractDataProvider.getMax()methods.- Specified by:
getComparatorin interfaceAbstractDataProvider<LocalDateTime>- Returns:
- Comparator. (Default is null).
-