|
|||||||||||
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.BoxDrawer
Draws a box on the screen.
Constructor Summary | |
BoxDrawer()
Creates new BoxDrawer |
Method Summary | |
void |
draw(java.awt.Graphics inGraphics,
java.awt.Image inImage,
java.awt.image.ImageObserver inImageObserver)
Draw the image on the screen |
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.Color |
getBoxColor()
Retrieves the color the box will be drawn |
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)
Called when the user releases the mouse butotn. |
void |
mouseReleased(java.awt.event.MouseEvent e)
Called when the user releases the mouse butotn. |
void |
reset()
Reset the state of this draw model |
void |
setBoxColor(java.awt.Color inColor)
Set the color to draw the box |
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 BoxDrawer()
Method Detail |
public java.awt.Color getBoxColor()
public void setBoxColor(java.awt.Color inColor)
public java.awt.Point getStartPoint()
public java.awt.Point getEndPoint()
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 reset()
reset
in class BasicDrawer
public void mouseDragged(java.awt.event.MouseEvent e)
mouseDragged
in interface java.awt.event.MouseMotionListener
mouseDragged
in class BasicDrawer
public void mousePressed(java.awt.event.MouseEvent e)
mousePressed
in interface java.awt.event.MouseListener
mousePressed
in class BasicDrawer
public void mouseReleased(java.awt.event.MouseEvent e)
mouseReleased
in interface java.awt.event.MouseListener
mouseReleased
in class BasicDrawer
public void draw(java.awt.Graphics inGraphics, java.awt.Image inImage, java.awt.image.ImageObserver inImageObserver)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |