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;
 
   39     private static final Image 
MAGNIFIER_OUT = 
new Image(
"/org/sleuthkit/autopsy/timeline/images/magnifier-zoom-out-red.png", 16, 16, 
true, 
true); 
 
   41     @NbBundle.Messages({
"ZoomToEvents.action.text=Zoom to events",
 
   42         "ZoomToEvents.longText=Zoom out to show the nearest events.",
 
   43         "ZoomToEvents.disabledProperty.errorMessage=Error getting spanning interval."})
 
   45         super(Bundle.ZoomToEvents_action_text());
 
   46         setLongText(Bundle.ZoomToEvents_longText());
 
   47         setGraphic(
new ImageView(MAGNIFIER_OUT));
 
   48         setEventHandler(actionEvent -> {
 
   51             } 
catch (TskCoreException ex) {
 
   52                 logger.log(Level.SEVERE, 
"Error invoking ZoomToEvents action", ex);
 
   53                 new Alert(Alert.AlertType.ERROR, 
"Error zomming").showAndWait();
 
   58         disabledProperty().bind(
new BooleanBinding() {
 
   66             protected boolean computeValue() {
 
   70                 } 
catch (TskCoreException ex) {
 
   71                     new Alert(Alert.AlertType.ERROR, Bundle.ZoomToEvents_disabledProperty_errorMessage()).showAndWait();
 
   72                     logger.log(Level.SEVERE, 
"Error getting spanning interval.", ex);
 
static final Logger logger
 
static final Image MAGNIFIER_OUT
 
ZoomToEvents(final TimeLineController controller)
 
Interval getSpanningInterval(DateTimeZone timeZone)
 
final ReadOnlyObjectWrapper< EventsModelParams > modelParamsProperty
 
EventsModel getEventsModel()
 
synchronized static Logger getLogger(String name)
 
synchronized Interval getTimeRange()