cds.aladin
Class RobotAction

java.lang.Object
  extended by cds.aladin.RobotAction

public class RobotAction
extends java.lang.Object

Title : RobotAction

Description : action which can be done by the robot

eg: PUSH myButton

Version:
0.1 (kickoff : 02/02/2004)
Author:
Thomas Boch [CDS]

Field Summary
static RobotAction ADJUSTPOS
           
static RobotAction INFO
           
static RobotAction PAUSE
           
static RobotAction PUSH
           
static RobotAction SELECT
           
static RobotAction TOFRONT
           
static RobotAction TYPE
           
 
Constructor Summary
RobotAction()
           
RobotAction(RobotAction action, java.lang.String comp, java.lang.String optParam)
          Constructor
 
Method Summary
 void doAction(java.awt.Point loc, java.awt.Component comp, Aladin aladinInst)
          Execute the action at a given location
 RobotAction getAction()
           
static RobotAction getActionFromString(java.lang.String s)
           
 java.lang.String getComp()
           
 java.lang.String getParam()
           
 void setAction(RobotAction action)
          Sets the action.
 void setComp(java.lang.String comp)
          Sets the component on which the action is executed
 void setParam(java.lang.String optParam)
          Sets the optional parameter
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PUSH

public static RobotAction PUSH

TYPE

public static RobotAction TYPE

PAUSE

public static RobotAction PAUSE

SELECT

public static RobotAction SELECT

TOFRONT

public static RobotAction TOFRONT

ADJUSTPOS

public static RobotAction ADJUSTPOS

INFO

public static RobotAction INFO
Constructor Detail

RobotAction

public RobotAction()

RobotAction

public RobotAction(RobotAction action,
                   java.lang.String comp,
                   java.lang.String optParam)
Constructor

Parameters:
action - the action to use
comp - string describing the component on which the action is executed
optParam - optional parameter
Method Detail

doAction

public void doAction(java.awt.Point loc,
                     java.awt.Component comp,
                     Aladin aladinInst)
Execute the action at a given location

Parameters:
loc - location where to execute the action

getActionFromString

public static RobotAction getActionFromString(java.lang.String s)

getAction

public RobotAction getAction()
Returns:
RobotAction

setAction

public void setAction(RobotAction action)
Sets the action.

Parameters:
action - The action to set

getComp

public java.lang.String getComp()
Returns:
String

setComp

public void setComp(java.lang.String comp)
Sets the component on which the action is executed

Parameters:
comp - The comp to set

getParam

public java.lang.String getParam()
Returns:
String

setParam

public void setParam(java.lang.String optParam)
Sets the optional parameter

Parameters:
optParam - The optParam to set


Copyright © 2009 UDS/CNRS