mirror of
https://github.com/hneemann/Digital.git
synced 2025-09-18 01:14:42 -04:00
removed some old, no longer needed code
This commit is contained in:
parent
661bd7f4cc
commit
9376065cad
@ -33,15 +33,6 @@ public class TextShape implements Shape {
|
|||||||
*/
|
*/
|
||||||
public TextShape(ElementAttributes attr, PinDescriptions inputs, PinDescriptions outputs) {
|
public TextShape(ElementAttributes attr, PinDescriptions inputs, PinDescriptions outputs) {
|
||||||
String text = attr.get(Keys.DESCRIPTION);
|
String text = attr.get(Keys.DESCRIPTION);
|
||||||
|
|
||||||
if (text.length() == 0) { // ToDo: used to be compatible with old files. Can be removed in the future
|
|
||||||
text = attr.getLabel();
|
|
||||||
if (text.length() > 0) {
|
|
||||||
attr.set(Keys.DESCRIPTION, text);
|
|
||||||
attr.set(Keys.LABEL, "");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (text.length() == 0)
|
if (text.length() == 0)
|
||||||
text = Lang.get("elem_Text");
|
text = Lang.get("elem_Text");
|
||||||
this.text = Lang.evalMultilingualContent(text);
|
this.text = Lang.evalMultilingualContent(text);
|
||||||
@ -62,7 +53,6 @@ public class TextShape implements Shape {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void drawTo(Graphic graphic, Style highLight) {
|
public void drawTo(Graphic graphic, Style highLight) {
|
||||||
|
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
Style style = Style.NORMAL.deriveFontStyle(fontSize, true);
|
Style style = Style.NORMAL.deriveFontStyle(fontSize, true);
|
||||||
Vector pos = new Vector(0, 0);
|
Vector pos = new Vector(0, 0);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user