1 package org.sleuthkit.autopsy.timeline.ui;
3 import org.joda.time.Days;
4 import org.joda.time.Hours;
5 import org.joda.time.Minutes;
6 import org.joda.time.Months;
7 import org.joda.time.ReadablePeriod;
8 import org.joda.time.Weeks;
9 import org.joda.time.Years;
10 import org.openide.util.NbBundle;
19 ONE_HOUR(NbBundle.getMessage(
ZoomRanges.class,
"Timeline.ui.ZoomRanges.onehour.text"), Hours.ONE),
22 ONE_DAY(NbBundle.getMessage(
ZoomRanges.class,
"Timeline.ui.ZoomRanges.oneday.text"), Days.ONE),
24 ONE_WEEK(NbBundle.getMessage(
ZoomRanges.class,
"Timeline.ui.ZoomRanges.oneweek.text"), Weeks.ONE),
25 TWO_WEEK(NbBundle.getMessage(
ZoomRanges.class,
"Timeline.ui.ZoomRanges.twoweeks.text"), Weeks.TWO),
29 ONE_YEAR(NbBundle.getMessage(
ZoomRanges.class,
"Timeline.ui.ZoomRanges.oneyear.text"), Years.ONE),
31 FIVE_YEARS(NbBundle.getMessage(
ZoomRanges.class,
"Timeline.ui.ZoomRanges.fiveyears.text"), Years.years(5)),
32 TEN_YEARS(NbBundle.getMessage(
ZoomRanges.class,
"Timeline.ui.ZoomRanges.tenyears.text"), Years.years(10)),
33 ALL(NbBundle.getMessage(
ZoomRanges.class,
"Timeline.ui.ZoomRanges.all.text"), Years.years(1_000_000));
35 private ZoomRanges(String displayName, ReadablePeriod period) {
36 this.displayName = displayName;
ZoomRanges(String displayName, ReadablePeriod period)
ReadablePeriod getPeriod()