Class TextEditor

    • Field Detail

      • textNode

        protected org.apache.batik.bridge.TextNode textNode
      • editable

        protected boolean editable
    • Constructor Detail

      • TextEditor

        public TextEditor()
    • Method Detail

      • setVectorCanvas

        public void setVectorCanvas​(VectorCanvas canvas)
      • setSVGTextElement

        public void setSVGTextElement​(org.w3c.dom.svg.SVGTextElement element)
      • isEditable

        public boolean isEditable()
      • stopEdit

        public abstract void stopEdit()
      • startEdit

        public abstract void startEdit()
      • keyPressed

        public void keyPressed​(KeyEvent evt)
        Invoked when a key has been pressed. See the class description for KeyEvent for a definition of a key pressed event.
        Parameters:
        evt - KeyEvent object
      • keyReleased

        public void keyReleased​(KeyEvent evt)
        Invoked when a key has been released. See the class description for KeyEvent for a definition of a key released event.
        Parameters:
        evt - KeyEvent object
      • keyTyped

        public void keyTyped​(KeyEvent evt)
        Invoked when a key has been typed. See the class description for KeyEvent for a definition of a key typed event.
        Parameters:
        evt - KeyEvent object
      • mouseClicked

        public void mouseClicked​(MouseEvent evt)
        Invoked when the mouse button has been clicked (pressed and released) on a component.
        Parameters:
        evt - MouseEvent object
      • mouseDragged

        public void mouseDragged​(MouseEvent evt)
        Invoked when a mouse button is pressed on a component and then dragged. MOUSE_DRAGGED events will continue to be delivered to the component where the drag originated until the mouse button is released (regardless of whether the mouse position is within the bounds of the component).

        Due to platform-dependent Dra and Drop implementations, MOUSE_DRAGGED events may not be delivered during a native Drag&Drop operation.

        Parameters:
        evt - MouseEvent object
      • mouseEntered

        public void mouseEntered​(MouseEvent evt)
        Invoked when the mouse enters a component.
        Parameters:
        evt - MouseEvent object
      • mouseExited

        public void mouseExited​(MouseEvent evt)
        Invoked when the mouse exits a component.
        Parameters:
        evt - MouseEvent object
      • mouseMoved

        public void mouseMoved​(MouseEvent evt)
        Invoked when the mouse cursor has been moved onto a component but no buttons have been pushed.
        Parameters:
        evt - MouseEvent object
      • mousePressed

        public void mousePressed​(MouseEvent evt)
        Invoked when a mouse button has been pressed on a component.
        Parameters:
        evt - MouseEvent object
      • mouseReleased

        public void mouseReleased​(MouseEvent evt)
        Invoked when a mouse button has been released on a component.
        Parameters:
        evt - MouseEvent object