19 package org.sleuthkit.autopsy.timeline.actions;
21 import java.util.logging.Level;
22 import javafx.beans.binding.BooleanBinding;
23 import javafx.scene.control.Alert;
24 import javafx.scene.image.Image;
25 import javafx.scene.image.ImageView;
26 import org.controlsfx.control.action.Action;
27 import org.openide.util.NbBundle;
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());
49 setGraphic(
new ImageView(MAGNIFIER_OUT));
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);
final ReadOnlyObjectWrapper< Interval > timeRangeProperty
Interval getSpanningInterval(DateTimeZone timeZone)
ZoomOut(TimeLineController controller)
final ReadOnlyObjectWrapper< EventsModelParams > modelParamsProperty
static final Image MAGNIFIER_OUT
EventsModel getEventsModel()
synchronized static Logger getLogger(String name)
synchronized void pushZoomOutTime()
final static Logger logger
synchronized Interval getTimeRange()