Autopsy  4.19.3
Graphical digital forensics platform for The Sleuth Kit and other tools.
DetailsChartLayoutSettings.java
Go to the documentation of this file.
1 /*
2  * Autopsy Forensic Browser
3  *
4  * Copyright 2016 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.ui.detailview;
20 
21 import javafx.beans.property.SimpleBooleanProperty;
22 import javafx.beans.property.SimpleDoubleProperty;
23 import javafx.beans.property.SimpleObjectProperty;
24 import javafx.collections.SetChangeListener;
27 
31 final class DetailsChartLayoutSettings {
32 
33  DetailsChartLayoutSettings(TimeLineController controller) {
34  controller.getPinnedEvents().addListener((SetChangeListener.Change<? extends DetailViewEvent> change) -> {
35  //if the pinned events change and aren't empty, show them
36  setPinnedLaneShowing(change.getSet().isEmpty() == false);
37  });
38 
39  //initialy show the pinned events if they are not empty
40  if (controller.getPinnedEvents().isEmpty() == false) {
41  setPinnedLaneShowing(true);
42  }
43  }
44 
51  private final SimpleBooleanProperty truncateAll = new SimpleBooleanProperty(false);
56  private final SimpleDoubleProperty truncateWidth = new SimpleDoubleProperty(200.0);
61  private final SimpleBooleanProperty bandByType = new SimpleBooleanProperty(false);
62 
68  private final SimpleBooleanProperty oneEventPerRow = new SimpleBooleanProperty(false);
69 
73  private final SimpleObjectProperty<DescriptionVisibility> descrVisibility = new SimpleObjectProperty<>(DescriptionVisibility.SHOWN);
74 
78  private final SimpleBooleanProperty pinnedLaneShowing = new SimpleBooleanProperty(false);
79 
80  SimpleBooleanProperty bandByTypeProperty() {
81  return bandByType;
82  }
83 
84  SimpleBooleanProperty pinnedLaneShowing() {
85  return pinnedLaneShowing;
86  }
87 
88  boolean isPinnedLaneShowing() {
89  return pinnedLaneShowing.get();
90  }
91 
92  void setPinnedLaneShowing(boolean showing) {
93  pinnedLaneShowing.set(showing);
94  }
95 
96  SimpleBooleanProperty oneEventPerRowProperty() {
97  return oneEventPerRow;
98  }
99 
100  SimpleDoubleProperty truncateWidthProperty() {
101  return truncateWidth;
102  }
103 
104  SimpleBooleanProperty truncateAllProperty() {
105  return truncateAll;
106  }
107 
108  SimpleObjectProperty< DescriptionVisibility> descrVisibilityProperty() {
109  return descrVisibility;
110  }
111 
112  void setBandByType(Boolean t1) {
113  bandByType.set(t1);
114  }
115 
116  boolean getBandByType() {
117  return bandByType.get();
118  }
119 
120  boolean getTruncateAll() {
121  return truncateAll.get();
122  }
123 
124  double getTruncateWidth() {
125  return truncateWidth.get();
126  }
127 
128  boolean getOneEventPerRow() {
129  return oneEventPerRow.get();
130  }
131 
132  DescriptionVisibility getDescrVisibility() {
133  return descrVisibility.get();
134  }
135 }

Copyright © 2012-2022 Basis Technology. Generated on: Tue Oct 4 2022
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.