161 |
// XXX SinglePaper.i(space, d, window, current).render(vs, into, c2fCS, c2fCSInv, hook); |
// XXX SinglePaper.i(space, d, window, current).render(vs, into, c2fCS, c2fCSInv, hook); |
162 |
} else { |
} else { |
163 |
int zo = (int)(zoom * 100000); |
int zo = (int)(zoom * 100000); |
164 |
int geometry = vs.orthoCS(0, "FocusGeometry",0, zo,0, panx, pany); |
int geometry = vs.orthoBoxCS(0, "FocusGeometry",0, zo,0, 1,1, panx, pany); |
165 |
|
|
166 |
vs.map.put(new UniquePaperVob(URN5Namespace.instance.generateId()), into, geometry); |
vs.map.put(new UniquePaperVob(URN5Namespace.instance.generateId()), into, geometry); |
167 |
(new SpatialPlane(PP.noteType, PP.contains)).renderAWT(vs, into, geometry, |
(new SpatialPlane(PP.noteType, PP.contains)).renderAWT(vs, into, geometry, |
198 |
|
|
199 |
if (m_state[2] == e.BUTTON1_MASK){ |
if (m_state[2] == e.BUTTON1_MASK){ |
200 |
|
|
201 |
|
float[] pt = new float[] { e.getX(), e.getY(), 0 }; |
202 |
|
|
203 |
if (GraphicsAPI.getInstance() instanceof GLAPI) { |
if (GraphicsAPI.getInstance() instanceof GLAPI) { |
|
float[] pt = new float[] { e.getX(), e.getY(), 0 }; |
|
204 |
|
|
205 |
// We must transform into Frame, and then the C2F coordinate system |
// We must transform into Frame, and then the C2F coordinate system |
206 |
int mainctrCS = ((DefaultVobMatcher)oldVobScene.matcher).getCS(0, "Center"); |
int mainctrCS = ((DefaultVobMatcher)oldVobScene.matcher).getCS(0, "Center"); |
220 |
// XXX current = current.h(d.contains); |
// XXX current = current.h(d.contains); |
221 |
AbstractUpdateManager.chg(); |
AbstractUpdateManager.chg(); |
222 |
} else { |
} else { |
223 |
|
int focusFrame = oldVobScene.matcher.getCS("FocusFrame"); |
224 |
|
float box[] = new float[3]; |
225 |
|
box = oldVobScene.coords.transformPoints3(focusFrame, box, null); |
226 |
|
float size[] = new float[2]; |
227 |
|
oldVobScene.coords.getSqSize(focusFrame, size); |
228 |
|
pa(panx+"pt: "+pt[0] +", "+box[0]); |
229 |
|
panx -= ((pt[0] - box[0]) - size[0]/2)/ zoom; |
230 |
|
pany -= ((pt[1] - box[1]) - size[1]/2)/ zoom; |
231 |
|
|
232 |
|
// XXX current = current.h(d.contains); |
233 |
|
AbstractUpdateManager.chg(); |
234 |
} |
} |
235 |
return false; |
return false; |
236 |
} |
} |