62 |
String text = textvob.text; |
String text = textvob.text; |
63 |
TextStyle style = textvob.style; |
TextStyle style = textvob.style; |
64 |
|
|
65 |
Shape oldClip = g.getClip(); |
info1.getExtRect(rect); |
66 |
|
float bx = rect.x, by = rect.y; |
67 |
|
info2.getExtRect(rect); |
68 |
|
float bw = rect.width, bh = rect.height; |
69 |
|
|
70 |
|
/*Shape oldClip = g.getClip(); |
71 |
info1.getClipRect(rect); |
info1.getClipRect(rect); |
72 |
g.clipRect(rect.x, rect.y, |
g.clipRect(rect.x, rect.y, |
73 |
rect.width+2, rect.height); |
rect.width+2, rect.height); |
74 |
|
|
75 |
info1.getExtRect(rect); |
info1.getExtRect(rect);*/ |
76 |
|
|
77 |
float scale = textvob.scale; |
float scale = textvob.scale; |
78 |
if(scale < 0) |
if(scale < 0) |
79 |
scale = style.getScaleByHeight(rect.height-3); |
scale = style.getScaleByHeight(bh-3); |
80 |
|
|
81 |
float h = style.getHeight(scale); |
float h = style.getHeight(scale); |
82 |
float text_w = style.getWidth(text.substring(0, offs), scale); |
float text_w = style.getWidth(text.substring(0, offs), scale); |
83 |
|
|
84 |
int x = (int)(rect.x + text_w); |
int x = (int)(bx + text_w); |
85 |
int y = (int)(rect.y + rect.height/2 - h/2); |
int y = (int)(by + bh/2 - h/2); |
86 |
|
|
87 |
g.drawLine(x, y, x, y + (int)h); |
g.drawLine(x, y, x, y + (int)h); |
88 |
|
|
89 |
g.setClip(oldClip); |
//g.setClip(oldClip); |
90 |
} |
} |
91 |
} |
} |
92 |
|
|