< prev index next >
core/JemmyAWTInput/src/org/jemmy/input/RobotDriver.java
Print this page
@@ -42,11 +42,13 @@
import org.jemmy.interfaces.Mouse.MouseButtons;
import org.jemmy.interfaces.Mouse.MouseModifiers;
/**
- * @author Alexandre Iline(alexandre.iline@sun.com), KAM <mrkam@mail.ru>
+ * @author shura
+ * @author mrkam
+ *
*/
public class RobotDriver {
private static boolean haveOldPos = false;
private static int smoothness;
@@ -56,11 +58,11 @@
static {
Environment.getEnvironment().setTimeout(
new Timeout(ROBOT_DELAY_TIMEOUT_NAME, 10));
Environment.getEnvironment().setPropertyIfNotSet(
AWTRobotInputFactory.ROBOT_MOUSE_SMOOTHNESS_PROPERTY,
- new Integer(Integer.MAX_VALUE).toString());
+ Integer.toString(Integer.MAX_VALUE));
smoothness = Integer.parseInt(
(String)Environment.getEnvironment().getProperty(
AWTRobotInputFactory.ROBOT_MOUSE_SMOOTHNESS_PROPERTY));
}
@@ -206,13 +208,13 @@
releaseModifiers(modifiers);
}
/**
* @deprecated Implementation doesn't seem to be correct as it ignores mouseButton and modifiers
- * @param point
+ * @param point todo document
* @param mouseButton One of MouseEvent.BUTTON*_MASK
- * @param modifiers
+ * @param modifiers todo document
*/
public void dragMouse(Point point, int mouseButton, int modifiers) {
moveMouse(point);
}
@@ -261,13 +263,13 @@
releaseModifiers(modifiers);
}
/**
* Turns the wheel.
- * @param p
+ * @param p todo document
* @param amount Either positive or negative
- * @param modifiers
+ * @param modifiers a combination of <code>InputEvent.*_MASK</code> fields.
*/
public void turnWheel(Point p, int amount, Modifier... modifiers) {
pressModifiers(modifiers);
moveMouse(p);
java.awt.Robot r = null;
< prev index next >