Class HyperLinkSet

java.lang.Object
  |
  +--HyperLinkSet

public class HyperLinkSet
extends java.lang.Object

A set of hyperlinks. The elements doesn't have to be unique.


Constructor Summary
HyperLinkSet()
          Constructor.
 
Method Summary
 void clear()
          Clears the set.
 java.net.URL getURL(int x, int y)
          Finds the HyperLink at (x, y).
 void insert(HyperLink l)
          Inserts a new HyperLink into the set.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HyperLinkSet

public HyperLinkSet()
Constructor.
Method Detail

insert

public void insert(HyperLink l)
Inserts a new HyperLink into the set.
Parameters:
l - the link to be inserted.

getURL

public java.net.URL getURL(int x,
                           int y)
Finds the HyperLink at (x, y).
Parameters:
x - the x coordinate.
y - the y coordinate.
Returns:
the HyperLink at (x, y), or null if no link was found.

clear

public void clear()
Clears the set.