Autopsy  4.15.0
Graphical digital forensics platform for The Sleuth Kit and other tools.
ZoomIn.java
Go to the documentation of this file.
1 /*
2  * Autopsy Forensic Browser
3  *
4  * Copyright 2015-2018 Basis Technology Corp.
5  * Contact: carrier <at> sleuthkit <dot> org
6  *
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  *
11  * http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  */
19 package org.sleuthkit.autopsy.timeline.actions;
20 
21 import java.util.logging.Level;
22 import javafx.scene.control.Alert;
23 import javafx.scene.image.Image;
24 import javafx.scene.image.ImageView;
25 import org.controlsfx.control.action.Action;
26 import org.openide.util.NbBundle;
29 import org.sleuthkit.datamodel.TskCoreException;
30 
34 public class ZoomIn extends Action {
35 
36  private static final Logger logger = Logger.getLogger(ZoomIn.class.getName());
37 
38  private static final Image MAGNIFIER_IN = new Image("/org/sleuthkit/autopsy/timeline/images/magnifier-zoom-in-green.png"); //NOI18N NON-NLS
39 
40  @NbBundle.Messages({"ZoomIn.longText=Zoom in to view about half as much time.",
41  "ZoomIn.action.text=Zoom in",
42  "ZoomIn.errorMessage=Error zooming in."
43  })
44  public ZoomIn(TimeLineController controller) {
45  super(Bundle.ZoomIn_action_text());
46  setLongText(Bundle.ZoomIn_longText());
47  setGraphic(new ImageView(MAGNIFIER_IN));
48  setEventHandler(actionEvent -> {
49  try {
50  controller.pushZoomInTime();
51  } catch (TskCoreException ex) {
52  new Alert(Alert.AlertType.ERROR, Bundle.ZoomIn_errorMessage()).showAndWait();
53  logger.log(Level.SEVERE, "Error zooming in.", ex);
54  }
55  });
56  }
57 }
ZoomIn(TimeLineController controller)
Definition: ZoomIn.java:44
synchronized static Logger getLogger(String name)
Definition: Logger.java:124

Copyright © 2012-2020 Basis Technology. Generated on: Mon Jul 6 2020
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.