Commit a7dede18 authored by Nico Mack's avatar Nico Mack

Changes to support labelFormat changes via scripts

parent c8e221d3
...@@ -185,6 +185,11 @@ public class Leader extends ValueCorona { ...@@ -185,6 +185,11 @@ public class Leader extends ValueCorona {
shape = labelTransform.createTransformedShape(labelShape); shape = labelTransform.createTransformedShape(labelShape);
labelPosition = new Point(end.x, end.y, 0, ScreenCoordinates.class); labelPosition = new Point(end.x, end.y, 0, ScreenCoordinates.class);
} }
if ((labelFont != null) && (this.labelFormat != null) && (!this.labelFormat.isEmpty())) {
this.variableFormat = new VariableFormat(this.labelFormat);
this.labelText = this.variableFormat.format(this.variable);
this.labelMetrics = labelFont.getLineMetrics(this.labelText, 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