Package org.jmol.awt

Class Mouse

    • Field Detail

      • keyBuffer

        private String keyBuffer
      • isMouseDown

        private boolean isMouseDown
      • wheeling

        private boolean wheeling
      • modifiersDown

        private int modifiersDown
      • xWhenPressed

        private int xWhenPressed
      • yWhenPressed

        private int yWhenPressed
      • modifiersWhenPressed10

        private int modifiersWhenPressed10
    • Constructor Detail

      • Mouse

        Mouse​(double privateKey,
              PlatformViewer vwr,
              Object odisplay)
        Mouse is the listener for all events.
        Parameters:
        privateKey -
        vwr -
        odisplay -
    • Method Detail

      • clearKeyBuffer

        private void clearKeyBuffer()
      • addKeyBuffer

        private void addKeyBuffer​(char ch)
      • checkElementSelected

        private void checkElementSelected​(char ch)
      • sendKeyBuffer

        private void sendKeyBuffer()
      • mouseEntered

        private void mouseEntered​(long time,
                                  int x,
                                  int y)
      • mouseExited

        private void mouseExited​(long time,
                                 int x,
                                 int y)
      • mouseClicked

        private void mouseClicked​(long time,
                                  int x,
                                  int y,
                                  int modifiers,
                                  int clickCount)
        Parameters:
        time -
        x -
        y -
        modifiers -
        clickCount -
      • mouseMoved

        private void mouseMoved​(long time,
                                int x,
                                int y,
                                int modifiers)
      • mouseWheel

        private void mouseWheel​(long time,
                                int rotation,
                                int modifiers)
      • mousePressed

        private void mousePressed​(long time,
                                  int x,
                                  int y,
                                  int modifiers,
                                  boolean isPopupTrigger)
        Parameters:
        time -
        x -
        y -
        modifiers -
        isPopupTrigger -
      • mouseReleased

        private void mouseReleased​(long time,
                                   int x,
                                   int y,
                                   int modifiers)
      • mouseDragged

        private void mouseDragged​(long time,
                                  int x,
                                  int y)
      • applyLeftMouse

        private static int applyLeftMouse​(int modifiers)