de.jreality.scene.tool
Class AxisState

java.lang.Object
  extended by de.jreality.scene.tool.AxisState
All Implemented Interfaces:
Serializable

public final class AxisState
extends Object
implements Serializable

Represents a button or a double value for tools.

See Also:
Serialized Form

Field Summary
static AxisState ORIGIN
           
static AxisState PRESSED
           
 
Constructor Summary
AxisState(double value)
          double must be in the range [-1,1]
AxisState(int value)
           
 
Method Summary
 double doubleValue()
           
 int intValue()
           
 boolean isPressed()
           
 boolean isReleased()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

PRESSED

public static final AxisState PRESSED

ORIGIN

public static final AxisState ORIGIN
Constructor Detail

AxisState

public AxisState(double value)
double must be in the range [-1,1]

Parameters:
value -

AxisState

public AxisState(int value)
Method Detail

intValue

public int intValue()

doubleValue

public double doubleValue()

isPressed

public boolean isPressed()

isReleased

public boolean isReleased()

toString

public String toString()
Overrides:
toString in class Object