From 4d6c4240c607c26c1f0e65db76d0657372a347b0 Mon Sep 17 00:00:00 2001 From: jmillman Date: Mon, 23 May 2016 16:37:28 -0400 Subject: [PATCH 01/12] change visualizaion -> view in code, ui, and comments --- .../timeline/TimeLineTopComponent.java | 6 +- .../actions/SaveSnapshotAsReport.java | 2 +- .../events/RefreshRequestedEvent.java | 2 +- .../snapshot/SnapShotReportWriter.java | 2 +- .../timeline/ui/AbstractTimeLineView.java | 6 +- .../timeline/ui/AbstractTimelineChart.java | 38 ++++---- .../autopsy/timeline/ui/Bundle.properties | 16 ++-- .../autopsy/timeline/ui/Bundle_ja.properties | 36 +++---- ...VisualizationPanel.fxml => ViewFrame.fxml} | 2 +- ...VisualizationPanel.java => ViewFrame.java} | 94 +++++++++---------- .../timeline/ui/listvew/ListViewPane.java | 14 +-- 11 files changed, 103 insertions(+), 115 deletions(-) rename Core/src/org/sleuthkit/autopsy/timeline/ui/{VisualizationPanel.fxml => ViewFrame.fxml} (98%) rename Core/src/org/sleuthkit/autopsy/timeline/ui/{VisualizationPanel.java => ViewFrame.java} (87%) diff --git a/Core/src/org/sleuthkit/autopsy/timeline/TimeLineTopComponent.java b/Core/src/org/sleuthkit/autopsy/timeline/TimeLineTopComponent.java index 4d1802bcd5..32479bd0d5 100644 --- a/Core/src/org/sleuthkit/autopsy/timeline/TimeLineTopComponent.java +++ b/Core/src/org/sleuthkit/autopsy/timeline/TimeLineTopComponent.java @@ -59,7 +59,7 @@ import org.sleuthkit.autopsy.timeline.explorernodes.EventRootNode; import org.sleuthkit.autopsy.timeline.ui.HistoryToolBar; import org.sleuthkit.autopsy.timeline.ui.StatusBar; import org.sleuthkit.autopsy.timeline.ui.TimeZonePanel; -import org.sleuthkit.autopsy.timeline.ui.VisualizationPanel; +import org.sleuthkit.autopsy.timeline.ui.ViewFrame; import org.sleuthkit.autopsy.timeline.ui.detailview.tree.EventsTree; import org.sleuthkit.autopsy.timeline.ui.filtering.FilterSetPanel; import org.sleuthkit.autopsy.timeline.zooming.ZoomSettingsPane; @@ -250,8 +250,8 @@ public final class TimeLineTopComponent extends TopComponent implements Explorer final VBox leftVBox = new VBox(5, timeZonePanel, historyToolBar, zoomSettingsPane, leftTabPane); SplitPane.setResizableWithParent(leftVBox, Boolean.FALSE); - final VisualizationPanel visualizationPanel = new VisualizationPanel(controller, eventsTree); - final SplitPane mainSplitPane = new SplitPane(leftVBox, visualizationPanel); + final ViewFrame viewFrame = new ViewFrame(controller, eventsTree); + final SplitPane mainSplitPane = new SplitPane(leftVBox, viewFrame); mainSplitPane.setDividerPositions(0); final Scene scene = new Scene(mainSplitPane); diff --git a/Core/src/org/sleuthkit/autopsy/timeline/actions/SaveSnapshotAsReport.java b/Core/src/org/sleuthkit/autopsy/timeline/actions/SaveSnapshotAsReport.java index e50e1909a8..7649b35705 100644 --- a/Core/src/org/sleuthkit/autopsy/timeline/actions/SaveSnapshotAsReport.java +++ b/Core/src/org/sleuthkit/autopsy/timeline/actions/SaveSnapshotAsReport.java @@ -71,7 +71,7 @@ public class SaveSnapshotAsReport extends Action { "Timeline.ModuleName=Timeline", "SaveSnapShotAsReport.action.dialogs.title=Timeline", "SaveSnapShotAsReport.action.name.text=Snapshot Report", - "SaveSnapShotAsReport.action.longText=Save a screen capture of the visualization as a report.", + "SaveSnapShotAsReport.action.longText=Save a screen capture of the current view of the timeline as a report.", "# {0} - report file path", "SaveSnapShotAsReport.ReportSavedAt=Report saved at [{0}]", "SaveSnapShotAsReport.Success=Success", diff --git a/Core/src/org/sleuthkit/autopsy/timeline/events/RefreshRequestedEvent.java b/Core/src/org/sleuthkit/autopsy/timeline/events/RefreshRequestedEvent.java index 47b04eb479..903cb55178 100644 --- a/Core/src/org/sleuthkit/autopsy/timeline/events/RefreshRequestedEvent.java +++ b/Core/src/org/sleuthkit/autopsy/timeline/events/RefreshRequestedEvent.java @@ -20,7 +20,7 @@ package org.sleuthkit.autopsy.timeline.events; /** * A "local" event published by filteredEventsModel to indicate that the user - * requested that the current visualization be refreshed with out changing any + * requested that the current view be refreshed with out changing any * of the parameters ( to include more up to date tag data for example.) * * This event is not intended for use out side of the Timeline module. diff --git a/Core/src/org/sleuthkit/autopsy/timeline/snapshot/SnapShotReportWriter.java b/Core/src/org/sleuthkit/autopsy/timeline/snapshot/SnapShotReportWriter.java index 75377ff5bb..917d2a0881 100644 --- a/Core/src/org/sleuthkit/autopsy/timeline/snapshot/SnapShotReportWriter.java +++ b/Core/src/org/sleuthkit/autopsy/timeline/snapshot/SnapShotReportWriter.java @@ -70,7 +70,7 @@ public class SnapShotReportWriter { * @param zoomParams The ZoomParams in effect when the snapshot was * taken. * @param generationDate The generation Date of the report. - * @param snapshot A snapshot of the visualization to include in the + * @param snapshot A snapshot of the view to include in the * report. */ public SnapShotReportWriter(Case currentCase, Path reportFolderPath, String reportName, ZoomParams zoomParams, Date generationDate, BufferedImage snapshot) { diff --git a/Core/src/org/sleuthkit/autopsy/timeline/ui/AbstractTimeLineView.java b/Core/src/org/sleuthkit/autopsy/timeline/ui/AbstractTimeLineView.java index faf55aef15..86fa7ec132 100644 --- a/Core/src/org/sleuthkit/autopsy/timeline/ui/AbstractTimeLineView.java +++ b/Core/src/org/sleuthkit/autopsy/timeline/ui/AbstractTimeLineView.java @@ -136,7 +136,7 @@ public abstract class AbstractTimeLineView extends BorderPane { /** * Refresh this view based on current state of zoom / filters. Primarily - * this invokes the background VisualizationUpdateTask returned by + * this invokes the background ViewRefreshTask returned by * getUpdateTask(), which derived classes must implement. * * TODO: replace this logic with a javafx Service ? -jm @@ -291,11 +291,11 @@ public abstract class AbstractTimeLineView extends BorderPane { * @throws Exception If there is an unhandled exception during the * background operation */ - @NbBundle.Messages(value = {"VisualizationUpdateTask.preparing=Analyzing zoom and filter settings"}) + @NbBundle.Messages(value = {"ViewRefreshTask.preparing=Analyzing zoom and filter settings"}) @Override protected Boolean call() throws Exception { updateProgress(-1, 1); - updateMessage(Bundle.VisualizationUpdateTask_preparing()); + updateMessage(Bundle.ViewRefreshTask_preparing()); Platform.runLater(() -> { MaskerPane maskerPane = new MaskerPane(); maskerPane.textProperty().bind(messageProperty()); diff --git a/Core/src/org/sleuthkit/autopsy/timeline/ui/AbstractTimelineChart.java b/Core/src/org/sleuthkit/autopsy/timeline/ui/AbstractTimelineChart.java index fc2ee5ca63..571cd3438c 100644 --- a/Core/src/org/sleuthkit/autopsy/timeline/ui/AbstractTimelineChart.java +++ b/Core/src/org/sleuthkit/autopsy/timeline/ui/AbstractTimelineChart.java @@ -57,7 +57,7 @@ import org.sleuthkit.autopsy.timeline.TimeLineController; import org.sleuthkit.autopsy.timeline.datamodel.eventtype.EventType; /** - * Abstract base class for TimeLineChart based visualizations. + * Abstract base class for TimeLineChart based views. * * @param The type of data plotted along the x axis * @param The type of data plotted along the y axis @@ -74,12 +74,12 @@ public abstract class AbstractTimelineChart of the nodes that are selected in - * this visualization. + * this view. */ protected ObservableList getSelectedNodes() { return selectedNodes; @@ -127,18 +127,18 @@ public abstract class AbstractTimelineChart getXAxis(); /** - * Get the Y-Axis of this Visualization's chart + * Get the Y-Axis of this view's chart * - * @return The vertical axis used by this Visualization's chart + * @return The vertical axis used by this view's chart */ abstract protected Axis getYAxis(); @@ -252,7 +252,7 @@ public abstract class AbstractTimelineChart -