19 package org.sleuthkit.autopsy.timeline.zooming;
21 import java.util.Objects;
22 import org.joda.time.Interval;
57 this.typeZoomLevel = zoomLevel;
63 return new ZoomParams(timeRange, zoomLevel, filter, descrLOD);
67 return new ZoomParams(timeRange, zoomLevel, filter, descrLOD);
71 return new ZoomParams(timeRange, typeZoomLevel, filter, descrLOD);
75 return new ZoomParams(timeRange, typeZoomLevel, filter, descrLOD);
79 return new ZoomParams(timeRange, typeZoomLevel, filter, descrLOD);
83 return this.filter.
equals(filterSet);
87 return this.typeZoomLevel.equals(typeZoom);
91 return this.timeRange == null ?
false : this.timeRange.equals(timeRange);
95 return this.descrLOD.equals(newLOD);
101 hash = 97 * hash + Objects.hashCode(this.timeRange.getStartMillis());
102 hash = 97 * hash + Objects.hashCode(this.timeRange.getEndMillis());
103 hash = 97 * hash + Objects.hashCode(this.typeZoomLevel);
104 hash = 97 * hash + Objects.hashCode(this.filter.isSelected());
105 hash = 97 * hash + Objects.hashCode(this.descrLOD);
115 if (getClass() != obj.getClass()) {
119 if (!Objects.equals(
this.timeRange, other.
timeRange)) {
128 return this.descrLOD == other.
descrLOD;
133 return "ZoomParams{" +
"timeRange=" + timeRange +
", typeZoomLevel=" + typeZoomLevel +
", filter=" + filter +
", descrLOD=" + descrLOD +
'}';
ZoomParams withDescrLOD(DescriptionLoD descrLOD)
boolean hasTimeRange(Interval timeRange)
ZoomParams withTypeZoomLevel(EventTypeZoomLevel zoomLevel)
boolean hasFilter(RootFilter filterSet)
boolean equals(Object obj)
boolean hasTypeZoomLevel(EventTypeZoomLevel typeZoom)
boolean hasDescrLOD(DescriptionLoD newLOD)
ZoomParams withTimeRange(Interval timeRange)
ZoomParams(Interval timeRange, EventTypeZoomLevel zoomLevel, RootFilter filter, DescriptionLoD descrLOD)
final DescriptionLoD descrLOD
EventTypeZoomLevel getTypeZoomLevel()
ZoomParams withTimeAndType(Interval timeRange, EventTypeZoomLevel zoomLevel)
boolean equals(Object obj)
DescriptionLoD getDescriptionLOD()
ZoomParams withFilter(RootFilter filter)
final EventTypeZoomLevel typeZoomLevel