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

Class mxRubberband

  • All Implemented Interfaces:
    java.awt.event.MouseListener, java.awt.event.MouseMotionListener, java.util.EventListener


    public class mxRubberband
    extends java.lang.Object
    implements java.awt.event.MouseListener, java.awt.event.MouseMotionListener
    Implements a rubberband selection.
    • Constructor Summary

      Constructors 
      Constructor and Description
      mxRubberband(mxGraphComponent graphComponent)
      Constructs a new rubberband selection for the given graph component.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      java.awt.Color getBorderColor()
      Returns the border color.
      java.awt.Color getFillColor()
      Returns the fill color.
      boolean isEnabled()
      Returns the enabled state.
      boolean isRubberbandTrigger(java.awt.event.MouseEvent e)
      Returns true if the given event should start the rubberband selection.
      void mouseClicked(java.awt.event.MouseEvent arg0) 
      void mouseDragged(java.awt.event.MouseEvent e) 
      void mouseEntered(java.awt.event.MouseEvent arg0) 
      void mouseExited(java.awt.event.MouseEvent arg0) 
      void mouseMoved(java.awt.event.MouseEvent arg0) 
      void mousePressed(java.awt.event.MouseEvent e) 
      void mouseReleased(java.awt.event.MouseEvent e) 
      void paintRubberband(java.awt.Graphics g) 
      void reset()
      Resets the rubberband selection without carrying out the selection.
      java.lang.Object[] select(java.awt.Rectangle rect, java.awt.event.MouseEvent e) 
      void setBorderColor(java.awt.Color value)
      Sets the border color.
      void setEnabled(boolean enabled)
      Sets the enabled state.
      void setFillColor(java.awt.Color value)
      Sets the fill color.
      void start(java.awt.Point point)
      Starts the rubberband selection at the given point.
      • Methods inherited from class java.lang.Object

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

      • mxRubberband

        public mxRubberband(mxGraphComponent graphComponent)
        Constructs a new rubberband selection for the given graph component.
        Parameters:
        graphComponent - Component that contains the rubberband.
    • Method Detail

      • isEnabled

        public boolean isEnabled()
        Returns the enabled state.
      • setEnabled

        public void setEnabled(boolean enabled)
        Sets the enabled state.
      • getBorderColor

        public java.awt.Color getBorderColor()
        Returns the border color.
      • setBorderColor

        public void setBorderColor(java.awt.Color value)
        Sets the border color.
      • getFillColor

        public java.awt.Color getFillColor()
        Returns the fill color.
      • setFillColor

        public void setFillColor(java.awt.Color value)
        Sets the fill color.
      • isRubberbandTrigger

        public boolean isRubberbandTrigger(java.awt.event.MouseEvent e)
        Returns true if the given event should start the rubberband selection.
      • start

        public void start(java.awt.Point point)
        Starts the rubberband selection at the given point.
      • reset

        public void reset()
        Resets the rubberband selection without carrying out the selection.
      • select

        public java.lang.Object[] select(java.awt.Rectangle rect,
                                         java.awt.event.MouseEvent e)
        Parameters:
        rect -
        e -
      • paintRubberband

        public void paintRubberband(java.awt.Graphics g)
      • mousePressed

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

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

        public void mouseReleased(java.awt.event.MouseEvent e)
        Specified by:
        mouseReleased in interface java.awt.event.MouseListener
      • mouseClicked

        public void mouseClicked(java.awt.event.MouseEvent arg0)
        Specified by:
        mouseClicked in interface java.awt.event.MouseListener
      • mouseEntered

        public void mouseEntered(java.awt.event.MouseEvent arg0)
        Specified by:
        mouseEntered in interface java.awt.event.MouseListener
      • mouseExited

        public void mouseExited(java.awt.event.MouseEvent arg0)
        Specified by:
        mouseExited in interface java.awt.event.MouseListener
      • mouseMoved

        public void mouseMoved(java.awt.event.MouseEvent arg0)
        Specified by:
        mouseMoved in interface java.awt.event.MouseMotionListener

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.