19 package org.sleuthkit.autopsy.timeline.zooming;
21 import java.util.Objects;
22 import org.joda.time.Interval;
63 return new EventsModelParams(timeRange, zoomLevel, eventFilterState, timelineLOD);
67 return new EventsModelParams(timeRange, zoomLevel, eventFilterState, timelineLOD);
83 return this.eventFilterState.
equals(filterSet);
91 return this.timeRange != null && this.timeRange.equals(timeRange);
95 return this.timelineLOD.equals(newLOD);
101 hash = 97 * hash + Objects.hashCode(this.timeRange.getStartMillis());
102 hash = 97 * hash + Objects.hashCode(this.timeRange.getEndMillis());
104 hash = 97 * hash + Objects.hashCode(this.eventFilterState);
105 hash = 97 * hash + Objects.hashCode(this.timelineLOD);
115 if (getClass() != obj.getClass()) {
119 if (!Objects.equals(
this.timeRange, other.
getTimeRange())) {
133 return "ZoomState{" +
"timeRange=" + timeRange +
", typeZoomLevel=" +
eventTypesHierarchyLevel +
", filter=" + eventFilterState.
getActiveFilter().toString() +
", descrLOD=" + timelineLOD +
'}';
TimelineLevelOfDetail getTimelineLOD()
EventsModelParams withTimeAndType(Interval timeRange, TimelineEventType.HierarchyLevel zoomLevel)
EventsModelParams withTimeRange(Interval timeRange)
EventsModelParams(Interval timeRange, TimelineEventType.HierarchyLevel eventTypesHierarchyLevel, RootFilterState eventFilterState, TimelineLevelOfDetail timelineLOD)
RootFilter getActiveFilter()
boolean equals(Object obj)
final RootFilterState eventFilterState
RootFilterState getEventFilterState()
boolean hasDescrLOD(TimelineLevelOfDetail newLOD)
final TimelineEventType.HierarchyLevel eventTypesHierarchyLevel
EventsModelParams withTypeZoomLevel(TimelineEventType.HierarchyLevel zoomLevel)
boolean equals(Object obj)
TimelineEventType.HierarchyLevel getEventTypesHierarchyLevel()
boolean hasTypeZoomLevel(TimelineEventType.HierarchyLevel typeZoom)
EventsModelParams withDescrLOD(TimelineLevelOfDetail descrLOD)
boolean hasTimeRange(Interval timeRange)
final TimelineLevelOfDetail timelineLOD
EventsModelParams withFilterState(RootFilterState filter)
boolean hasFilterState(RootFilterState filterSet)