19 package org.sleuthkit.autopsy.timeline.ui.detailview;
21 import java.util.logging.Level;
22 import javafx.collections.SetChangeListener;
23 import javafx.scene.chart.Axis;
24 import org.controlsfx.control.Notifications;
25 import org.openide.util.NbBundle;
44 @NbBundle.Messages({
"PinnedChartLane.pinnedEventsListener.errorMessage=Error adding pinned event to lane."})
45 PinnedEventsChartLane(DetailsChart parentChart, DateAxis dateAxis,
final Axis<DetailViewEvent> verticalAxis) {
46 super(parentChart, dateAxis, verticalAxis,
false);
49 if (change.wasAdded()) {
51 addEvent(change.getElementAdded());
52 } catch (TskCoreException ex) {
53 Notifications.create().owner(getScene().getWindow())
54 .text(Bundle.PinnedChartLane_pinnedEventsListener_errorMessage()).showError();
55 logger.log(Level.SEVERE,
"Error adding pinned event to lane.", ex);
58 if (change.wasRemoved()) {
59 removeEvent(change.getElementRemoved());
67 }
catch (TskCoreException ex) {
68 Notifications.create().owner(getScene().getWindow())
69 .text(Bundle.PinnedChartLane_pinnedEventsListener_errorMessage())
71 logger.log(Level.SEVERE,
"Error adding pinned event to lane.", ex);
78 void doAdditionalLayout() {
static final Logger logger
synchronized static Logger getLogger(String name)
ObservableSet< DetailViewEvent > getPinnedEvents()