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.

Method Index

 o action(Viewer, GraphicsEvent, Object)
/** Called when an action occurs in the Component.
 o keyActionDown(Viewer, GraphicsEvent, int)
Called when an action character is pressed.
 o keyActionUp(Viewer, GraphicsEvent, int)
Called when an action character is released.
 o keyDown(Viewer, GraphicsEvent, int)
Called when a character is pressed.
 o keyUp(Viewer, GraphicsEvent, int)
Called when a character is released.
 o mouseDown(Viewer, GraphicsEvent, float, float)
Called when the mouse is pressed.
 o mouseDrag(Viewer, GraphicsEvent, float, float)
Called when the mouse is dragged (the mouse button is down).
 o mouseEnter(Viewer, GraphicsEvent, float, float)
Called when the mouse enters the component.
 o mouseExit(Viewer, GraphicsEvent, float, float)
Called when the mouse exits the component.
 o mouseMove(Viewer, GraphicsEvent, float, float)
Called when the mouse moves (the mouse button is up).
 o mouseUp(Viewer, GraphicsEvent, float, float)
Called when the mouse is released.

Methods

 o 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
 o 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
 o 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
 o 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
 o 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
 o 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
 o 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
 o 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
 o 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
 o 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
 o 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