| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcds.aladin.MyRobot
public class MyRobot
Title : MyRobot
Description : Main class of the "robot" facility
This is the main class of the "robot" facility
| Constructor Summary | |
|---|---|
MyRobot(Aladin a)
Constructor for MyRobot class  | 
|
| Method Summary | |
|---|---|
static void | 
adjustPos(java.awt.Component comp)
Adjusts the position of a frame, so that it is fully visible on the screen  | 
static void | 
createRobot()
Crée l'object robot statique  | 
 boolean | 
executeCommand(java.lang.String cmdName,
               java.lang.String argsStr)
Ask the robot to execute a command, given its name and its arguments  | 
static void | 
info(java.lang.String text,
     Aladin aladinInst)
 | 
static void | 
moveTo(int px,
       int py,
       Aladin aladinInst)
Mouve mouse cursor to point (px,py)  | 
static void | 
pause(int nbMs)
Pause during a given time  | 
static void | 
press(int x,
      int y,
      java.awt.Component comp)
Press the mouse button at point (x,y)  | 
static void | 
press(java.awt.Point loc,
      java.awt.Component comp)
 | 
static void | 
select(java.lang.String item,
       java.awt.Component comp,
       java.awt.Point loc)
Select a given item in a Choice widget  | 
static void | 
toFront(java.awt.Component comp)
Put a frame in the front  | 
static void | 
type(java.lang.String text,
     java.awt.Component c)
Type some text  | 
| Methods inherited from class java.lang.Object | 
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public MyRobot(Aladin a)
| Method Detail | 
|---|
public static void createRobot()
public boolean executeCommand(java.lang.String cmdName,
                              java.lang.String argsStr)
cmdName - command name, as it appears in class CommandargsStr - arguments string
public static void info(java.lang.String text,
                        Aladin aladinInst)
public static void moveTo(int px,
                          int py,
                          Aladin aladinInst)
loc - 
public static void press(int x,
                         int y,
                         java.awt.Component comp)
x - y - comp - 
public static void press(java.awt.Point loc,
                         java.awt.Component comp)
public static void select(java.lang.String item,
                          java.awt.Component comp,
                          java.awt.Point loc)
item - item to selectcomp - Choice componentpublic static void toFront(java.awt.Component comp)
comp - Frame to put toFront
public static void type(java.lang.String text,
                        java.awt.Component c)
text - text to type inpublic static void adjustPos(java.awt.Component comp)
comp - framepublic static void pause(int nbMs)
nbMs - number of ms to pause
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||