45 |
{ |
{ |
46 |
private boolean waitForIdle; |
private boolean waitForIdle; |
47 |
private int autoDelay; |
private int autoDelay; |
48 |
|
|
49 |
|
/** |
50 |
|
* Creates a <code>Robot</code> object. |
51 |
|
* |
52 |
|
* @exception AWTException If GraphicsEnvironment.isHeadless() returns true. |
53 |
|
* @exception SecurityException If createRobot permission is not granted. |
54 |
|
*/ |
55 |
public Robot() throws AWTException |
public Robot() throws AWTException |
56 |
{ |
{ |
57 |
throw new Error("not implemented"); |
throw new Error("not implemented"); |
58 |
} |
} |
59 |
|
|
60 |
|
/** |
61 |
|
* Creates a <code>Robot</code> object. |
62 |
|
* |
63 |
|
* @exception AWTException If GraphicsEnvironment.isHeadless() returns true. |
64 |
|
* @exception IllegalArgumentException If <code>screen</code> is not a screen |
65 |
|
* GraphicsDevice. |
66 |
|
* @exception SecurityException If createRobot permission is not granted. |
67 |
|
*/ |
68 |
public Robot(GraphicsDevice screen) throws AWTException |
public Robot(GraphicsDevice screen) throws AWTException |
69 |
{ |
{ |
70 |
this(); |
this(); |
71 |
} |
} |
72 |
|
|
73 |
public void mouseMove(int x, int y) |
public void mouseMove(int x, int y) |
74 |
{ |
{ |
75 |
} |
} |
76 |
|
|
77 |
public void mousePress(int buttons) |
public void mousePress(int buttons) |
78 |
{ |
{ |
79 |
} |
} |
80 |
|
|
81 |
public void mouseRelease(int buttons) |
public void mouseRelease(int buttons) |
82 |
{ |
{ |
83 |
} |
} |
84 |
|
|
85 |
public void mouseWheel(int wheelAmt) |
public void mouseWheel(int wheelAmt) |
86 |
{ |
{ |
87 |
} |
} |
88 |
|
|
89 |
public void keyPress(int keycode) |
public void keyPress(int keycode) |
90 |
{ |
{ |
91 |
} |
} |
92 |
|
|
93 |
public void keyRelease(int keycode) |
public void keyRelease(int keycode) |
94 |
{ |
{ |
95 |
} |
} |
96 |
|
|
97 |
public Color getPixelColor(int x, int y) |
public Color getPixelColor(int x, int y) |
98 |
{ |
{ |
99 |
return null; |
return null; |
100 |
} |
} |
101 |
|
|
102 |
public BufferedImage createScreenCapture(Rectangle screen) |
public BufferedImage createScreenCapture(Rectangle screen) |
103 |
{ |
{ |
104 |
return null; |
return null; |
105 |
} |
} |
106 |
|
|
107 |
public boolean isAutoWaitForIdle() |
public boolean isAutoWaitForIdle() |
108 |
{ |
{ |
109 |
return waitForIdle; |
return waitForIdle; |
110 |
} |
} |
111 |
|
|
112 |
public void setAutoWaitForIdle(boolean value) |
public void setAutoWaitForIdle(boolean value) |
113 |
{ |
{ |
114 |
waitForIdle = value; |
waitForIdle = value; |
115 |
} |
} |
116 |
|
|
117 |
public int getAutoDelay() |
public int getAutoDelay() |
118 |
{ |
{ |
119 |
return autoDelay; |
return autoDelay; |
120 |
} |
} |
121 |
|
|
122 |
public void setAutoDelay(int ms) |
public void setAutoDelay(int ms) |
123 |
{ |
{ |
124 |
if (ms < 0 || ms > 60000) |
if (ms < 0 || ms > 60000) |
125 |
throw new IllegalArgumentException(); |
throw new IllegalArgumentException(); |
126 |
|
|
127 |
autoDelay = ms; |
autoDelay = ms; |
128 |
} |
} |
129 |
|
|
130 |
public void delay(int ms) |
public void delay(int ms) |
131 |
{ |
{ |
132 |
if (ms < 0 || ms > 60000) |
if (ms < 0 || ms > 60000) |
133 |
throw new IllegalArgumentException(); |
throw new IllegalArgumentException(); |
134 |
} |
} |
135 |
|
|
136 |
public void waitForIdle() |
public void waitForIdle() |
137 |
{ |
{ |
138 |
} |
} |
139 |
|
|
140 |
public String toString() |
public String toString() |
141 |
{ |
{ |
142 |
return "unimplemented"; |
return "unimplemented"; |