Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
NUI
TULIP-CPS
Commits
a7dede18
Commit
a7dede18
authored
Jun 12, 2020
by
Nico Mack
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changes to support labelFormat changes via scripts
parent
c8e221d3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
CPS/src/lu/list/itis/dkd/tui/widget/corona/Leader.java
CPS/src/lu/list/itis/dkd/tui/widget/corona/Leader.java
+5
-0
No files found.
CPS/src/lu/list/itis/dkd/tui/widget/corona/Leader.java
View file @
a7dede18
...
@@ -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
));
}
}
}
// ---------------------------------------------------------------------------
// ---------------------------------------------------------------------------
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment