Interface sgraphics.ViewerCallback
All Packages Class Hierarchy This Package Previous Next Index
Interface sgraphics.ViewerCallback
- public interface ViewerCallback
- extends Object
ViewerCallback is the interface for event handling callbacks.
-
action(Viewer, GraphicsEvent, Object)
- /**
Called when an action occurs in the Component.
-
keyActionDown(Viewer, GraphicsEvent, int)
- Called when an action character is pressed.
-
keyActionUp(Viewer, GraphicsEvent, int)
- Called when an action character is released.
-
keyDown(Viewer, GraphicsEvent, int)
- Called when a character is pressed.
-
keyUp(Viewer, GraphicsEvent, int)
- Called when a character is released.
-
mouseDown(Viewer, GraphicsEvent, float, float)
- Called when the mouse is pressed.
-
mouseDrag(Viewer, GraphicsEvent, float, float)
- Called when the mouse is dragged (the mouse button is down).
-
mouseEnter(Viewer, GraphicsEvent, float, float)
- Called when the mouse enters the component.
-
mouseExit(Viewer, GraphicsEvent, float, float)
- Called when the mouse exits the component.
-
mouseMove(Viewer, GraphicsEvent, float, float)
- Called when the mouse moves (the mouse button is up).
-
mouseUp(Viewer, GraphicsEvent, float, float)
- Called when the mouse is released.
mouseDown
public abstract boolean mouseDown(Viewer v,
GraphicsEvent evt,
float X,
float Y)
- Called when the mouse is pressed.
- Parameters:
- evt - the event
- child - the glyph inside the viewer that was hit.
- x - the x coordinate
- y - the y coordinate
mouseDrag
public abstract boolean mouseDrag(Viewer v,
GraphicsEvent evt,
float X,
float Y)
- Called when the mouse is dragged (the mouse button is down).
- Parameters:
- evt - the event
- child - the glyph inside the viewer that was hit.
- x - the x coordinate
- y - the y coordinate
mouseUp
public abstract boolean mouseUp(Viewer v,
GraphicsEvent evt,
float X,
float Y)
- Called when the mouse is released.
- Parameters:
- evt - the event
- child - the glyph inside the viewer that was hit.
- x - the x coordinate
- y - the y coordinate
mouseMove
public abstract boolean mouseMove(Viewer v,
GraphicsEvent evt,
float X,
float Y)
- Called when the mouse moves (the mouse button is up).
- Parameters:
- evt - the event
- child - the glyph inside the viewer that was hit.
- x - the x coordinate
- y - the y coordinate
mouseEnter
public abstract boolean mouseEnter(Viewer v,
GraphicsEvent evt,
float X,
float Y)
- Called when the mouse enters the component.
- Parameters:
- evt - the event
- child - the glyph inside the viewer that was hit.
- x - the x coordinate
- y - the y coordinate
mouseExit
public abstract boolean mouseExit(Viewer v,
GraphicsEvent evt,
float X,
float Y)
- Called when the mouse exits the component.
- Parameters:
- evt - the event
- child - the glyph inside the viewer that was hit.
- x - the x coordinate
- y - the y coordinate
keyDown
public abstract boolean keyDown(Viewer v,
GraphicsEvent evt,
int key)
- Called when a character is pressed.
- Parameters:
- evt - the event
- child - the glyph inside the viewer that was hit.
- key - the key that's pressed
keyUp
public abstract boolean keyUp(Viewer v,
GraphicsEvent evt,
int key)
- Called when a character is released.
- Parameters:
- evt - the event
- child - the glyph inside the viewer that was hit.
- key - the key that's released
keyActionDown
public abstract boolean keyActionDown(Viewer v,
GraphicsEvent evt,
int key)
- Called when an action character is pressed.
- Parameters:
- evt - the event
- child - the glyph inside the viewer that was hit.
- key - the key that's pressed
keyActionUp
public abstract boolean keyActionUp(Viewer v,
GraphicsEvent evt,
int key)
- Called when an action character is released.
- Parameters:
- evt - the event
- child - the glyph inside the viewer that was hit.
- key - the key that's released
action
public abstract boolean action(Viewer v,
GraphicsEvent evt,
Object what)
- /**
Called when an action occurs in the Component.
- Parameters:
- evt - the event
- child - the glyph inside the viewer that was hit.
- what - the action that's occuring
All Packages Class Hierarchy This Package Previous Next Index