110 |
ppAct.assocNotes(noteHome, 1, noteA1) |
ppAct.assocNotes(noteHome, 1, noteA1) |
111 |
|
|
112 |
if 2: |
if 2: |
113 |
sc2 = myalph.addFile(java.io.File('testdata/paper.pdf'), 'application/pdf') |
#sc2 = myalph.addFile(java.io.File('testdata/paper.pdf'), 'application/pdf') |
114 |
|
|
115 |
noteH1 = Nodes.get(ppAct.newNote(paperHome, 200, 150, '')) |
#noteH1 = Nodes.get(ppAct.newNote(paperHome, 200, 150, '')) |
116 |
noteH2 = Nodes.get(ppAct.newNote(paperHome, -400, 0, 'foobar')) |
noteH2 = Nodes.get(ppAct.newNote(paperHome, -400, 0, 'foobar')) |
117 |
noteB2 = Nodes.get(ppAct.newNote(paperB, 1200, 300, 'This is yet another test!')) |
noteB2 = Nodes.get(ppAct.newNote(paperB, 1200, 300, 'This is yet another test!')) |
118 |
ppAct.assocNotes(noteB2, 1, noteH2) |
ppAct.assocNotes(noteB2, 1, noteH2) |
119 |
|
|
120 |
span = sc2.getCurrent().getPage(0).subArea(30, 150, 270, 200); |
#span = sc2.getCurrent().getPage(0).subArea(30, 150, 270, 200); |
121 |
fen.txt.set(noteH1, enfMaker.makeEnfilade(span)) |
#fen.txt.set(noteH1, enfMaker.makeEnfilade(span)) |
122 |
|
|
123 |
|
paperC = "urn:urn-5:P7OMBN+yp3-m-AkulZN-NeaJV9Sl:_5" |
124 |
|
fen.graph.add(Nodes.get(paperC), RDF.type, CANVAS2D.Canvas); |
125 |
|
noteC1 = Nodes.get(ppAct.newNote(paperC, 0, 0, 'baz')) |
126 |
|
noteC2 = Nodes.get(ppAct.newNote(paperC, -200, 50, 'bar')) |
127 |
|
noteB3 = Nodes.get(ppAct.newNote(paperB, 1150, 600, 'foo')) |
128 |
|
noteA4 = Nodes.get(ppAct.newNote(paperA, -100, -200, 'Lorem ipsum dolor')) |
129 |
|
|
130 |
|
ppAct.assocNotes(noteC1, 1, noteB3) |
131 |
|
ppAct.assocNotes(noteA4, 1, noteC2) |
132 |
|
|
133 |
|
|
134 |
|
|
135 |
textstyle = vob.GraphicsAPI.getInstance().getTextStyle("sans", 0, 24) |
textstyle = vob.GraphicsAPI.getInstance().getTextStyle("sans", 0, 24) |