Class ToolMouseAdapter

    • Field Detail

      • m_Owner

        protected Tool m_Owner
        the owning tool.
      • m_AutomaticallyRequestFocus

        protected boolean m_AutomaticallyRequestFocus
        whether to automatically request focus when clicking on the canvas.
    • Constructor Detail

      • ToolMouseAdapter

        public ToolMouseAdapter​(Tool owner)
        Initializes the adapter. Automatically requests focus when clicking.
        Parameters:
        owner - the owning tool
      • ToolMouseAdapter

        public ToolMouseAdapter​(Tool owner,
                                boolean automaticallyRequestFocus)
        Initializes the adapter.
        Parameters:
        owner - the owning tool
        automaticallyRequestFocus - automatically requests the focus when clicking on the canvas.
    • Method Detail

      • getOwner

        public Tool getOwner()
        Returns the owning tool.
        Returns:
        the owning tool
      • getAutomaticallyRequestFocus

        public boolean getAutomaticallyRequestFocus()
        Returns whether the focus gets automatically requested when clicking on the canvas.
        Returns:
        true if automatically requesting
      • requestFocus

        protected void requestFocus()
        Requests the focus in the canvas panel.