/[alph]/alph/org/nongnu/alph/xml/SpanReader.java
ViewVC logotype

Diff of /alph/org/nongnu/alph/xml/SpanReader.java

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

revision 1.6 by tjl, Wed Apr 16 03:44:23 2003 UTC revision 1.7 by benja, Fri Apr 25 14:29:19 2003 UTC
# Line 48  public class SpanReader extends org.xml. Line 48  public class SpanReader extends org.xml.
48          } else if(qName.equals("fts")) {          } else if(qName.equals("fts")) {
49              String t = attributes.getValue("t");              String t = attributes.getValue("t");
50              spans.add(new org.nongnu.alph.impl.FakeTextSpan(t));              spans.add(new org.nongnu.alph.impl.FakeTextSpan(t));
51            } else if(qName.equals("ps")) {
52                String b = attributes.getValue("b");
53                int s = Integer.parseInt(attributes.getValue("s"));
54                int e = Integer.parseInt(attributes.getValue("e"));
55                spans.add(((PageScrollBlock)(scrollBlockFactory.getScrollBlock(b)))
56                    .getSpan(s, e));
57            } else if(qName.equals("pis")) {
58                String b = attributes.getValue("b");
59                int p = Integer.parseInt(attributes.getValue("p"));
60                int x = Integer.parseInt(attributes.getValue("x"));
61                int y = Integer.parseInt(attributes.getValue("y"));
62                int w = Integer.parseInt(attributes.getValue("w"));
63                int h = Integer.parseInt(attributes.getValue("h"));
64                spans.add(((PageScrollBlock)(scrollBlockFactory.getScrollBlock(b)))
65                    .getPage(p).subArea(x,y,w,h));
66          } else {          } else {
67              throw new Error("Unknown element '"+localName+"'");              throw new Error("Unknown element '"+localName+"'");
68          }          }

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7

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