Skip to content
Snippets Groups Projects
Commit 246e537e authored by Moemoea Fierin's avatar Moemoea Fierin
Browse files

[ZOOM] Issue #31: missing tmlcp in previous commit

- added text disappearance func to all tmlcp
parent 5f7049c7
No related branches found
No related tags found
1 merge request!287Resolve "Zoom on all diagrams"
......@@ -146,7 +146,7 @@ public class TMLCPForLoop extends TADForLoop /* Issue #69 TGCWithoutInternalComp
// Issue #31 Useless line
//g.drawLine(x + width, y + height / 2, x + width + lineLength, y + height / 2);
g.drawString(value, x + (width - textWidth) / 2, y + textY);
drawSingleString(g,value, x + (width - textWidth) / 2, y + textY);
}
@Override
......
......@@ -115,12 +115,12 @@ public class TMLCPRefAD extends TADOneLineText /* Issue #69 TGCOneLineText*/ {
g.drawLine(x+(width/2), y+height, x+(width/2), y + lineLength + height);
final int offset = scale( 15 );
g.drawString(name, x + (width - w) / 2, y + textY + offset /* 15 Issue #31 */ );
drawSingleString(g,name, x + (width - w) / 2, y + textY + offset /* 15 Issue #31 */ );
// Issue #31
final int adOffsetX = scale( 3 );
final int adOffsetY = scale( 12 );
g.drawString("ad", x + adOffsetX /*3*/, y + adOffsetY );
drawSingleString(g,"ad", x + adOffsetX /*3*/, y + adOffsetY );
g.drawLine(x, y + offset /*15*/, x + offset /* 15 */, y+ offset /*15 Issue #31 */);
final int adBoxOffsetX = scale( 25 );
......
......@@ -125,11 +125,11 @@ public class TMLCPRefSD extends TADOneLineText /* Issue #69 TGCOneLineText*/ {
g.drawLine(x+(width/2), y+height, x+(width/2), y + lineLength + height);
final int offsetDefault = scale( 15 );
g.drawString(name, x + (width - w) / 2, y + textY + offsetDefault /*15*/);
drawSingleString(g,name, x + (width - w) / 2, y + textY + offsetDefault /*15*/);
final int sdOffsetX = scale( 3 );
final int sdOffsetY = scale( 12 );
g.drawString("sd", x + sdOffsetX /*3*/, y + sdOffsetY /*12*/);
drawSingleString(g,"sd", x + sdOffsetX /*3*/, y + sdOffsetY /*12*/);
g.drawLine(x, y + offsetDefault /*15*/, x + offsetDefault /*15*/, y + offsetDefault /*15*/);
final int sdBoxOffsetX = scale( 25 );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment