Class mxVertexHandler

    • Field Detail

      • CURSORS

        public static java.awt.Cursor[] CURSORS
      • gridEnabledEvent

        protected transient boolean gridEnabledEvent
        Workaround for alt-key-state not correct in mouseReleased.
      • constrainedEvent

        protected transient boolean constrainedEvent
        Workaround for shift-key-state not correct in mouseReleased.
    • Constructor Detail

      • mxVertexHandler

        public mxVertexHandler​(mxGraphComponent graphComponent,
                               mxCellState state)
        Parameters:
        graphComponent -
        state -
    • Method Detail

      • createHandles

        protected java.awt.Rectangle[] createHandles()
        Description copied from class: mxCellHandler
        Creates the rectangles that define the handles.
        Overrides:
        createHandles in class mxCellHandler
      • createPreview

        protected javax.swing.JComponent createPreview()
        Description copied from class: mxCellHandler
        Creates the preview for this handler.
        Overrides:
        createPreview in class mxCellHandler
      • mouseDragged

        public void mouseDragged​(java.awt.event.MouseEvent e)
        Description copied from class: mxCellHandler
        Processes the given event.
        Overrides:
        mouseDragged in class mxCellHandler
      • mouseReleased

        public void mouseReleased​(java.awt.event.MouseEvent e)
        Description copied from class: mxCellHandler
        Processes the given event.
        Overrides:
        mouseReleased in class mxCellHandler
      • moveLabel

        protected void moveLabel​(java.awt.event.MouseEvent e)
      • resizeCell

        protected void resizeCell​(java.awt.event.MouseEvent e)
        Parameters:
        e -
      • getCursor

        protected java.awt.Cursor getCursor​(java.awt.event.MouseEvent e,
                                            int index)
        Description copied from class: mxCellHandler
        Returns the cursor for the given event and handle.
        Overrides:
        getCursor in class mxCellHandler
      • union

        protected mxRectangle union​(mxRectangle bounds,
                                    double dx,
                                    double dy,
                                    int index)
        Parameters:
        bounds -
        dx -
        dy -
        index -
      • getSelectionColor

        public java.awt.Color getSelectionColor()
        Description copied from class: mxCellHandler
        Returns the color used to draw the selection border. This implementation returns null.
        Overrides:
        getSelectionColor in class mxCellHandler
      • getSelectionStroke

        public java.awt.Stroke getSelectionStroke()
        Description copied from class: mxCellHandler
        Returns the stroke used to draw the selection border. This implementation returns null.
        Overrides:
        getSelectionStroke in class mxCellHandler
      • paint

        public void paint​(java.awt.Graphics g)
        Description copied from class: mxCellHandler
        Paints the visible handles of this handler.
        Overrides:
        paint in class mxCellHandler