72 |
private int focusFrame = -1; |
private int focusFrame = -1; |
73 |
private int box2paper = -1; |
private int box2paper = -1; |
74 |
private float w, h; |
private float w, h; |
75 |
|
|
76 |
public void renderMain(VobScene vs, int into) { |
public void renderMain(VobScene vs, int into) { |
77 |
vs.coords.getSqSize(into, tmp); |
vs.coords.getSqSize(into, tmp); |
78 |
w = tmp[0]; h = tmp[1]; |
w = tmp[0]; h = tmp[1]; |
85 |
|
|
86 |
view.render(vs, plane, into, into, box2paper); |
view.render(vs, plane, into, into, box2paper); |
87 |
} |
} |
88 |
|
|
89 |
|
/** Cause the changes to the zooming and panning variables |
90 |
|
* to be shown in the given vobscene. |
91 |
|
* This changes the parameters of the coordinate systems |
92 |
|
* created by render(). |
93 |
|
*/ |
94 |
|
private void setZoomPan(VobScene vs, int mainFrame) { |
95 |
|
DefaultVobMatcher m = (DefaultVobMatcher)vs.matcher; |
96 |
|
vs.coords.setOrthoBoxParams(box2paper, 0, |
97 |
|
panX-w/zoom/2, panY-h/zoom/2, |
98 |
|
1/zoom, 1/zoom, w, h); |
99 |
|
} |
100 |
|
|
101 |
public void keystroke(String s) { |
public void keystroke(String s) { |
102 |
// XXX |
// XXX |
103 |
} |
} |
167 |
return false; |
return false; |
168 |
} |
} |
169 |
|
|
|
|
|
|
/** Cause the changes to the zooming and panning variables |
|
|
* to be shown in the given vobscene. |
|
|
* This changes the parameters of the coordinate systems created by render(). |
|
|
*/ |
|
|
private void setZoomPan(VobScene vs, int mainFrame) { |
|
|
DefaultVobMatcher m = (DefaultVobMatcher)vs.matcher; |
|
|
vs.coords.setOrthoBoxParams(box2paper, 0, panX-w*zoom/2, panY-h*zoom/2, |
|
|
1/zoom, 1/zoom, w, h); |
|
|
} |
|
170 |
} |
} |