jmetest.intersection
Class MousePick
java.lang.Object
jmetest.intersection.MousePick
- All Implemented Interfaces:
- InputAction, MouseInputAction
- public class MousePick
- extends java.lang.Object
- implements MouseInputAction
MousePick
- Version:
- Author:
- Mark Powell
|
Method Summary |
java.lang.String |
getKey()
|
float |
getSpeed()
getSpeed returns the speed modifier of the action. |
void |
performAction(InputActionEvent evt)
performAction executes the action. |
void |
setKey(java.lang.String key)
|
void |
setMouse(Mouse mouse)
setMouse sets the mouse type used by this action. |
void |
setSpeed(float speed)
setSpeed sets the speed modifier of this action. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MousePick
public MousePick(Camera camera,
Node scene,
Text text)
performAction
public void performAction(InputActionEvent evt)
- Description copied from interface:
InputAction
performAction executes the action. The InputActionEvent
is supplied to define what keys are pressed, what other actions were
called and the time of the event.
- Specified by:
performAction in interface InputAction
- Parameters:
evt - the event that triggered the perform action method.
setSpeed
public void setSpeed(float speed)
- Description copied from interface:
InputAction
setSpeed sets the speed modifier of this action.
- Specified by:
setSpeed in interface InputAction
- Parameters:
speed - the speed modifier of the action.
getSpeed
public float getSpeed()
- Description copied from interface:
InputAction
getSpeed returns the speed modifier of the action.
- Specified by:
getSpeed in interface InputAction
- Returns:
- the speed modifier of the action.
setMouse
public void setMouse(Mouse mouse)
- Description copied from interface:
MouseInputAction
setMouse sets the mouse type used by this action.
- Specified by:
setMouse in interface MouseInputAction
- Parameters:
mouse - the mouse used by this mouse.
setKey
public void setKey(java.lang.String key)
- Specified by:
setKey in interface InputAction
getKey
public java.lang.String getKey()
- Specified by:
getKey in interface InputAction