@@ -224,48 +224,55 @@ public static void removeNativeMouseWheelListener(NativeMouseWheelListener liste
224
224
/**
225
225
* Get information about the native monitor configuration and layout.
226
226
*
227
+ * @return an array of <code>NativeMonitorInfo</code> objects.
227
228
* @since 2.1
228
229
*/
229
230
public static native NativeMonitorInfo [] getNativeMonitors ();
230
231
231
232
/**
232
233
* Retrieves the keyboard auto repeat rate.
233
234
*
235
+ * @return <code>Integer</code> or null.
234
236
* @since 2.1
235
237
*/
236
238
public static native Integer getAutoRepeatRate ();
237
239
238
240
/**
239
241
* Retrieves the keyboard auto repeat delay.
240
242
*
243
+ * @return <code>Integer</code> or null.
241
244
* @since 2.1
242
245
*/
243
246
public static native Integer getAutoRepeatDelay ();
244
247
245
248
/**
246
249
* Retrieves the mouse acceleration multiplier.
247
250
*
251
+ * @return <code>Integer</code> or null.
248
252
* @since 2.1
249
253
*/
250
254
public static native Integer getPointerAccelerationMultiplier ();
251
255
252
256
/**
253
257
* Retrieves the mouse acceleration threshold.
254
258
*
259
+ * @return <code>Integer</code> or null.
255
260
* @since 2.1
256
261
*/
257
262
public static native Integer getPointerAccelerationThreshold ();
258
263
259
264
/**
260
265
* Retrieves the mouse sensitivity.
261
266
*
267
+ * @return <code>Integer</code> or null.
262
268
* @since 2.1
263
269
*/
264
270
public static native Integer getPointerSensitivity ();
265
271
266
272
/**
267
273
* Retrieves the double/triple click interval in milliseconds.
268
274
*
275
+ * @return <code>Integer</code> or null.
269
276
* @since 2.1
270
277
*/
271
278
public static native Integer getMultiClickIterval ();
@@ -277,7 +284,7 @@ protected static class NativeHookThread extends Thread {
277
284
/**
278
285
* Exception thrown by this thread.
279
286
*/
280
- private NativeHookException exception ;
287
+ protected NativeHookException exception ;
281
288
282
289
/**
283
290
* Default constructor.
@@ -318,11 +325,15 @@ public NativeHookException getException() {
318
325
* Native implementation to start the input hook. This method blocks and should only be called by this
319
326
* specialized thread implementation. This method will notifyAll() after passing any exception exception
320
327
* throwing code.
328
+ *
329
+ * @throws NativeHookException problem registering the native hook with the underlying operating system.
321
330
*/
322
- private native void enable () throws NativeHookException ;
331
+ protected native void enable () throws NativeHookException ;
323
332
324
333
/**
325
334
* Native implementation to stop the input hook. There is no other way to stop the hook.
335
+ *
336
+ * @throws NativeHookException problem un-registering the native hook with the underlying operating system.
326
337
*/
327
338
public native void disable () throws NativeHookException ;
328
339
@@ -359,8 +370,7 @@ protected static void dispatchEvent(NativeInputEvent event) {
359
370
* <code>Load "record"</code> is missing for the xorg.conf file on
360
371
* Unix/Linux/Solaris platforms.
361
372
*
362
- * @throws NativeHookException problem registering the native hook with
363
- * the underlying operating system.
373
+ * @throws NativeHookException problem registering the native hook with the underlying operating system.
364
374
* @since 1.1
365
375
*/
366
376
public static void registerNativeHook () throws NativeHookException {
@@ -389,7 +399,6 @@ public static void registerNativeHook() throws NativeHookException {
389
399
* hook it is not registered the function has no effect.
390
400
*
391
401
* @throws NativeHookException hook interrupted by Java.
392
- *
393
402
* @since 1.1
394
403
*/
395
404
public static void unregisterNativeHook () throws NativeHookException {
0 commit comments