19 package org.sleuthkit.autopsy.timeline.ui;
21 import org.joda.time.Days;
22 import org.joda.time.Hours;
23 import org.joda.time.Minutes;
24 import org.joda.time.Months;
25 import org.joda.time.ReadablePeriod;
26 import org.joda.time.Weeks;
27 import org.joda.time.Years;
28 import org.openide.util.NbBundle;
37 ONE_HOUR(NbBundle.getMessage(
ZoomRanges.class,
"Timeline.ui.ZoomRanges.onehour.text"), Hours.ONE),
40 ONE_DAY(NbBundle.getMessage(
ZoomRanges.class,
"Timeline.ui.ZoomRanges.oneday.text"), Days.ONE),
42 ONE_WEEK(NbBundle.getMessage(
ZoomRanges.class,
"Timeline.ui.ZoomRanges.oneweek.text"), Weeks.ONE),
43 TWO_WEEK(NbBundle.getMessage(
ZoomRanges.class,
"Timeline.ui.ZoomRanges.twoweeks.text"), Weeks.TWO),
47 ONE_YEAR(NbBundle.getMessage(
ZoomRanges.class,
"Timeline.ui.ZoomRanges.oneyear.text"), Years.ONE),
49 FIVE_YEARS(NbBundle.getMessage(
ZoomRanges.class,
"Timeline.ui.ZoomRanges.fiveyears.text"), Years.years(5)),
50 TEN_YEARS(NbBundle.getMessage(
ZoomRanges.class,
"Timeline.ui.ZoomRanges.tenyears.text"), Years.years(10)),
51 ALL(NbBundle.getMessage(
ZoomRanges.class,
"Timeline.ui.ZoomRanges.all.text"), Years.years(1_000_000));
56 private ZoomRanges(String displayName, ReadablePeriod period) {
57 this.displayName = displayName;
ZoomRanges(String displayName, ReadablePeriod period)
ReadablePeriod getPeriod()
final ReadablePeriod period