Class PictureViewer

java.lang.Object
  |
  +--PictureViewer
All Implemented Interfaces:
java.awt.event.ActionListener, java.util.EventListener, java.awt.event.MouseListener, java.awt.event.MouseMotionListener

public class PictureViewer
extends java.lang.Object
implements java.awt.event.MouseMotionListener, java.awt.event.ActionListener, java.awt.event.MouseListener


Constructor Summary
PictureViewer(JavaPicture picture)
          Public constructor
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent a)
          Controls the zoom menu bar
 void changeToBaseOne()
          Changes the number system to start at one
static void main(java.lang.String[] args)
          Test Main
 void mouseClicked(java.awt.event.MouseEvent e)
           
 void mouseDragged(java.awt.event.MouseEvent e)
          Controls the updating of the information values.
 void mouseEntered(java.awt.event.MouseEvent e)
           
 void mouseExited(java.awt.event.MouseEvent e)
           
 void mouseMoved(java.awt.event.MouseEvent e)
           
 void mousePressed(java.awt.event.MouseEvent e)
          Controls the updating of the information values.
 void mouseReleased(java.awt.event.MouseEvent e)
           
 void repaint()
          Repaints the image on the scrollpane.
 void setTitle(java.lang.String title)
          Set the title of the window
 void zoom(double factor)
          Zooms in the on picture by scaling the image.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PictureViewer

public PictureViewer(JavaPicture picture)
Public constructor

Method Detail

changeToBaseOne

public void changeToBaseOne()
Changes the number system to start at one


setTitle

public void setTitle(java.lang.String title)
Set the title of the window


zoom

public void zoom(double factor)
Zooms in the on picture by scaling the image. It is extremely memory intensive.


repaint

public void repaint()
Repaints the image on the scrollpane. Called from update picture


mouseDragged

public void mouseDragged(java.awt.event.MouseEvent e)
Controls the updating of the information values.

Specified by:
mouseDragged in interface java.awt.event.MouseMotionListener

mouseMoved

public void mouseMoved(java.awt.event.MouseEvent e)
Specified by:
mouseMoved in interface java.awt.event.MouseMotionListener

mouseClicked

public void mouseClicked(java.awt.event.MouseEvent e)
Specified by:
mouseClicked in interface java.awt.event.MouseListener

mousePressed

public void mousePressed(java.awt.event.MouseEvent e)
Controls the updating of the information values.

Specified by:
mousePressed in interface java.awt.event.MouseListener

mouseReleased

public void mouseReleased(java.awt.event.MouseEvent e)
Specified by:
mouseReleased in interface java.awt.event.MouseListener

mouseEntered

public void mouseEntered(java.awt.event.MouseEvent e)
Specified by:
mouseEntered in interface java.awt.event.MouseListener

mouseExited

public void mouseExited(java.awt.event.MouseEvent e)
Specified by:
mouseExited in interface java.awt.event.MouseListener

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent a)
Controls the zoom menu bar

Specified by:
actionPerformed in interface java.awt.event.ActionListener

main

public static void main(java.lang.String[] args)
Test Main