19 package org.sleuthkit.autopsy.timeline.ui.detailview;
21 import javafx.beans.property.SimpleBooleanProperty;
22 import javafx.beans.property.SimpleDoubleProperty;
23 import javafx.beans.property.SimpleObjectProperty;
24 import javafx.collections.SetChangeListener;
31 final class DetailsChartLayoutSettings {
33 DetailsChartLayoutSettings(TimeLineController controller) {
34 controller.getPinnedEvents().addListener((SetChangeListener.Change<? extends TimeLineEvent> change) -> {
36 setPinnedLaneShowing(change.getSet().isEmpty() == false);
40 if (controller.getPinnedEvents().isEmpty() ==
false) {
41 setPinnedLaneShowing(
true);
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);
68 private final SimpleBooleanProperty oneEventPerRow =
new SimpleBooleanProperty(
false);
73 private final SimpleObjectProperty<DescriptionVisibility> descrVisibility =
new SimpleObjectProperty<>(DescriptionVisibility.SHOWN);
78 private final SimpleBooleanProperty pinnedLaneShowing =
new SimpleBooleanProperty(
false);
80 SimpleBooleanProperty bandByTypeProperty() {
84 SimpleBooleanProperty pinnedLaneShowing() {
85 return pinnedLaneShowing;
88 boolean isPinnedLaneShowing() {
89 return pinnedLaneShowing.get();
92 void setPinnedLaneShowing(
boolean showing) {
93 pinnedLaneShowing.set(showing);
96 SimpleBooleanProperty oneEventPerRowProperty() {
97 return oneEventPerRow;
100 SimpleDoubleProperty truncateWidthProperty() {
101 return truncateWidth;
104 SimpleBooleanProperty truncateAllProperty() {
108 SimpleObjectProperty< DescriptionVisibility> descrVisibilityProperty() {
109 return descrVisibility;
112 void setBandByType(Boolean t1) {
116 boolean getBandByType() {
117 return bandByType.get();
120 boolean getTruncateAll() {
121 return truncateAll.get();
124 double getTruncateWidth() {
125 return truncateWidth.get();
128 boolean getOneEventPerRow() {
129 return oneEventPerRow.get();
132 DescriptionVisibility getDescrVisibility() {
133 return descrVisibility.get();