Class FlyThroughRender.MouseWheel

  • All Implemented Interfaces:
    java.lang.Runnable
    Enclosing class:
    FlyThroughRender

    class FlyThroughRender.MouseWheel
    extends java.lang.Thread
    Mouse middle button wheel roller event handler. Rolling forward to track the fly-thru path in forward direction. Rolling backward to track the fly-thru path in the backward direction.
    Author:
    ruida
    • Nested Class Summary

      • Nested classes/interfaces inherited from class java.lang.Thread

        java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) java.awt.event.MouseEvent currentEvent
      DOCUMENT ME!
      (package private) java.awt.event.MouseEvent evt
      int centerX, centerY;.
      (package private) int id
      DOCUMENT ME!
      (package private) int mod
      DOCUMENT ME!
      (package private) boolean moveForward  
      (package private) java.lang.Object source
      DOCUMENT ME!
      (package private) long when
      DOCUMENT ME!
      (package private) int x
      DOCUMENT ME!
      (package private) int y
      DOCUMENT ME!
      • Fields inherited from class java.lang.Thread

        MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
    • Constructor Summary

      Constructors 
      Constructor Description
      MouseWheel​(java.awt.event.MouseWheelEvent event)
      Creates new thread and sets up mouse event variables appropriately.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void run()
      Runs the thread.
      void terminate()  
      • Methods inherited from class java.lang.Thread

        activeCount, checkAccess, clone, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, suspend, toString, yield
      • Methods inherited from class java.lang.Object

        equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • currentEvent

        java.awt.event.MouseEvent currentEvent
        DOCUMENT ME!
      • evt

        java.awt.event.MouseEvent evt
        int centerX, centerY;.
      • source

        java.lang.Object source
        DOCUMENT ME!
      • when

        long when
        DOCUMENT ME!
      • x

        int x
        DOCUMENT ME!
      • y

        int y
        DOCUMENT ME!
      • mod

        int mod
        DOCUMENT ME!
      • id

        int id
        DOCUMENT ME!
      • moveForward

        boolean moveForward
    • Constructor Detail

      • MouseWheel

        public MouseWheel​(java.awt.event.MouseWheelEvent event)
        Creates new thread and sets up mouse event variables appropriately.
        Parameters:
        event - Original mouse event, from button.
    • Method Detail

      • terminate

        public void terminate()
      • run

        public void run()
        Runs the thread. While the button is pressed, dispatches mouse dragged events at a rate consistent with the velocity slider. Once the mouse is released, pressed will be set to false and the loop will stop.
        Specified by:
        run in interface java.lang.Runnable
        Overrides:
        run in class java.lang.Thread