allow multi line text

This commit is contained in:
hneemann 2017-07-05 08:06:24 +02:00
parent 9bc391d09b
commit 954e96a9bc
2 changed files with 10 additions and 3 deletions

View File

@ -17,6 +17,9 @@ planned as v0.13
- Comments are allowed in hex files.
- Added zooming to measurement graphs.
- Test results can be displayed as measurement graphs.
- The Text component is able to show multiple lines.
CAUTION: If you modify the text in an text component created in the past, you have to
reenter the text.
v0.12.1, released on 05. Jun 2016
- added a fuse to simulate a PROM or PAL.

View File

@ -31,6 +31,10 @@ public class TextShape implements Shape {
*/
public TextShape(ElementAttributes attr, PinDescriptions inputs, PinDescriptions outputs) {
String text = attr.get(Keys.DESCRIPTION);
if (text.length() == 0) // ToDo: used to show the text from old files.
text = attr.getLabel();
if (text.length() == 0)
text = Lang.get("elem_Text");
this.text = text;