|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgistoolkit.server.mapclient.drawer.BasicDrawer
gistoolkit.server.mapclient.drawer.PanDrawer
Class to allow the user to move the image around on the screen.
Constructor Summary | |
PanDrawer()
Creates new PanDrawer |
Method Summary | |
void |
draw(java.awt.Graphics inGraphics,
java.awt.Image inImage,
int inWidth,
int inHeight,
java.awt.image.ImageObserver inImageObserver)
Draw the image on the screen |
java.awt.Point |
getEndPoint()
Retrieve the ending point of the drag in screen coordinates |
java.awt.Point |
getStartPoint()
Retrieve the starting point of the drag in screen coordinates |
void |
mouseDragged(java.awt.event.MouseEvent e)
Called when the user releases the mouse button. |
void |
mousePressed(java.awt.event.MouseEvent e)
|
void |
mouseReleased(java.awt.event.MouseEvent e)
Mouse Methods |
void |
reset()
Reset the state of this draw model |
Methods inherited from class gistoolkit.server.mapclient.drawer.BasicDrawer |
draw, getCommand, getImagePanel, keyPressed, keyReleased, keyTyped, mouseClicked, mouseEntered, mouseExited, mouseMoved, setCommand, setImagePanel |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public PanDrawer()
Method Detail |
public java.awt.Point getStartPoint()
public java.awt.Point getEndPoint()
public void reset()
reset
in class BasicDrawer
public void draw(java.awt.Graphics inGraphics, java.awt.Image inImage, int inWidth, int inHeight, java.awt.image.ImageObserver inImageObserver)
draw
in interface Drawer
draw
in class BasicDrawer
public void mousePressed(java.awt.event.MouseEvent e)
mousePressed
in interface java.awt.event.MouseListener
mousePressed
in class BasicDrawer
public void mouseDragged(java.awt.event.MouseEvent e)
mouseDragged
in interface java.awt.event.MouseMotionListener
mouseDragged
in class BasicDrawer
public void mouseReleased(java.awt.event.MouseEvent e)
BasicDrawer
mouseReleased
in interface java.awt.event.MouseListener
mouseReleased
in class BasicDrawer
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |