/[fenfire]/fenfire/org/fenfire/view/CoordinatePlaneView.java
ViewVC logotype

Diff of /fenfire/org/fenfire/view/CoordinatePlaneView.java

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

revision 1.2 by mudyc, Wed Mar 26 09:12:24 2003 UTC revision 1.3 by mudyc, Wed Mar 26 14:00:25 2003 UTC
# Line 3  Line 3 
3  package org.fenfire.view;  package org.fenfire.view;
4  import org.fenfire.modules.pp.*;  import org.fenfire.modules.pp.*;
5  import org.fenfire.view.buoy.*;  import org.fenfire.view.buoy.*;
6    import org.fenfire.vocab.*;
7  import org.fenfire.util.*;  import org.fenfire.util.*;
8  import org.nongnu.libvob.*;  import org.nongnu.libvob.*;
9  import org.nongnu.libvob.gl.*;  import org.nongnu.libvob.gl.*;
# Line 27  public static final String rcsid = "$Id$ Line 28  public static final String rcsid = "$Id$
28    
29      static private Vob frame = null;      static private Vob frame = null;
30      private int cursorBox;      private int cursorBox;
     private PPVocab PP = new PPVocab();  
31      public CoordinatePlaneView() {      public CoordinatePlaneView() {
32          if (frame == null) {          if (frame == null) {
33              this.frame = GLRen.createCallListBoxCoorded(              this.frame = GLRen.createCallListBoxCoorded(
# Line 82  public static final String rcsid = "$Id$ Line 82  public static final String rcsid = "$Id$
82            if (!ok) throw new Error("Not a papertype on planeview!");            if (!ok) throw new Error("Not a papertype on planeview!");
83          */          */
84    
85          Selector slctr = new SelectorImpl((Resource)node, PP.Contains, (RDFNode) null);          Selector slctr = new SelectorImpl((Resource)node, PP.contains, (RDFNode) null);
86          StmtIterator iter = model.listStatements(slctr);          StmtIterator iter = model.listStatements(slctr);
87          Statement stmt = null;          Statement stmt = null;
88          while (iter.hasNext()) {          while (iter.hasNext()) {
# Line 92  public static final String rcsid = "$Id$ Line 92  public static final String rcsid = "$Id$
92              int[] coords = new int[2];              int[] coords = new int[2];
93    
94              // get coords              // get coords
95              coords[0] = ShortRDF.getInt(model, note, PP.CoordX);              coords[0] = ShortRDF.getInt(model, note, SPATIAL.coordX);
96              coords[1] = ShortRDF.getInt(model, note, PP.CoordY);              coords[1] = ShortRDF.getInt(model, note, SPATIAL.coordY);
97    
98              // get size XXX              // get size XXX
99              boolean drawFrame = false;              boolean drawFrame = false;

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

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