File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
app/databrowser/src/main/java/org/csstudio/trends/databrowser3/ui/selection Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change 1212import org .csstudio .trends .databrowser3 .model .ModelItem ;
1313import org .csstudio .trends .databrowser3 .persistence .XMLPersistence ;
1414import org .csstudio .trends .databrowser3 .ui .plot .ModelBasedPlot ;
15+ import org .phoebus .util .time .TimeInterval ;
1516import org .phoebus .util .time .TimeRelativeInterval ;
1617
1718import javafx .scene .image .Image ;
@@ -53,6 +54,13 @@ public TimeRelativeInterval getPlotTime()
5354 return model .getTimerange ();
5455 }
5556
57+ public void makeTimeRangeAbsolute ()
58+ {
59+ TimeInterval absoluteInterval = model .getTimerange ().toAbsoluteInterval ();
60+ TimeRelativeInterval absoluteTimeInterval = TimeRelativeInterval .of (absoluteInterval .getStart (), absoluteInterval .getEnd ());
61+ model .setTimerange (absoluteTimeInterval );
62+ }
63+
5664 /**
5765 * Get the title of the selected databrowser plot
5866 * @return plot title
You can’t perform that action at this time.
0 commit comments