/[gzz]/gzz/gzz/modules/pp/PlaneView.java
ViewVC logotype

Diff of /gzz/gzz/modules/pp/PlaneView.java

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

revision 1.47 by tjl, Sun Oct 6 17:37:46 2002 UTC revision 1.48 by tjl, Mon Oct 7 06:21:10 2002 UTC
# Line 59  public static final String rcsid = "$Id$ Line 59  public static final String rcsid = "$Id$
59      }      }
60    
61      /** Render a single paper into the given coordinate system      /** Render a single paper into the given coordinate system
62         * @param into The coordinate system which has the paper coordinates to
63       */       */
64      public VobScene renderPaper(VobScene vs, Cell cursor, int into, List leftBuoys,      public VobScene renderPaper(VobScene vs, Cell cursor, int offsetInCell,
65                      List rightBuoys) {                      int into, List leftBuoys, List rightBuoys) {
66    
67          if(dbg) pa("GetPaperscene: "+cursor);          if(dbg) pa("GetPaperscene: "+cursor);
68    
69          Cell plane = cursor.h(Win.d_contains);          Cell plane = cursor.h(Win.d_contains);
70          Cell note = plane.s(Win.d_contains);          Cell note = plane.s(Win.d_contains);
71    
72            BgVob bg = BgVob.create(plane);
73    
74          Space space = cursor.space;          Space space = cursor.space;
75          Dim d_1 = space.getDim(Ids.d_1);          Dim d_1 = space.getDim(Ids.d_1);
76          Dim d_clone = space.getDim(Ids.d_clone);          Dim d_clone = space.getDim(Ids.d_clone);
# Line 84  public static final String rcsid = "$Id$ Line 87  public static final String rcsid = "$Id$
87    
88              Vob v = new TextVob(style, 1, note.t());              Vob v = new TextVob(style, 1, note.t());
89    
90              vs.put(v, note, 5, notex, notey, 100, 100);              int cs = vs.coordsys(into, note, 5, notex, notey, 10, 10);
91                vs.map.put(v, cs);
92    
93              if(note.equals(cursor)) {              if(note.equals(cursor)) {
94                  int cursorx = (int)style.getWidth(note.t()                  int cursorx = (int)style.getWidth(note.t()
95                                               .substring(0,Win.offsetInCell),                                               .substring(0,offsetInCell),
96                                               1);                                               1);
97                  if(dbg) pa("Placing text cursor "+notex+" "+cursorx+" "+notey+" "+dh);                  if(dbg) pa("Placing text cursor "+notex+" "+cursorx+" "+notey+" "+dh);
98                  vs.put(new TextCursorVob(), TEXTCURSORKEY,                  vs.put(new TextCursorVob(), TEXTCURSORKEY,

Legend:
Removed from v.1.47  
changed lines
  Added in v.1.48

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