Method Summary |
|
public void | addURL(String _url) Adds a url and reads the corresponding file. |
public void | addUrl(java.net.URL newUrl) Adds a url and reads the corresponding file. |
public void | drawCrossHairs(Graphics g, int x, int y) This method must be called by derived classes at the end of their paint method. |
public String | getURL(int idx) Returns the current url. |
public String | getURL() Returns the first url if any. |
public java.net.URL | getUrl(int idx) Returns the current url. |
public int | getXPos() Gets the relative mouse position within bounds of the image taking account
of zooming and panning. |
public int | getYPos() Gets the relative mouse position within bounds of the image taking account
of zooming and panning. |
public void | init() Initializes the storage, add listeners for mouse motion and keyboard
handling. |
public void | paint(Graphics g) Renders the WMF image(s). |
public void | pan(int xPercent, int yPercent) Pans the image by the specified percentages, withing the range -80 to 20. |
void | readObject(java.io.ObjectInputStream ois) |
public void | reset() Resets the internal storage and the coordinate system. |
public void | setContent(String content) |
public void | setXPos(int newXPos) |
public void | setYPos(int newYPos) |
void | writeObject(java.io.ObjectOutputStream oos) |
public void | zoom(int percent) Zooms in or out on the image within the range of 25 to 400 percent of the
original image size. |