19 package org.sleuthkit.autopsy.datasourcesummary.uiutils;
21 import java.awt.Color;
22 import java.util.Collections;
23 import java.util.List;
35 private final Comparable<?>
key;
63 private final Comparable<?>
key;
65 private final List<BarChartItem>
items;
74 public BarChartSeries(Comparable<?> key, Color color, List<BarChartItem> items) {
77 this.items = (items == null) ? Collections.emptyList() : Collections.unmodifiableList(items);
106 public static class OrderedKey implements Comparable<OrderedKey> {
126 Object getKeyValue() {
145 return Integer.compare(this.getKeyIndex(), o.getKeyIndex());
162 if (getClass() != obj.getClass()) {
166 if (this.keyIndex != other.
keyIndex) {
175 return this.getKeyValue() == null ? null : this.getKeyValue().toString();
int compareTo(OrderedKey o)
List< BarChartItem > getItems()
BarChartSeries(Comparable<?> key, Color color, List< BarChartItem > items)
BarChartItem(Comparable<?> key, double value)
final List< BarChartItem > items
boolean equals(Object obj)
OrderedKey(Object keyValue, int keyIndex)