Class apps.tests.TestCursor
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class apps.tests.TestCursor

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Panel
                           |
                           +----java.applet.Applet
                                   |
                                   +----apps.tests.TestCursor

public class TestCursor
extends Applet

Variable Index

 o Debug
 o DEBUG_DATE
 o DEBUG_GENERAL
 o DEBUG_VERBOSE

Constructor Index

 o TestCursor()

Method Index

 o action(Event, Object)
Handle applet GUI actions.
 o dispCursorLoc(int, int)
Display cursor location int the appropriate fields.
 o dispMsg(String)
 o dispRegion(int, int, int, int)
Display Region of Interest parameters in the appropriate fields.
 o dispRegionLoc(int, int)
Display Region of Interest location in the appropriate fields.
 o dispRegionSize(int, int)
Display Region of Interest size in the appropriate fields.
 o getAppletInfo()
 o getParameterInfo()
 o handleEvent(Event)
Handle all scrollbar events.
 o init()
initialize GUI components, etc.
 o main(String[])
main class for use as application
 o setCursorValues(int, int)
Set scrollbar values.
 o start()
 o stop()

Variables

 o Debug
  public static int Debug
 o DEBUG_GENERAL
  public final static int DEBUG_GENERAL
 o DEBUG_VERBOSE
  public final static int DEBUG_VERBOSE
 o DEBUG_DATE
  public final static int DEBUG_DATE

Constructors

 o TestCursor
  public TestCursor()

Methods

 o main
  public static void main(String argv[])
main class for use as application
 o init
  public void init()
initialize GUI components, etc.
Overrides:
init in class Applet
 o stop
  public void stop()
Overrides:
stop in class Applet
 o start
  public void start()
Overrides:
start in class Applet
 o getAppletInfo
  public String getAppletInfo()
Overrides:
getAppletInfo in class Applet
 o getParameterInfo
  public String[][] getParameterInfo()
Overrides:
getParameterInfo in class Applet
 o dispCursorLoc
  public void dispCursorLoc(int x,
                            int y)
Display cursor location int the appropriate fields.
Parameters:
x - The x location of the cursor in its component.
y - The y location of the cursor in its component.
 o dispRegion
  public void dispRegion(int x,
                         int y,
                         int w,
                         int h)
Display Region of Interest parameters in the appropriate fields.
Parameters:
x - The x location of the upper left corner of the region.
y - The y location of the upper left corner of the region.
w - The width of the region.
h - The height of the region.
 o dispRegionLoc
  public void dispRegionLoc(int x,
                            int y)
Display Region of Interest location in the appropriate fields.
Parameters:
x - The x location of the upper left corner of the region.
y - The y location of the upper left corner of the region.
 o dispRegionSize
  public void dispRegionSize(int w,
                             int h)
Display Region of Interest size in the appropriate fields.
Parameters:
w - The width of the region.
h - The height of the region.
 o dispMsg
  public void dispMsg(String s)
 o handleEvent
  public boolean handleEvent(Event evt)
Handle all scrollbar events. The associated text field is updated.
Overrides:
handleEvent in class Component
 o action
  public boolean action(Event ev,
                        Object obj)
Handle applet GUI actions. This responds to user input/selection using the GUI controls.
Parameters:
ev - The Event to handle.
obj - AN Event-specific object.
Returns:
true to indicate the Event has been handled; false otherwise.
Overrides:
action in class Component
 o setCursorValues
  public void setCursorValues(int width,
                              int height)
Set scrollbar values.
Parameters:
width - The scrollbar value for the region width control.
height - The scrollbar value for the region height control.

All Packages  Class Hierarchy  This Package  Previous  Next  Index