Package snap.gfx3d

Class MouseHandler

java.lang.Object
snap.gfx3d.MouseHandler

public class MouseHandler extends Object
A class to rotate/zoom camera for mouse events.
  • Field Details

  • Constructor Details

    • MouseHandler

      public MouseHandler(Camera aCamera)
      Constructor.
  • Method Details

    • processEvent

      public void processEvent(ViewEvent anEvent)
      Viewer method.
    • mousePressed

      public void mousePressed(ViewEvent anEvent)
      Handle MousePress.
    • mouseDragged

      public void mouseDragged(ViewEvent anEvent)
      Handle MouseDrag.
    • scroll

      public void scroll(ViewEvent anEvent)
      Handle Scroll.