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.*; |
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( |
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()) { |
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; |