|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectnet.java.games.input.AbstractComponent
public abstract class AbstractComponent
Skeleton implementation of a named axis.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface net.java.games.input.Component |
|---|
Component.Identifier, Component.POV |
| Constructor Summary | |
|---|---|
protected |
AbstractComponent(java.lang.String name,
Component.Identifier id)
Protected constructor |
| Method Summary | |
|---|---|
float |
getDeadZone()
Returns the suggested dead zone for this axis. |
(package private) float |
getEventValue()
|
Component.Identifier |
getIdentifier()
Returns the type or identifier of the axis. |
java.lang.String |
getName()
Returns a human-readable name for this axis. |
float |
getPollData()
Returns the data from the last time the control has been polled. |
boolean |
isAnalog()
Returns whether or not the axis is analog, or false if it is digital. |
protected abstract float |
poll()
|
(package private) void |
resetHasPolled()
|
(package private) void |
setEventValue(float event_value)
|
(package private) void |
setPollData(float value)
|
java.lang.String |
toString()
Returns a non-localized string description of this axis. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface net.java.games.input.Component |
|---|
isRelative |
| Constructor Detail |
|---|
protected AbstractComponent(java.lang.String name,
Component.Identifier id)
name - A name for the axis| Method Detail |
|---|
public Component.Identifier getIdentifier()
getIdentifier in interface Componentpublic boolean isAnalog()
isAnalog in interface Componentpublic float getDeadZone()
getDeadZone in interface ComponentComponent.getPollData()public final float getPollData()
getPollData in interface ComponentController.poll()final void resetHasPolled()
final void setPollData(float value)
final float getEventValue()
final void setEventValue(float event_value)
public java.lang.String getName()
getName in interface Componentpublic java.lang.String toString()
toString in class java.lang.Object
protected abstract float poll()
throws java.io.IOException
java.io.IOException
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||