/[fenfire]/fenfire/org/fenfire/view/DefaultNodeView.java
ViewVC logotype

Diff of /fenfire/org/fenfire/view/DefaultNodeView.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.8 by mudyc, Wed Apr 23 21:07:30 2003 UTC revision 1.9 by tjl, Thu Apr 24 13:29:12 2003 UTC
# Line 21  private static final String rcsid = "$Id Line 21  private static final String rcsid = "$Id
21      }      }
22    
23      public void place(Object node, VobScene vs, int box) {      public void place(Object node, VobScene vs, int box) {
24          Enfilade1D enf = fen.txt.get(node);          Enfilade1D enf = (Enfilade1D)fen.txtfunc.f(fen.constgraph, node);
25          List l = enf.getList();          List l = enf.getList();
26          if (l.get(0) instanceof TextSpan)          if (l.get(0) instanceof TextSpan)
27              text.place(vs, box, enf);              text.place(vs, box, enf);
# Line 32  private static final String rcsid = "$Id Line 32  private static final String rcsid = "$Id
32      public void getSize(Object node, float[] size, float scale) {      public void getSize(Object node, float[] size, float scale) {
33          if (size == null) return;          if (size == null) return;
34    
35          Enfilade1D enf = fen.txt.get(node);          Enfilade1D enf = (Enfilade1D)fen.txtfunc.f(fen.constgraph, node);
36          List l = enf.getList();          List l = enf.getList();
37          if (l.get(0) instanceof TextSpan)          if (l.get(0) instanceof TextSpan)
38              text.getSize(fen.txt.get(node), size);              text.getSize((Enfilade1D)fen.txtfunc.f(fen.constgraph, node), size);
39          else // PageSpan          else // PageSpan
40              page.getSize(fen.txt.get(node), size);              page.getSize((Enfilade1D)fen.txtfunc.f(fen.constgraph, node), size);
41    
42          size[0] *= scale;          size[0] *= scale;
43          size[1] *= scale;          size[1] *= scale;

Legend:
Removed from v.1.8  
changed lines
  Added in v.1.9

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26