73 |
def place(self, node, vs, cs): |
def place(self, node, vs, cs): |
74 |
p = self.viewfunc.f(self.fen.graph, node) |
p = self.viewfunc.f(self.fen.graph, node) |
75 |
|
|
76 |
cs_background = vs.coords.ortho(cs,0, 0,0, p.getWidth(), p.getHeight()) |
cs_background = vs.orthoCS(cs,'WHITE_GROUND',0, 0,0, p.getWidth(), p.getHeight()) |
77 |
vs.put(whiteground, cs_background) |
vs.put(whiteground, cs_background) |
78 |
|
|
79 |
cs = vs.coords.orthoBox(cs,0, 0,0, 1,1, p.getWidth(), p.getHeight()) |
cs = vs.orthoBoxCS(cs,'CONTENT',0, 0,0, 1,1, p.getWidth(), p.getHeight()) |
80 |
p.place(vs, cs) |
p.place(vs, cs) |
81 |
|
|
82 |
|
|
289 |
def putNodeContent(self, vs, node, cs): |
def putNodeContent(self, vs, node, cs): |
290 |
p = self.nodef.f(self.fen.graph, node) |
p = self.nodef.f(self.fen.graph, node) |
291 |
|
|
292 |
cs_background = vs.coords.ortho(cs,0, 0,0, p.getWidth(), p.getHeight()) |
cs_background = vs.orthoCS(cs,'background',0, 0,0, p.getWidth(), p.getHeight()) |
293 |
vs.put(whiteground, cs_background) |
vs.put(whiteground, cs_background) |
294 |
|
|
295 |
cs = vs.coords.orthoBox(cs,0, 0,0, 1,1, p.getWidth(), p.getHeight()) |
cs = vs.orthoBoxCS(cs,'content',0, 0,0, 1,1, p.getWidth(), p.getHeight()) |
296 |
p.place(vs, cs) |
p.place(vs, cs) |
297 |
|
|
298 |
|
|