Documentation of 'org.jhotdraw.draw.tool.TextEditingTool' Java class
TextEditingTool
org.jhotdraw.draw.tool

Class TextEditingTool

    • Constructor Detail

      • TextEditingTool

        public TextEditingTool(TextHolderFigure typingTarget)
        Creates a new instance.
    • Method Detail

      • deactivate

        public void deactivate(DrawingEditor editor)
        Description copied from interface: Tool
        Deactivates the tool. This method is called whenever the user switches to another tool.
        Specified by:
        deactivate in interface Tool
        Overrides:
        deactivate in class AbstractTool
      • mousePressed

        public void mousePressed(java.awt.event.MouseEvent e)
        If the pressed figure is a TextHolderFigure it can be edited.
        Specified by:
        mousePressed in interface java.awt.event.MouseListener
        Overrides:
        mousePressed in class AbstractTool
      • mouseReleased

        public void mouseReleased(java.awt.event.MouseEvent evt)
        Specified by:
        mouseReleased in interface java.awt.event.MouseListener
        Overrides:
        mouseReleased in class AbstractTool
      • keyReleased

        public void keyReleased(java.awt.event.KeyEvent evt)
        Specified by:
        keyReleased in interface java.awt.event.KeyListener
        Overrides:
        keyReleased in class AbstractTool
      • actionPerformed

        public void actionPerformed(java.awt.event.ActionEvent event)
        Specified by:
        actionPerformed in interface java.awt.event.ActionListener
      • isEditing

        public boolean isEditing()
      • mouseDragged

        public void mouseDragged(java.awt.event.MouseEvent e)
        Specified by:
        mouseDragged in interface java.awt.event.MouseMotionListener

DataMelt 3.0 © DataMelt by jWork.ORG

Ads help maintain this website.