Package draw

Class Mouse3D

java.lang.Object
draw.Mouse3D
All Implemented Interfaces:
MouseListener, MouseMotionListener, Serializable, EventListener

public class Mouse3D extends Object implements MouseListener, MouseMotionListener, Serializable
Class for mouse event handling for 3D projection.
Since:
2004.06.02
See Also:
  • Constructor Details

    • Mouse3D

      public Mouse3D(Component comp, Proj3D proj)
      Create a mouse event handler for 3D projections.
      Parameters:
      comp - the component to control
      proj - the 3D to 2D projection used
      Since:
      2004.06.05 (Christian Borgelt)
  • Method Details

    • setScale

      public void setScale(double scale)
      Set the scaling factor for the movement.
      Parameters:
      scale - the scaling factor to set
      Since:
      2004.06.05 (Christian Borgelt)
    • mousePressed

      public void mousePressed(MouseEvent e)
      Handle start of rotation or movement.
      Specified by:
      mousePressed in interface MouseListener
      Parameters:
      e - the mouse event that occurred
      Since:
      2004.06.05 (Christian Borgelt)
    • mouseDragged

      public void mouseDragged(MouseEvent e)
      Handle rotation or movement.
      Specified by:
      mouseDragged in interface MouseMotionListener
      Parameters:
      e - the mouse event that occurred
      Since:
      2004.06.05 (Christian Borgelt)
    • mouseReleased

      public void mouseReleased(MouseEvent e)
      Dummy needed for MouseListener interface.
      Specified by:
      mouseReleased in interface MouseListener
      Parameters:
      e - the mouse event that occurred
      Since:
      2004.06.05 (Christian Borgelt)
    • mouseClicked

      public void mouseClicked(MouseEvent e)
      Dummy needed for MouseListener interface.
      Specified by:
      mouseClicked in interface MouseListener
      Parameters:
      e - the mouse event that occurred
      Since:
      2004.06.05 (Christian Borgelt)
    • mouseEntered

      public void mouseEntered(MouseEvent e)
      Dummy needed for MouseListener interface.
      Specified by:
      mouseEntered in interface MouseListener
      Parameters:
      e - the mouse event that occurred
      Since:
      2004.06.05 (Christian Borgelt)
    • mouseExited

      public void mouseExited(MouseEvent e)
      Dummy needed for MouseListener interface.
      Specified by:
      mouseExited in interface MouseListener
      Parameters:
      e - the mouse event that occurred
      Since:
      2004.06.05 (Christian Borgelt)
    • mouseMoved

      public void mouseMoved(MouseEvent e)
      Dummy needed for MouseListener interface.
      Specified by:
      mouseMoved in interface MouseMotionListener
      Parameters:
      e - the mouse event that occurred
      Since:
      2004.06.05 (Christian Borgelt)