|
|||||||||
| Home >> All >> org >> modama >> gui >> viewer >> [ cursor overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.modama.gui.viewer.cursor
Class EmptyCursor

java.lang.Objectjava.awt.Component
org.modama.gui.viewer.cursor.EmptyCursor
- All Implemented Interfaces:
- java.util.EventListener, java.awt.image.ImageObserver, java.awt.event.KeyListener, java.awt.MenuContainer, javax.swing.event.MouseInputListener, java.awt.event.MouseListener, java.awt.event.MouseMotionListener, java.awt.event.MouseWheelListener, java.io.Serializable
- Direct Known Subclasses:
- ImageInfoCursor, MoveCursor, ZoomCursor
- public class EmptyCursor
- extends java.awt.Component
- implements javax.swing.event.MouseInputListener, java.awt.event.KeyListener, java.awt.event.MouseWheelListener
- extends java.awt.Component
Created by IntelliJ IDEA. User: Administrator Date: Jan 20, 2003 Time: 3:06:20 PM To change this template use Options | File Templates.
| Nested Class Summary |
| Nested classes inherited from class java.awt.Component |
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy |
| Field Summary | |
protected org.modama.gui.viewer.IViewer |
viewer
the image the cursor works on |
| Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
EmptyCursor()
if the image is not on the origin, a translater is used to receive the mouscoordinates, so that 0,0 means the upper left corner of the displayed image, this instance is needed here, because the translater is registered a mouslistener to the org.modama.gui.viewer, and the refference is needed if the cursor should be removed |
|
EmptyCursor(org.modama.gui.viewer.IViewer parent)
|
|
| Method Summary | |
org.modama.gui.viewer.IViewer |
getViewer()
|
void |
keyPressed(java.awt.event.KeyEvent e)
This method is called when a key is pressed. |
void |
keyReleased(java.awt.event.KeyEvent e)
This method is called when a key is released. |
void |
keyTyped(java.awt.event.KeyEvent e)
KeyListener |
void |
mouseClicked(java.awt.event.MouseEvent e)
MouseInputListener |
void |
mouseDragged(java.awt.event.MouseEvent e)
This method is called when the mouse is moved over a component while a button has been pressed. |
void |
mouseEntered(java.awt.event.MouseEvent e)
This method is called when the mouse enters a component. |
void |
mouseExited(java.awt.event.MouseEvent e)
This method is called when the mouse exits a component. |
void |
mouseMoved(java.awt.event.MouseEvent e)
This method is called when the mouse is moved over a component while no button is pressed. |
void |
mousePressed(java.awt.event.MouseEvent e)
This method is called when the mouse is pressed over a component. |
void |
mouseReleased(java.awt.event.MouseEvent e)
This method is called when the mouse is released over a component. |
void |
mouseWheelMoved(java.awt.event.MouseWheelEvent e)
MouseWheelListener |
void |
paint(java.awt.Graphics g)
Paints this component on the screen. |
void |
paint(java.awt.Graphics2D g2D)
|
void |
setViewer(org.modama.gui.viewer.IViewer parent)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
viewer
protected org.modama.gui.viewer.IViewer viewer
- the image the cursor works on
| Constructor Detail |
EmptyCursor
public EmptyCursor()
- if the image is not on the origin, a translater is used to receive the mouscoordinates, so that
0,0 means the upper left corner of the displayed image, this instance is needed here, because the
translater is registered a mouslistener to the org.modama.gui.viewer, and the refference is needed if the cursor
should be removed
EmptyCursor
public EmptyCursor(org.modama.gui.viewer.IViewer parent)
| Method Detail |
getViewer
public org.modama.gui.viewer.IViewer getViewer()
setViewer
public void setViewer(org.modama.gui.viewer.IViewer parent)
paint
public void paint(java.awt.Graphics g)
- Description copied from class:
java.awt.Component - Paints this component on the screen. The clipping region in the graphics
context will indicate the region that requires painting. This is called
whenever the component first shows, or needs to be repaired because
something was temporarily drawn on top. It is not necessary for
subclasses to call
super.paint(g). Components with no area are not painted.
paint
public void paint(java.awt.Graphics2D g2D)
mouseClicked
public void mouseClicked(java.awt.event.MouseEvent e)
- MouseInputListener
- Specified by:
mouseClickedin interfacejava.awt.event.MouseListener
mousePressed
public void mousePressed(java.awt.event.MouseEvent e)
- Description copied from interface:
java.awt.event.MouseListener - This method is called when the mouse is pressed over a component.
- Specified by:
mousePressedin interfacejava.awt.event.MouseListener
mouseReleased
public void mouseReleased(java.awt.event.MouseEvent e)
- Description copied from interface:
java.awt.event.MouseListener - This method is called when the mouse is released over a component.
- Specified by:
mouseReleasedin interfacejava.awt.event.MouseListener
mouseEntered
public void mouseEntered(java.awt.event.MouseEvent e)
- Description copied from interface:
java.awt.event.MouseListener - This method is called when the mouse enters a component.
- Specified by:
mouseEnteredin interfacejava.awt.event.MouseListener
mouseExited
public void mouseExited(java.awt.event.MouseEvent e)
- Description copied from interface:
java.awt.event.MouseListener - This method is called when the mouse exits a component.
- Specified by:
mouseExitedin interfacejava.awt.event.MouseListener
mouseDragged
public void mouseDragged(java.awt.event.MouseEvent e)
- Description copied from interface:
java.awt.event.MouseMotionListener - This method is called when the mouse is moved over a component
while a button has been pressed.
- Specified by:
mouseDraggedin interfacejava.awt.event.MouseMotionListener
mouseMoved
public void mouseMoved(java.awt.event.MouseEvent e)
- Description copied from interface:
java.awt.event.MouseMotionListener - This method is called when the mouse is moved over a component
while no button is pressed.
- Specified by:
mouseMovedin interfacejava.awt.event.MouseMotionListener
mouseWheelMoved
public void mouseWheelMoved(java.awt.event.MouseWheelEvent e)
- MouseWheelListener
- Specified by:
mouseWheelMovedin interfacejava.awt.event.MouseWheelListener
keyTyped
public void keyTyped(java.awt.event.KeyEvent e)
- KeyListener
- Specified by:
keyTypedin interfacejava.awt.event.KeyListener
keyPressed
public void keyPressed(java.awt.event.KeyEvent e)
- Description copied from interface:
java.awt.event.KeyListener - This method is called when a key is pressed.
- Specified by:
keyPressedin interfacejava.awt.event.KeyListener
keyReleased
public void keyReleased(java.awt.event.KeyEvent e)
- Description copied from interface:
java.awt.event.KeyListener - This method is called when a key is released.
- Specified by:
keyReleasedin interfacejava.awt.event.KeyListener
|
|||||||||
| Home >> All >> org >> modama >> gui >> viewer >> [ cursor overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC