37 |
int matchingParent, int box2screen, int box2plane) |
int matchingParent, int box2screen, int box2plane) |
38 |
{ |
{ |
39 |
|
|
40 |
if (RDFUtil.isNodeType(fen, container, PP.Paper) || |
if (!RDFUtil.isNodeType(fen, container, CANVAS2D.Canvas)) |
41 |
RDFUtil.isNodeType(fen, container, RST.Canvas)) ; |
throw new Error("plane is NOT a container!"); |
|
else throw new Error("plane is NOT a container!"); |
|
42 |
|
|
43 |
int paper2box = vs.invertCS(box2plane, "canvasview_INv"); |
int paper2box = vs.invertCS(box2plane, "canvasview_INv"); |
44 |
int paper2screen = vs.concatCS(box2screen, "canvasview_conc", |
int paper2screen = vs.concatCS(box2screen, "canvasview_conc", |
45 |
paper2box); |
paper2box); |
46 |
|
|
47 |
Iterator iter = fen.constgraph.findN_11X_Iter(container, |
Iterator iter = fen.constgraph.findN_11X_Iter(container, |
48 |
PAPER.contains); |
CANVAS2D.contains); |
49 |
if (dbg) pa("Canvas begin"); |
if (dbg) pa("Canvas begin"); |
50 |
while (iter.hasNext()) { |
while (iter.hasNext()) { |
51 |
Object n = iter.next(); |
Object n = iter.next(); |
52 |
|
|
53 |
// get coords |
// get coords |
54 |
int x = RDFUtil.getInt(fen, n, SPATIAL.coordX); |
int x = RDFUtil.getInt(fen, n, CANVAS2D.x); |
55 |
int y = RDFUtil.getInt(fen, n, SPATIAL.coordY); |
int y = RDFUtil.getInt(fen, n, CANVAS2D.y); |
56 |
|
|
57 |
Placeable p = (Placeable)nodeView.f(fen.constgraph, n); |
Placeable p = (Placeable)nodeView.f(fen.constgraph, n); |
58 |
|
|