Interface Tool

    • Method Detail

      • paint

        void paint​(Graphics2D g2d)
        Invoked by canvas to draw tool.
        Parameters:
        g2d - the Graphics2D context in which to paint
      • setVectorCanvas

        void setVectorCanvas​(VectorCanvas canvas)
        set the canvas for the tool
        Parameters:
        canvas - VectorCanvas
      • startTool

        void startTool()
        Invoked when the tool is started
      • endTool

        void endTool()
        Invoked when the tool is ended
      • addMessageListener

        void addMessageListener​(MessageListener l)
        Add listener to the tool that notifies about message
        Parameters:
        l - MessageListener
      • removeMessageListener

        void removeMessageListener​(MessageListener l)
        remove listener to the tool that notifies about message
        Parameters:
        l - MessageListener