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

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

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

revision 1.12 by mudyc, Thu May 8 17:30:19 2003 UTC revision 1.13 by tjl, Tue May 13 03:14:24 2003 UTC
# Line 37  public static final String rcsid = "$Id$ Line 37  public static final String rcsid = "$Id$
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                            

Legend:
Removed from v.1.12  
changed lines
  Added in v.1.13

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