19 package org.sleuthkit.autopsy.timeline.actions;
21 import javafx.beans.binding.BooleanBinding;
22 import javafx.scene.image.Image;
23 import javafx.scene.image.ImageView;
24 import org.controlsfx.control.action.Action;
25 import org.openide.util.NbBundle;
34 private static final Image
MAGNIFIER_OUT =
new Image(
"/org/sleuthkit/autopsy/timeline/images/magnifier-zoom-out-red.png", 16, 16,
true,
true);
36 @NbBundle.Messages({
"ZoomToEvents.action.text=Zoom to events",
37 "ZoomToEvents.longText=Zoom out to show the nearest events."})
39 super(Bundle.ZoomToEvents_action_text());
40 setLongText(Bundle.ZoomToEvents_longText());
41 setGraphic(
new ImageView(MAGNIFIER_OUT));
42 setEventHandler(actionEvent -> {
47 disabledProperty().bind(
new BooleanBinding() {
55 protected boolean computeValue() {
FilteredEventsModel getEventsModel()
synchronized ReadOnlyObjectProperty< ZoomParams > zoomParametersProperty()
Interval getSpanningInterval()
static final Image MAGNIFIER_OUT
ZoomToEvents(final TimeLineController controller)