/[fenfire]/fenfire/org/fenfire/modules/pp/PPCanvasCursor.java
ViewVC logotype

Diff of /fenfire/org/fenfire/modules/pp/PPCanvasCursor.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.5 by mudyc, Tue Apr 8 14:54:14 2003 UTC revision 1.6 by mudyc, Tue Apr 8 20:05:03 2003 UTC
# Line 161  private static final String rcsid = "$Id Line 161  private static final String rcsid = "$Id
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,
# Line 198  private static final String rcsid = "$Id Line 198  private static final String rcsid = "$Id
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");
# Line 219  private static final String rcsid = "$Id Line 220  private static final String rcsid = "$Id
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          }          }

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26