Go to the documentation of this file.
19package org.sleuthkit.autopsy.timeline.actions;
21import java.util.logging.Level;
22import javafx.beans.binding.BooleanBinding;
23import javafx.scene.control.Alert;
24import javafx.scene.image.Image;
25import javafx.scene.image.ImageView;
26import org.controlsfx.control.action.Action;
27import org.openide.util.NbBundle;
28import org.sleuthkit.autopsy.coreutils.Logger;
29import org.sleuthkit.autopsy.timeline.EventsModel;
30import org.sleuthkit.autopsy.timeline.TimeLineController;
31import org.sleuthkit.datamodel.TskCoreException;
40 private static final Image
MAGNIFIER_OUT =
new Image(
"/org/sleuthkit/autopsy/timeline/images/magnifier-zoom-out-red.png");
42 @NbBundle.Messages({
"ZoomOut.longText=Zoom out to view about 50% more time.",
43 "ZoomOut.action.text=Zoom out",
44 "ZoomOut.errorMessage=Error zooming out.",
45 "ZoomOut.disabledProperty.errorMessage=Error getting spanning interval."})
47 super(Bundle.ZoomOut_action_text());
48 setLongText(Bundle.ZoomOut_longText());
50 setEventHandler(actionEvent -> {
53 }
catch (TskCoreException ex) {
54 new Alert(Alert.AlertType.ERROR, Bundle.ZoomOut_errorMessage()).showAndWait();
55 logger.log(Level.SEVERE,
"Error zooming out.", ex);
60 disabledProperty().bind(
new BooleanBinding() {
68 protected boolean computeValue() {
71 }
catch (TskCoreException ex) {
72 new Alert(Alert.AlertType.ERROR, Bundle.ZoomOut_disabledProperty_errorMessage()).showAndWait();
73 logger.log(Level.SEVERE,
"Error getting spanning interval.", ex);
synchronized static Logger getLogger(String name)
Interval getSpanningInterval(DateTimeZone timeZone)
final ReadOnlyObjectWrapper< Interval > timeRangeProperty
synchronized Interval getTimeRange()
final ReadOnlyObjectWrapper< EventsModelParams > modelParamsProperty
synchronized void pushZoomOutTime()
EventsModel getEventsModel()
ZoomOut(TimeLineController controller)
static final Image MAGNIFIER_OUT
final static Logger logger
Copyright © 2012-2024 Sleuth Kit Labs. Generated on:
This work is licensed under a
Creative Commons Attribution-Share Alike 3.0 United States License.