Class CameraPlugin

    • Field Summary

    • Constructor Summary

      Constructors 
      Constructor Description
      CameraPlugin()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void keyPressed​(java.awt.event.KeyEvent e)  
      void keyReleased​(java.awt.event.KeyEvent e)  
      void keyTyped​(java.awt.event.KeyEvent e)  
      java.awt.event.MouseEvent mouseClicked​(java.awt.event.MouseEvent mouseEvent)  
      java.awt.event.MouseEvent mouseDragged​(java.awt.event.MouseEvent mouseEvent)  
      java.awt.event.MouseEvent mouseEntered​(java.awt.event.MouseEvent mouseEvent)  
      java.awt.event.MouseEvent mouseExited​(java.awt.event.MouseEvent mouseEvent)  
      java.awt.event.MouseEvent mouseMoved​(java.awt.event.MouseEvent mouseEvent)  
      java.awt.event.MouseEvent mousePressed​(java.awt.event.MouseEvent mouseEvent)
      The event that is triggered when a mouse button is pressed In this method the right click is changed to a middle-click to enable rotating the camera
      java.awt.event.MouseEvent mouseReleased​(java.awt.event.MouseEvent mouseEvent)
      Correct the MouseEvent to release the correct button
      void onClientTick​(net.runelite.api.events.ClientTick event)
      Checks if the menu has any options, because menu entries are built each tick and the MouseListener runs on the awt thread
      void onConfigChanged​(ConfigChanged ev)  
      void onFocusChanged​(net.runelite.api.events.FocusChanged event)  
      void onGameStateChanged​(net.runelite.api.events.GameStateChanged gameStateChanged)  
      void onScriptCallbackEvent​(net.runelite.api.events.ScriptCallbackEvent event)  
      protected void shutDown()  
      protected void startUp()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CameraPlugin

        public CameraPlugin()
    • Method Detail

      • startUp

        protected void startUp()
        Overrides:
        startUp in class Plugin
      • shutDown

        protected void shutDown()
        Overrides:
        shutDown in class Plugin
      • onScriptCallbackEvent

        @Subscribe
        public void onScriptCallbackEvent​(net.runelite.api.events.ScriptCallbackEvent event)
      • onFocusChanged

        @Subscribe
        public void onFocusChanged​(net.runelite.api.events.FocusChanged event)
      • keyTyped

        public void keyTyped​(java.awt.event.KeyEvent e)
        Specified by:
        keyTyped in interface java.awt.event.KeyListener
      • keyPressed

        public void keyPressed​(java.awt.event.KeyEvent e)
        Specified by:
        keyPressed in interface java.awt.event.KeyListener
      • keyReleased

        public void keyReleased​(java.awt.event.KeyEvent e)
        Specified by:
        keyReleased in interface java.awt.event.KeyListener
      • onClientTick

        @Subscribe
        public void onClientTick​(net.runelite.api.events.ClientTick event)
        Checks if the menu has any options, because menu entries are built each tick and the MouseListener runs on the awt thread
      • onGameStateChanged

        @Subscribe
        public void onGameStateChanged​(net.runelite.api.events.GameStateChanged gameStateChanged)
      • mousePressed

        public java.awt.event.MouseEvent mousePressed​(java.awt.event.MouseEvent mouseEvent)
        The event that is triggered when a mouse button is pressed In this method the right click is changed to a middle-click to enable rotating the camera

        This method also provides the config option to enable the middle-mouse button to always open the right click menu

        Specified by:
        mousePressed in interface MouseListener
      • mouseReleased

        public java.awt.event.MouseEvent mouseReleased​(java.awt.event.MouseEvent mouseEvent)
        Correct the MouseEvent to release the correct button
        Specified by:
        mouseReleased in interface MouseListener
      • mouseDragged

        public java.awt.event.MouseEvent mouseDragged​(java.awt.event.MouseEvent mouseEvent)
        Specified by:
        mouseDragged in interface MouseListener
      • mouseMoved

        public java.awt.event.MouseEvent mouseMoved​(java.awt.event.MouseEvent mouseEvent)
        Specified by:
        mouseMoved in interface MouseListener
      • mouseClicked

        public java.awt.event.MouseEvent mouseClicked​(java.awt.event.MouseEvent mouseEvent)
        Specified by:
        mouseClicked in interface MouseListener
      • mouseEntered

        public java.awt.event.MouseEvent mouseEntered​(java.awt.event.MouseEvent mouseEvent)
        Specified by:
        mouseEntered in interface MouseListener
      • mouseExited

        public java.awt.event.MouseEvent mouseExited​(java.awt.event.MouseEvent mouseEvent)
        Specified by:
        mouseExited in interface MouseListener