Documentation of 'com.mxgraph.swing.handler.mxCellHandler' Java class
mxCellHandler
com.mxgraph.swing.handler

Class mxCellHandler

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      java.awt.Rectangle getBounds()
      Returns the bounding box of this handler.
      mxGraphComponent getGraphComponent() 
      int getIndex()
      Returns the index of the current handle.
      int getIndexAt(int x, int y)
      Returns the index of the handle at the given location.
      java.awt.Color getSelectionColor()
      Returns the color used to draw the selection border.
      java.awt.Stroke getSelectionStroke()
      Returns the stroke used to draw the selection border.
      mxCellState getState()
      Returns the cell state that is associated with this handler.
      java.lang.String getToolTipText(java.awt.event.MouseEvent e)
      Hook for subclassers to return tooltip texts for certain points on the handle.
      boolean isActive() 
      boolean isHandlesVisible()
      Returns true if the handles should be painted.
      boolean isLabel(int index)
      Returns true if the given index is the index of the last handle.
      boolean isLabelMovable()
      Returns true if the label is movable.
      void mouseDragged(java.awt.event.MouseEvent e)
      Processes the given event.
      void mouseMoved(java.awt.event.MouseEvent e)
      Processes the given event.
      void mousePressed(java.awt.event.MouseEvent e)
      Processes the given event.
      void mouseReleased(java.awt.event.MouseEvent e)
      Processes the given event.
      void paint(java.awt.Graphics g)
      Paints the visible handles of this handler.
      void refresh(mxCellState state)
      Refreshes the cell handler.
      void reset()
      Resets the state of the handler and removes the preview.
      void setHandlesVisible(boolean handlesVisible)
      Specifies if the handles should be painted.
      void start(java.awt.event.MouseEvent e, int index)
      Starts handling a gesture at the given handle index.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • mxCellHandler

        public mxCellHandler(mxGraphComponent graphComponent,
                             mxCellState state)
        Constructs a new cell handler for the given cell state.
        Parameters:
        graphComponent - Enclosing graph component.
        state - Cell state for which the handler is created.
    • Method Detail

      • isActive

        public boolean isActive()
      • refresh

        public void refresh(mxCellState state)
        Refreshes the cell handler.
      • getState

        public mxCellState getState()
        Returns the cell state that is associated with this handler.
      • getIndex

        public int getIndex()
        Returns the index of the current handle.
      • getBounds

        public java.awt.Rectangle getBounds()
        Returns the bounding box of this handler.
      • isLabelMovable

        public boolean isLabelMovable()
        Returns true if the label is movable.
      • isHandlesVisible

        public boolean isHandlesVisible()
        Returns true if the handles should be painted.
      • setHandlesVisible

        public void setHandlesVisible(boolean handlesVisible)
        Specifies if the handles should be painted.
      • isLabel

        public boolean isLabel(int index)
        Returns true if the given index is the index of the last handle.
      • getToolTipText

        public java.lang.String getToolTipText(java.awt.event.MouseEvent e)
        Hook for subclassers to return tooltip texts for certain points on the handle.
      • getIndexAt

        public int getIndexAt(int x,
                              int y)
        Returns the index of the handle at the given location.
        Parameters:
        x - X-coordinate of the location.
        y - Y-coordinate of the location.
        Returns:
        Returns the handle index for the given location.
      • mousePressed

        public void mousePressed(java.awt.event.MouseEvent e)
        Processes the given event.
      • mouseMoved

        public void mouseMoved(java.awt.event.MouseEvent e)
        Processes the given event.
      • mouseDragged

        public void mouseDragged(java.awt.event.MouseEvent e)
        Processes the given event.
      • mouseReleased

        public void mouseReleased(java.awt.event.MouseEvent e)
        Processes the given event.
      • start

        public void start(java.awt.event.MouseEvent e,
                          int index)
        Starts handling a gesture at the given handle index.
      • reset

        public void reset()
        Resets the state of the handler and removes the preview.
      • paint

        public void paint(java.awt.Graphics g)
        Paints the visible handles of this handler.
      • getSelectionColor

        public java.awt.Color getSelectionColor()
        Returns the color used to draw the selection border. This implementation returns null.
      • getSelectionStroke

        public java.awt.Stroke getSelectionStroke()
        Returns the stroke used to draw the selection border. This implementation returns null.

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.