Package com.storedobject.chart
Class CategoryData
java.lang.Object
- All Implemented Interfaces:
AbstractDataProvider<String>,CategoryDataProvider,ComponentPart,ComponentProperty,Serializable,Cloneable,Iterable<String>,Collection<String>,List<String>,RandomAccess,SequencedCollection<String>
A list-based data provider for category data.
Category data is typically non-numeric kind of (string) data that can be used in many charts like
in the X-axis of a
BarChart. It is also used when data/item labels are required, for example:
PieChart.- Author:
- Syam
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.storedobject.chart.AbstractDataProvider
AbstractDataProvider.NumberComparator -
Field Summary
Fields inherited from class java.util.AbstractList
modCount -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.storedobject.chart.AbstractData
asList, getDataType, getName, getSerial, setName, setSerial, streamMethods inherited from class java.util.ArrayList
add, add, addAll, addAll, addFirst, addLast, clear, clone, contains, ensureCapacity, equals, forEach, get, getFirst, getLast, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeFirst, removeIf, removeLast, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSizeMethods inherited from class java.util.AbstractCollection
containsAll, toStringMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.storedobject.chart.AbstractDataProvider
asList, create, create, encode, encodeJSON, getComparator, getId, getName, stream, validateMethods inherited from interface com.storedobject.chart.CategoryDataProvider
getDataTypeMethods inherited from interface java.util.Collection
parallelStream, toArrayMethods inherited from interface com.storedobject.chart.ComponentPart
className, getRenderingIndex, getSerial, setName, setRenderingIndex, setSerialMethods inherited from interface java.util.List
containsAll, reversed
-
Constructor Details
-
CategoryData
-
-
Method Details
-
getMin
Description copied from interface:AbstractDataProviderGet the minimum value from this data. This is used by certain components such asVisualMapto automatically find out the minimum value of a value-based chart.The default implementation tries to use the
Comparatorreturned by theAbstractDataProvider.getComparator()method to determine this value. If noComparatoris available,nullwill be returned.- Specified by:
getMinin interfaceAbstractDataProvider<String>- Returns:
- Minimum value of the data.
-
getMax
Description copied from interface:AbstractDataProviderGet the maximum value from this data. This is used by certain components such asVisualMapto automatically find out the minimum value of a value-based chart.The default implementation tries to use the
Comparatorreturned by theAbstractDataProvider.getComparator()method to determine this value. If noComparatoris available,nullwill be returned.- Specified by:
getMaxin interfaceAbstractDataProvider<String>- Returns:
- Minimum value of the data.
-