/[fenfire]/fenfire/org/fenfire/view/lava/RSTText.java
ViewVC logotype

Diff of /fenfire/org/fenfire/view/lava/RSTText.java

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

revision 1.1 by mudyc, Wed May 14 11:54:45 2003 UTC revision 1.2 by mudyc, Thu May 15 15:12:00 2003 UTC
# Line 37  import org.nongnu.libvob.vobs.*; Line 37  import org.nongnu.libvob.vobs.*;
37   *  the given node as text.   *  the given node as text.
38   */   */
39  public class RSTText extends TextHandler implements NodeFunction {  public class RSTText extends TextHandler implements NodeFunction {
40    
41        static public boolean dbg = false;
42      private void p(String s) { System.out.println("RSTText:: "+s); }      private void p(String s) { System.out.println("RSTText:: "+s); }
43    
44      final LineVob cursorVob = new LineVob(0, 0, 0, 1, java.awt.Color.black);      final LineVob cursorVob = new LineVob(0, 0, 0, 1, java.awt.Color.black);
# Line 61  public class RSTText extends TextHandler Line 63  public class RSTText extends TextHandler
63          if (context == null) throw new Error("No context set");          if (context == null) throw new Error("No context set");
64    
65          context.isToBePlaced(node, this);          context.isToBePlaced(node, this);
66          p("placed, offs: "+cursorOffset);          if (dbg) p("placed, offs: "+cursorOffset);
67    
68          Enfilade1D enf = (Enfilade1D)nodeContent.f(g, node);          Enfilade1D enf = (Enfilade1D)nodeContent.f(g, node);
69                    
# Line 78  public class RSTText extends TextHandler Line 80  public class RSTText extends TextHandler
80                                              0, 0, height, height);                                              0, 0, height, height);
81                      vs.put(vob, scaled);                      vs.put(vob, scaled);
82    
83                        /*
84                      // doesn't work, could someone fix this?                      // doesn't work, could someone fix this?
85                      // I get "Error: CallistCoorded with non-glperformable."                      // I get "Error: CallistCoorded with non-glperformable."
86                      if(offs >= 0) {                      if(offs >= 0) {
# Line 87  public class RSTText extends TextHandler Line 90  public class RSTText extends TextHandler
90                                                  x,0, 1,1, 1, height);                                                  x,0, 1,1, 1, height);
91                          vs.map.put(cursorVob, cursor);                          vs.map.put(cursorVob, cursor);
92                      }                      }
93                        */
94                  }                  }
95                  public float getWidth() { return width; }                  public float getWidth() { return width; }
96                  public float getHeight() { return height; }                  public float getHeight() { return height; }

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