Class PictureViewer
java.lang.Object
|
+--PictureViewer
- All Implemented Interfaces:
- java.util.EventListener, java.awt.event.MouseMotionListener
- public class PictureViewer
- extends java.lang.Object
- implements java.awt.event.MouseMotionListener
Constructor Summary |
PictureViewer(JavaPicture picture)
Public constructor |
Method Summary |
void |
createZoom(int x,
int y,
int rgb)
Enlarges each pixel to give the affect of zoom |
static void |
main(java.lang.String[] args)
Test Main |
void |
mouseDragged(java.awt.event.MouseEvent e)
|
void |
mouseMoved(java.awt.event.MouseEvent e)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PictureViewer
public PictureViewer(JavaPicture picture)
- Public constructor
createZoom
public void createZoom(int x,
int y,
int rgb)
- Enlarges each pixel to give the affect of zoom
mouseMoved
public void mouseMoved(java.awt.event.MouseEvent e)
- Specified by:
mouseMoved
in interface java.awt.event.MouseMotionListener
mouseDragged
public void mouseDragged(java.awt.event.MouseEvent e)
- Specified by:
mouseDragged
in interface java.awt.event.MouseMotionListener
main
public static void main(java.lang.String[] args)
- Test Main