Public Member Functions | |
EncoderPositionChangeEvent (Phidget source, int index, int time, int value) | |
int | getIndex () |
Phidget | getSource () |
int | getTime () |
int | getValue () |
String | toString () |
Package Attributes | |
int | index |
Phidget | source |
int | time |
int | value |
This class represents the data for a EncoderPositionChangeEvent.
Definition at line 14 of file EncoderPositionChangeEvent.java.
com.phidgets.event.EncoderPositionChangeEvent.EncoderPositionChangeEvent | ( | Phidget | source, |
int | index, | ||
int | time, | ||
int | value | ||
) | [inline] |
Class constructor. This is called internally by the phidget library when creating this event.
source | the Phidget object from which this event originated |
Definition at line 26 of file EncoderPositionChangeEvent.java.
int com.phidgets.event.EncoderPositionChangeEvent.getIndex | ( | ) | [inline] |
Returns the index of the encoder.
Definition at line 49 of file EncoderPositionChangeEvent.java.
Returns the source Phidget of this event. This is a reference to the Phidget object from which this event was called. This object can be cast into a specific type of Phidget object to call specific device calls on it.
Definition at line 40 of file EncoderPositionChangeEvent.java.
int com.phidgets.event.EncoderPositionChangeEvent.getTime | ( | ) | [inline] |
Returns the timestamp of this position change. This is the time since the last EncoderPositionChangeEvent. This time is not represented in a real quantitly such as seconds, but can be used as a qualitative quantity.
Definition at line 69 of file EncoderPositionChangeEvent.java.
int com.phidgets.event.EncoderPositionChangeEvent.getValue | ( | ) | [inline] |
Returns the position change of the encoder. This is the amount of change in the encoder's position since the last EncoderPositionChangeEvent.
Definition at line 59 of file EncoderPositionChangeEvent.java.
String com.phidgets.event.EncoderPositionChangeEvent.toString | ( | ) | [inline] |
Returns a string containing information about the event.
Definition at line 79 of file EncoderPositionChangeEvent.java.
int com.phidgets.event.EncoderPositionChangeEvent.index [package] |
Definition at line 17 of file EncoderPositionChangeEvent.java.
Definition at line 16 of file EncoderPositionChangeEvent.java.
int com.phidgets.event.EncoderPositionChangeEvent.time [package] |
Definition at line 19 of file EncoderPositionChangeEvent.java.
int com.phidgets.event.EncoderPositionChangeEvent.value [package] |
Definition at line 18 of file EncoderPositionChangeEvent.java.