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
-
Debug
-
-
DEBUG_DATE
-
-
DEBUG_GENERAL
-
-
DEBUG_VERBOSE
-
-
TestCursor()
-
-
action(Event, Object)
- Handle applet GUI actions.
-
dispCursorLoc(int, int)
- Display cursor location int the appropriate fields.
-
dispMsg(String)
-
-
dispRegion(int, int, int, int)
- Display Region of Interest parameters in the appropriate fields.
-
dispRegionLoc(int, int)
- Display Region of Interest location in the appropriate fields.
-
dispRegionSize(int, int)
- Display Region of Interest size in the appropriate fields.
-
getAppletInfo()
-
-
getParameterInfo()
-
-
handleEvent(Event)
- Handle all scrollbar events.
-
init()
- initialize GUI components, etc.
-
main(String[])
- main class for use as application
-
setCursorValues(int, int)
- Set scrollbar values.
-
start()
-
-
stop()
-
Debug
public static int Debug
DEBUG_GENERAL
public final static int DEBUG_GENERAL
DEBUG_VERBOSE
public final static int DEBUG_VERBOSE
DEBUG_DATE
public final static int DEBUG_DATE
TestCursor
public TestCursor()
main
public static void main(String argv[])
- main class for use as application
init
public void init()
- initialize GUI components, etc.
- Overrides:
- init in class Applet
stop
public void stop()
- Overrides:
- stop in class Applet
start
public void start()
- Overrides:
- start in class Applet
getAppletInfo
public String getAppletInfo()
- Overrides:
- getAppletInfo in class Applet
getParameterInfo
public String[][] getParameterInfo()
- Overrides:
- getParameterInfo in class Applet
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.
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.
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.
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.
dispMsg
public void dispMsg(String s)
handleEvent
public boolean handleEvent(Event evt)
- Handle all scrollbar events. The associated text field is updated.
- Overrides:
- handleEvent in class Component
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
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