|
Java DTV API 1.3 18-Nov-2009 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.sun.dtv.ui.UserInputDevice
com.sun.dtv.ui.Mouse
public class Mouse
This class represents a mouse which can be used to control a particular
Screen as an UserInputDevice.
| Constructor Summary | |
|---|---|
protected |
Mouse()
It should not be possible to create a Mouse for everybody. |
| Method Summary | |
|---|---|
UserInputEvent |
getInitiatedEvent(int code)
Implements abstract method UserInputDevice.getInitiatedEvent(int) defined in UserInputDevice. |
boolean |
isSupported(int mouseCode)
Indicates whether the specified mouse code is supported by this particular input device. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected Mouse()
UserInputDevice, it is bound to a
Screen.
| Method Detail |
|---|
public UserInputEvent getInitiatedEvent(int code)
throws IllegalArgumentException
UserInputDevice.getInitiatedEvent(int) defined in UserInputDevice.
getInitiatedEvent in class UserInputDevicecode - the code the input event is initiated for if put in
This has to be one of the following:
MouseEvent.MOUSE_LEFT_CLICK,
MouseEvent.MOUSE_RIGHT_CLICK,
MouseEvent.MOUSE_LEFT_PRESS,
MouseEvent.MOUSE_RIGHT_PRESS,
MouseEvent.MOUSE_LEFT_RELEASE,
MouseEvent.MOUSE_RIGHT_RELEASE,
MouseEvent.MOUSE_MOVE,
MouseEvent.MOUSE_DRAG,
MouseEvent.MOUSE_ENTER or
MouseEvent.MOUSE_EXIT.
IllegalArgumentException - if the specified code is not supported
by this InputDevice; always thrown if the code is not one of the codes
mentioned in the description of the code parameterpublic boolean isSupported(int mouseCode)
mouseCode - the mouse code to be checked
Any of the following codes may be supported or not:
MouseEvent.MOUSE_LEFT_CLICK,
MouseEvent.MOUSE_RIGHT_CLICK,
MouseEvent.MOUSE_LEFT_PRESS,
MouseEvent.MOUSE_RIGHT_PRESS,
MouseEvent.MOUSE_LEFT_RELEASE,
MouseEvent.MOUSE_RIGHT_RELEASE,
MouseEvent.MOUSE_MOVE,
MouseEvent.MOUSE_DRAG,
MouseEvent.MOUSE_ENTER or
MouseEvent.MOUSE_EXIT.
Any other code won't be supported and will always produce
false.
|
Java DTV API 1.3 18-Nov-2009 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||