54 |
/** Create the unit square coordsys. |
/** Create the unit square coordsys. |
55 |
*/ |
*/ |
56 |
private void createUnitCoordsys() { |
private void createUnitCoordsys() { |
57 |
unitcoordsys = vs.coords.coordsys(whcoordsys, 0, 0, 0, w, h); |
unitcoordsys = vs.orthoCS(whcoordsys, uckey, 0, 0, 0, w, h); |
|
vs.matcher.addSub(whcoordsys, unitcoordsys, uckey); |
|
58 |
} |
} |
59 |
|
|
60 |
/** Return the width of the box in the standardized coordinate |
/** Return the width of the box in the standardized coordinate |
82 |
*/ |
*/ |
83 |
public void setSubWH(Box parent, Object key, float bx, float by, float bw, float bh) { |
public void setSubWH(Box parent, Object key, float bx, float by, float bw, float bh) { |
84 |
vs = parent.vs; |
vs = parent.vs; |
85 |
whcoordsys = vs.coords.coordsys(parent.whcoordsys, 0, bx, by, 1, 1); |
whcoordsys = vs.orthoCS(parent.whcoordsys, key, 0, bx, by, 1, 1); |
86 |
unitcoordsys = -1; |
unitcoordsys = -1; |
87 |
w = bw; |
w = bw; |
88 |
h = bh; |
h = bh; |