168 |
float y = 10-h/2; |
float y = 10-h/2; |
169 |
|
|
170 |
int textCs = sc.orthoCS(into, "text", 0, x, y, h, h); |
int textCs = sc.orthoCS(into, "text", 0, x, y, h, h); |
|
int propCs = sc.orthoCS(into, "property", |
|
|
0, 0, -h*.8f, h*.8f, h*.8f); |
|
171 |
sc.map.put(new TextVob(style, s), textCs); |
sc.map.put(new TextVob(style, s), textCs); |
172 |
|
|
173 |
if(prop != null) { |
if(prop != null) { |
174 |
s = prop.toString(); |
s = prop.toString(); |
175 |
s = names.getAbbrev(s); |
s = names.getAbbrev(s); |
176 |
if(s.length() > 25) s = s.substring(s.length()-25); |
if(s.length() > 25) s = s.substring(s.length()-25); |
177 |
|
if(dir > 0) |
178 |
|
x = 0; |
179 |
|
else |
180 |
|
x = 250 - style.getWidth(s, .8f); |
181 |
|
h = style.getHeight(.8f); |
182 |
|
int propCs = sc.orthoCS(into, "property", |
183 |
|
0, x, -h, h, h); |
184 |
sc.map.put(new TextVob(style, s), propCs); |
sc.map.put(new TextVob(style, s), propCs); |
185 |
} |
} |
186 |
} |
} |