Class SpaceNavigatorPoller
- java.lang.Object
-
- gov.nih.mipav.view.input.spacenav.SpaceNavigatorPoller
-
public class SpaceNavigatorPoller extends java.lang.Object
Polls the space navigator.- Author:
- justinsenseney
-
-
Field Summary
Fields Modifier and Type Field Description private static int
DELAY
private static SpaceNavigatorListener[]
listeners
private static javax.swing.Timer
pollTimer
-
Constructor Summary
Constructors Constructor Description SpaceNavigatorPoller()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
checkIfNeedCalibration()
static void
deregisterAllListeners()
static void
deRegisterListener(SpaceNavigatorListener listener)
static void
fireSpaceNavEvent()
static SpaceNavigatorListener[]
getListeners()
static boolean
hasInstanceOf(SpaceNavigatorListener temp)
static void
registerListener(SpaceNavigatorListener listener)
-
-
-
Field Detail
-
DELAY
private static final int DELAY
- See Also:
- Constant Field Values
-
pollTimer
private static javax.swing.Timer pollTimer
-
listeners
private static SpaceNavigatorListener[] listeners
-
-
Method Detail
-
fireSpaceNavEvent
public static void fireSpaceNavEvent()
-
deRegisterListener
public static void deRegisterListener(SpaceNavigatorListener listener)
-
registerListener
public static void registerListener(SpaceNavigatorListener listener)
-
getListeners
public static SpaceNavigatorListener[] getListeners()
-
hasInstanceOf
public static boolean hasInstanceOf(SpaceNavigatorListener temp)
-
checkIfNeedCalibration
public static boolean checkIfNeedCalibration()
-
deregisterAllListeners
public static void deregisterAllListeners()
-
-