Commit 63ce5d3f authored by Nico Mack's avatar Nico Mack

Partial implementation of ticket https://sia.list.lu/issues/327

parent cddc6da2
......@@ -145,9 +145,9 @@ public class NumericalVariable extends Variable<Double> {
/** {@inheritDoc} */
@Override
public void setValue(Double newValue) {
// Double newValue;
// newValue = (Double) this.valueFromString(value.toString());
public void setValue(Double rawValue) {
double newValue = rawValue + 0.0;
if (newValue < this.minValue)
newValue = this.minValue;
else if (newValue > this.maxValue)
......
......@@ -333,7 +333,7 @@ public class ArcGraph extends ValueCorona {
StringBuilder labelBuilder = new StringBuilder(this.variable.getDisplayName()).append(" "); //$NON-NLS-1$
labelBuilder.append(this.variable.toString());
this.label = labelBuilder.toString();
this.labelMetrics = textFont.getLineMetrics(label.toString(), new FontRenderContext(null, true, true));
this.labelMetrics = textFont.getLineMetrics(label, new FontRenderContext(null, true, true));
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment