Class FWImageMap

All Implemented Interfaces:
MouseListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible

public class FWImageMap extends JPanel implements MouseListener
Author:
Jim Graham, Sun Microsystems, Andreas Enders
See Also:
  • Constructor Details

    • FWImageMap

      public FWImageMap(Image aImage, Map<String,Object> aParameters)
      Parameters:
      aImage -
      aParameters -
  • Method Details

    • init

      public void init()
      Initialize the applet. Get attributes. Initialize the ImageAreas. Each ImageArea is a subclass of the class ImageArea, and is specified with an attribute of the form: areaN=ImageAreaClassName,arguments... The ImageAreaClassName is parsed off and a new instance of that class is created. The initializer for that class is passed a reference to the applet and the remainder of the attribute string, from which the class should retrieve any information it needs about the area it controls and the actions it needs to take within that area.
    • imageUpdate

      public boolean imageUpdate(Image img, int infoflags, int x, int y, int width, int height)
      Handle updates from images being loaded.
      Specified by:
      imageUpdate in interface ImageObserver
      Overrides:
      imageUpdate in class Component
    • paint

      public void paint(Graphics aG)
      Paint the image and all active highlights.
      Overrides:
      paint in class JComponent
    • update

      public void update(Graphics g)
      Update the active highlights on the image.
      Overrides:
      update in class JComponent
    • mouseClicked

      public void mouseClicked(MouseEvent aE)
      Specified by:
      mouseClicked in interface MouseListener
    • mouseEntered

      public void mouseEntered(MouseEvent aE)
      Specified by:
      mouseEntered in interface MouseListener
    • mouseExited

      public void mouseExited(MouseEvent aE)
      Specified by:
      mouseExited in interface MouseListener
    • mousePressed

      public void mousePressed(MouseEvent aE)
      Specified by:
      mousePressed in interface MouseListener
    • mouseReleased

      public void mouseReleased(MouseEvent aE)
      Specified by:
      mouseReleased in interface MouseListener