33 |
import java.util.*; |
import java.util.*; |
34 |
import java.util.List; |
import java.util.List; |
35 |
import java.awt.*; |
import java.awt.*; |
36 |
|
import gzz.gfx.gl.GLVobCoorder; |
37 |
|
|
38 |
/** A scrollable plane with notes and a background. Can be integrated into a |
/** A scrollable plane with notes and a background. Can be integrated into a |
39 |
* composite view to show associations. |
* composite view to show associations. |
63 |
* @param into The coordinate system which has the paper coordinates to |
* @param into The coordinate system which has the paper coordinates to |
64 |
*/ |
*/ |
65 |
public VobScene renderPaper(VobScene vs, Cell cursor, int offsetInCell, |
public VobScene renderPaper(VobScene vs, Cell cursor, int offsetInCell, |
66 |
int into, List leftBuoys, List rightBuoys) { |
int viewport2screen, int paper2viewport, List leftBuoys, List rightBuoys) { |
67 |
|
|
68 |
if(dbg) pa("GetPaperscene: "+cursor); |
if(dbg) pa("GetPaperscene: "+cursor); |
69 |
|
|
71 |
Cell note = plane.s(Win.d_contains); |
Cell note = plane.s(Win.d_contains); |
72 |
|
|
73 |
BgVob bg = BgVob.create(plane); |
BgVob bg = BgVob.create(plane); |
74 |
|
int bginto = vs.coords.coordsys(viewport2screen, 500, 0, 0, 1, 1); |
75 |
|
int bgpap = vs.coords.coordsys(paper2viewport, 0, 0, 0, 100, 100); |
76 |
|
vs.matcher.add(bginto, "BGTRANS"); |
77 |
|
vs.map.put(bg, bginto, bgpap); |
78 |
|
|
79 |
|
int into = ((GLVobCoorder)vs.coords).concat(viewport2screen, paper2viewport); |
80 |
|
|
81 |
Space space = cursor.space; |
Space space = cursor.space; |
82 |
Dim d_1 = space.getDim(Ids.d_1); |
Dim d_1 = space.getDim(Ids.d_1); |