59 |
int w = size.width, h = size.height; |
int w = size.width, h = size.height; |
60 |
|
|
61 |
// The coordinate system where the lines start |
// The coordinate system where the lines start |
62 |
int orig = sc.coords.coordsys(into, 0, 0, 0, w, h); |
int orig = sc.coordsys(into, origKey, 0, 0, 0, w, h); |
|
sc.matcher.add(orig, origKey); |
|
63 |
|
|
64 |
// The coordinate systems of the dimensions |
// The coordinate systems of the dimensions |
65 |
int[] targ = { |
int[] targ = { |
66 |
sc.coords.coordsys(into, 0, w, 0, w, h), |
sc.coordsys(into, dimKeys[0], 0, w, 0, w, h), |
67 |
sc.coords.coordsys(into, 0, 0, h, w, h), |
sc.coordsys(into, dimKeys[1], 0, 0, h, w, h), |
68 |
sc.coords.coordsys(into, 0, w, h, w, h) |
sc.coordsys(into, dimKeys[2], 0, w, h, w, h) |
69 |
}; |
}; |
70 |
|
|
71 |
for(int i=0; i<3; i++) { |
for(int i=0; i<3; i++) { |
|
sc.matcher.add(targ[i], dimKeys[i]); |
|
72 |
sc.map.put(conn, targ[i], orig); |
sc.map.put(conn, targ[i], orig); |
73 |
sc.map.put(bg, targ[i]); |
sc.map.put(bg, targ[i]); |
74 |
int cs = sc.coords.coordsys(targ[i], 0, 0, 0, |
int cs = sc.coordsys(targ[i], dimKeys[i], 0, 0, 0, |
75 |
style.getWidth(dims[i].name, 1), |
style.getWidth(dims[i].name, 1), |
76 |
style.getHeight(1)); |
style.getHeight(1)); |
|
sc.matcher.add(cs, dimKeys[i]); |
|
77 |
sc.map.put(new TextVob(style, dims[i].name), cs); |
sc.map.put(new TextVob(style, dims[i].name), cs); |
78 |
} |
} |
79 |
|
|