Module imp3d

Class Navigator3D

java.lang.Object
de.grogra.imp3d.Navigator3D
All Implemented Interfaces:
NavigatorEvent, Disposable, DisposableEventListener, EventListener, EventListener

public class Navigator3D extends Object implements NavigatorEvent
The Navigator3D implements the navigation controls on the View3D. The navigation events are:
  • Right mouse button pressed: rotate the view
  • Wheel used: zoom the view
  • Middle button pressed: dolly the view
  • Left mouse button dragged over empty space: move the view
  • Field Details

    • handler

      protected final ViewEventHandler handler
    • lastX

      protected int lastX
    • lastY

      protected int lastY
    • originX

      protected int originX
    • originY

      protected int originY
    • wheel

      protected final boolean wheel
  • Constructor Details

  • Method Details

    • dispose

      public void dispose()
      Specified by:
      dispose in interface Disposable
    • eventOccured

      public void eventOccured(EventObject e)
      Description copied from interface: EventListener
      This method is invoked on registered event listeners when event has occured. This general listener interface does not restrict the possible kinds of events. Concrete sources of events should specify which events they may fire.
      Specified by:
      eventOccured in interface EventListener
      Parameters:
      e - an event