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

Class mxEdgeHandler

    • Constructor Detail

    • Method Detail

      • setCloneEnabled

        public void setCloneEnabled(boolean cloneEnabled)
      • isCloneEnabled

        public boolean isCloneEnabled()
      • validateConnection

        public java.lang.String validateConnection(java.lang.Object source,
                                                   java.lang.Object target)
        Returns the error message or an empty string if the connection for the given source target pair is not valid. Otherwise it returns null.
      • isSource

        public boolean isSource(int index)
        Returns true if the current index is 0.
      • isTarget

        public boolean isTarget(int index)
        Returns true if the current index is the last index.
      • getIndexAt

        public int getIndexAt(int x,
                              int y)
        Description copied from class: mxCellHandler
        Returns the index of the handle at the given location.
        Overrides:
        getIndexAt in class mxCellHandler
        Parameters:
        x -
        y -
        Returns:
        Returns the inde of the handle at the given location.
      • mousePressed

        public void mousePressed(java.awt.event.MouseEvent e)
        Description copied from class: mxCellHandler
        Processes the given event.
        Overrides:
        mousePressed 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
      • reset

        public void reset()
        Extends the implementation to reset the current error and marker.
        Overrides:
        reset in class mxCellHandler
      • 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

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.