56 |
|
|
57 |
protected NodeFunction nodeView; |
protected NodeFunction nodeView; |
58 |
|
|
59 |
// Function: node -> pair(scrollblock, rect) |
// Function: node -> pair(scrollblock, View2D.Anchor) |
60 |
private class SB4Node implements NodeFunction { |
private class SB4Node implements NodeFunction { |
61 |
public Object f(ConstGraph g, Object node) { |
public Object f(ConstGraph g, Object node) { |
62 |
Enfilade1D enf = (Enfilade1D)fen.txtfunc.f(g, node); |
Enfilade1D enf = (Enfilade1D)fen.txtfunc.f(g, node); |
79 |
for(int i=0; i<sp.getPageIndex(); i++) |
for(int i=0; i<sp.getPageIndex(); i++) |
80 |
x += b.getPage(i).getSize().width; |
x += b.getPage(i).getSize().width; |
81 |
|
|
|
// return new Pair(b, new Pair(new Rectangle(x,y,w,h), null)); |
|
82 |
return new View2D.Anchor(b, x,y,w,h, null); |
return new View2D.Anchor(b, x,y,w,h, null); |
83 |
} |
} |
84 |
} |
} |