|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.EventObject
org.esa.beam.framework.ui.tool.ToolInputEvent
@Deprecated public class ToolInputEvent
A special event type which is fired by tool-aware components to inform a tool about user inputs via the mouse or the keyboard.
| Field Summary |
|---|
| Fields inherited from class java.util.EventObject |
|---|
source |
| Constructor Summary | |
|---|---|
ToolInputEvent(Component source,
KeyEvent keyEvent,
int pixelX,
int pixelY,
boolean pixelPosValid)
Deprecated. Constructs a new tool input event generated by a key event. |
|
ToolInputEvent(Component source,
MouseEvent mouseEvent,
int pixelX,
int pixelY,
boolean pixelPosValid)
Deprecated. Constructs a new tool input event generated by a mouse event. |
|
| Method Summary | |
|---|---|
Component |
getComponent()
Deprecated. Returns the source component. |
KeyEvent |
getKeyEvent()
Deprecated. Returns the key event or null if this event was generated by a mouse event. |
MouseEvent |
getMouseEvent()
Deprecated. Returns the mouse event or null if this event was generated by a key event. |
Point |
getPixelPos()
Deprecated. Gets the current pixel co-ordinate of the image as point. |
int |
getPixelX()
Deprecated. Gets the current pixel x co-ordinate of the image. |
int |
getPixelY()
Deprecated. Gets the current pixel y co-ordinate of the image. |
boolean |
isPixelPosValid()
Deprecated. Returns whether or not the pixel position is valid. |
String |
toString()
Deprecated. Returns a String representation of this EventObject. |
| Methods inherited from class java.util.EventObject |
|---|
getSource |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ToolInputEvent(Component source,
MouseEvent mouseEvent,
int pixelX,
int pixelY,
boolean pixelPosValid)
public ToolInputEvent(Component source,
KeyEvent keyEvent,
int pixelX,
int pixelY,
boolean pixelPosValid)
| Method Detail |
|---|
public Component getComponent()
public KeyEvent getKeyEvent()
null if this event was generated by a mouse event.
getMouseEvent()public MouseEvent getMouseEvent()
null if this event was generated by a key event.
getKeyEvent()public int getPixelX()
public int getPixelY()
public Point getPixelPos()
public boolean isPixelPosValid()
public String toString()
toString in class EventObject
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||