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

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

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

revision 1.1 by mudyc, Wed May 7 04:08:04 2003 UTC revision 1.2 by tjl, Tue May 13 03:14:23 2003 UTC
# Line 3  Line 3 
3  package org.fenfire.modules.pp;  package org.fenfire.modules.pp;
4  import org.fenfire.*;  import org.fenfire.*;
5  import org.fenfire.vocab.*;  import org.fenfire.vocab.*;
6    import org.fenfire.vocab.lava.RST;
7  import org.fenfire.util.*;  import org.fenfire.util.*;
8  import org.fenfire.swamp.*;  import org.fenfire.swamp.*;
9  import java.io.IOException;  import java.io.IOException;
# Line 96  public static final String rcsid = "$Id$ Line 97  public static final String rcsid = "$Id$
97          while (iter.hasNext() ) {          while (iter.hasNext() ) {
98              if (dbg) p("paragraph");              if (dbg) p("paragraph");
99              Object parag = iter.next();              Object parag = iter.next();
100              int paragX = RDFUtil.getInt(fen, parag, SPATIAL.coordX);              int paragX = RDFUtil.getInt(fen, parag, CANVAS2D.x);
101              int paragY = RDFUtil.getInt(fen, parag, SPATIAL.coordY);              int paragY = RDFUtil.getInt(fen, parag, CANVAS2D.y);
102              Object senten = fen.graph.find1_11X(parag, RST.firstSentence);              Object senten = fen.graph.find1_11X(parag, RST.firstSentence);
103              for (int iy=0; senten != null; iy++) {              for (int iy=0; senten != null; iy++) {
104                  if (dbg) p("senten, "+iy);                  if (dbg) p("senten, "+iy);
# Line 108  public static final String rcsid = "$Id$ Line 109  public static final String rcsid = "$Id$
109                      int y = paragY + iy*30;                      int y = paragY + iy*30;
110    
111                      // set coords                      // set coords
112                      fen.graph.set1_11X(node, SPATIAL.coordX, Nodes.getStringLiteral(""+x) );                      fen.graph.set1_11X(node, CANVAS2D.x, Nodes.getStringLiteral(""+x) );
113                      fen.graph.set1_11X(node, SPATIAL.coordY, Nodes.getStringLiteral(""+y) );                      fen.graph.set1_11X(node, CANVAS2D.y, Nodes.getStringLiteral(""+y) );
114    
115                      Placeable p = (Placeable)nodef.f(fen.constgraph, node);                      Placeable p = (Placeable)nodef.f(fen.constgraph, node);
116                      p("x before: "+x);                      p("x before: "+x);

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

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