Skip to content

Commit ef859b9

Browse files
committed
CSSTUDIO-1928 Update warnings about invalid value ranges for axes: (1) change "Bad" to "Invalid" and (2) print full precision of the values.
1 parent a44dbdb commit ef859b9

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

app/rtplot/src/main/java/org/csstudio/javafx/rtplot/internal/AxisPart.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ public boolean setValueRange(T low, T high)
272272
T newHigh = possiblyNewLowAndHigh.getValue();
273273
if (newLow != low || newHigh != high)
274274
{
275-
logger.log(Level.WARNING, "Axis {0}: Bad value range {1} ... {2}. Adjusting the range to {3} ... {4}.",
275+
logger.log(Level.WARNING, "Axis {0}: Invalid value range {1,number,#.###############E0} ... {2,number,#.###############E0}. Adjusting the range to {3,number,#.###############E0} ... {4,number,#.###############E0}.",
276276
new Object[] { getName(), low, high, newLow, newHigh });
277277
}
278278

app/rtplot/src/main/java/org/csstudio/javafx/rtplot/internal/LinearTicks.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ public void compute(Double low, Double high, final Graphics2D gc, final int scre
9090
double newHigh = adjustedRange.getValue();
9191

9292
if (newLow != low || newHigh != high) {
93-
logger.log(Level.WARNING, "Bad value range for a linear scale {0} ... {1}. Adjusting the range to {2} ... {3}.",
93+
logger.log(Level.WARNING, "Invalid value range for a linear scale {0,number,#.###############E0} ... {1,number,#.###############E0}. Adjusting the range to {2,number,#.###############E0} ... {3,number,#.###############E0}.",
9494
new Object[] {low, high, newLow, newHigh });
9595
high = newHigh;
9696
low = newLow;

app/rtplot/src/main/java/org/csstudio/javafx/rtplot/internal/LogTicks.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public void compute(Double low, Double high, final Graphics2D gc, final int scre
6767
double newHigh = adjustedRange.getValue();
6868

6969
if (newLow != low || newHigh != high) {
70-
logger.log(Level.WARNING, "Bad value range for a logarithmic scale {0} ... {1}. Adjusting the range to {2} ... {3}.",
70+
logger.log(Level.WARNING, "Invalid value range for a logarithmic scale {0,number,#.###############E0} ... {1,number,#.###############E0}. Adjusting the range to {2,number,#.###############E0} ... {3,number,#.###############E0}.",
7171
new Object[] {low, high, newLow, newHigh });
7272
high = newHigh;
7373
low = newLow;

0 commit comments

Comments
 (0)