16 |
*/ |
*/ |
17 |
public float zoom = 1; |
public float zoom = 1; |
18 |
|
|
19 |
|
/** The current virtual-paper coordinates. |
20 |
|
*/ |
21 |
|
public float panx=0, pany=0; |
22 |
|
|
23 |
/** The scale of the background. |
/** The scale of the background. |
24 |
* bgscale in paper coordinates = 1 in background coords. |
* bgscale in paper coordinates = 1 in background coords. |
25 |
*/ |
*/ |
117 |
new Putter(f.getFrame()), |
new Putter(f.getFrame()), |
118 |
placeContent, |
placeContent, |
119 |
true); |
true); |
120 |
else |
else { |
121 |
|
(new Putter(f.getContent())).run(); |
122 |
|
(new Putter(f.getFrame())).run(); |
123 |
|
(new Putter(f.getBlank())).run(); |
124 |
placeContent.run(); |
placeContent.run(); |
125 |
|
} |
126 |
} |
} |
127 |
} |
} |
128 |
|
|
158 |
*/ |
*/ |
159 |
public void setZoomPan(VobScene vs) { |
public void setZoomPan(VobScene vs) { |
160 |
int cs = vs.matcher.getCS("C2F"); |
int cs = vs.matcher.getCS("C2F"); |
161 |
vs.coords.setOrthoParams(cs, 0, 0, 0, zoom, zoom); |
vs.coords.setOrthoParams(cs, 0, -panx*zoom, -pany*zoom, zoom, zoom); |
162 |
} |
} |
163 |
} |
} |