19 package org.sleuthkit.autopsy.timeline.zooming;
21 import java.util.Collections;
22 import java.util.EnumSet;
23 import java.util.Objects;
25 import org.joda.time.Interval;
26 import org.openide.util.NbBundle;
46 return Collections.unmodifiableSet(changedFields);
51 TIME, EVENT_TYPE_ZOOM, FILTER, DESCRIPTION_LOD;
72 this.typeZoomLevel = zoomLevel;
75 changedFields = EnumSet.allOf(
Field.class);
80 this.typeZoomLevel = zoomLevel;
83 changedFields = changed;
107 return this.filter.equals(filterSet);
111 return this.typeZoomLevel.equals(typeZoom);
115 return this.timeRange == null ?
false : this.timeRange.equals(timeRange);
119 return this.descrLOD.equals(newLOD);
125 hash = 97 * hash + Objects.hashCode(this.timeRange.getStartMillis());
126 hash = 97 * hash + Objects.hashCode(this.timeRange.getEndMillis());
127 hash = 97 * hash + Objects.hashCode(this.typeZoomLevel);
128 hash = 97 * hash + Objects.hashCode(this.filter.
isActive());
129 hash = 97 * hash + Objects.hashCode(this.descrLOD);
139 if (getClass() != obj.getClass()) {
143 if (!Objects.equals(
this.timeRange, other.
timeRange)) {
149 if (this.filter.equals(other.
filter) ==
false) {
152 if (this.descrLOD != other.
descrLOD) {
ZoomParams withFilter(Filter filter)
boolean hasTimeRange(Interval timeRange)
ZoomParams withTypeZoomLevel(EventTypeZoomLevel zoomLevel)
boolean equals(Object obj)
boolean hasTypeZoomLevel(EventTypeZoomLevel typeZoom)
ZoomParams withDescrLOD(DescriptionLOD descrLOD)
final DescriptionLOD descrLOD
ZoomParams withTimeRange(Interval timeRange)
Set< Field > getChangedFields()
final Set< Field > changedFields
boolean hasFilter(Filter filterSet)
EventTypeZoomLevel getTypeZoomLevel()
ZoomParams withTimeAndType(Interval timeRange, EventTypeZoomLevel zoomLevel)
boolean hasDescrLOD(DescriptionLOD newLOD)
ZoomParams(Interval timeRange, EventTypeZoomLevel zoomLevel, Filter filter, DescriptionLOD descrLOD, EnumSet< Field > changed)
ZoomParams(Interval timeRange, EventTypeZoomLevel zoomLevel, Filter filter, DescriptionLOD descrLOD)
final EventTypeZoomLevel typeZoomLevel
DescriptionLOD getDescrLOD()