View Javadoc

1   package org.paneris.bibliomania.fti;
2   
3   import java.util.Enumeration;
4   import java.util.Vector;
5   
6   public class HitAnchor {
7     private String anchor;
8     private Vector areas;
9   
10    HitAnchor(String anchor, Vector areas) {
11      this.anchor = anchor;
12      this.areas = areas;
13    }
14  
15    public String getName() {
16      return anchor;
17    }
18  
19    public Enumeration getHitAreas() {
20      return areas.elements();
21    }
22  
23    public void dump() {
24      System.out.println("  " + anchor);
25      for (Enumeration a = areas.elements(); a.hasMoreElements();)
26        System.out.println("    " + a.nextElement());
27    }
28  }