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); |
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, |