public Date getEnd() { return new Date(end); }
}
private class TooltipGenerator implements XYToolTipGenerator {
public String generateToolTip(XYDataset xy, int series, int item) {
ComparableValue key = (ComparableValue) xy.getSeriesKey(series);
if (key.getOrdinal() == EXCEPTION_SERIES_ORDINAL)
return resources.getString("Overlap_Message");
IntervalXYDataset dataset = (IntervalXYDataset) xy;
String phaseName = Translator.translate(key.toString());
long start = dataset.getStartX(series, item).longValue();
long end = dataset.getEndX(series, item).longValue();
return resources.format("Time_Log_Entry_FMT", phaseName,
new Date(start), new Date(end));
}