Class RotationControls.AbstractRotationHandle

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void dragged​(double dX, double dY, int inputMask)  
      java.lang.String getStatusBarText​(int inputMask)
      Called on mouseover and during drag to get the status bar text for the handle.
      void onDrag​(double dX, double dY, int inputMask)
      Called while the handle is being dragged.
      void onDragEnd​(double dX, double dY, int inputMask)
      The drag event is complete (mouse has been released).
      void onDragStart​(double dX, double dY, int inputMask)
      The handle has started to be dragged.
      void paintHandle​(java.awt.Graphics2D g, boolean mouseOver, boolean drag)
      Gives the handle a chance to paint itself on the given graphics object.
      • Methods inherited from class java.lang.Object

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

      • AbstractRotationHandle

        protected AbstractRotationHandle()
    • Method Detail

      • onDragStart

        public void onDragStart​(double dX,
                                double dY,
                                int inputMask)
        Description copied from interface: IHandle
        The handle has started to be dragged.
        Specified by:
        onDragStart in interface IHandle
        Overrides:
        onDragStart in class AbstractShapeHandle
        Parameters:
        dX - The distance along the horizontal axis away from the drag starting point. (Unzoomed, logical)
        dY - The distance along the vertical axis away from the drag starting point. (Unzoomed, logical)
        inputMask - The extended modifiers from the underlying mouse drag (see MouseEvent.getModifiersEx().)
      • onDrag

        public void onDrag​(double dX,
                           double dY,
                           int inputMask)
        Description copied from interface: IHandle
        Called while the handle is being dragged.
        Specified by:
        onDrag in interface IHandle
        Overrides:
        onDrag in class AbstractShapeHandle
        Parameters:
        dX - The distance along the horizontal axis away from the drag starting point. (Unzoomed, logical)
        dY - The distance along the vertical axis away from the drag starting point. (Unzoomed, logical)
        inputMask - The extended modifiers from the underlying mouse drag (see MouseEvent.getModifiersEx().)
      • onDragEnd

        public void onDragEnd​(double dX,
                              double dY,
                              int inputMask)
        Description copied from interface: IHandle
        The drag event is complete (mouse has been released).
        Specified by:
        onDragEnd in interface IHandle
        Overrides:
        onDragEnd in class AbstractShapeHandle
        Parameters:
        dX - The distance along the horizontal axis away from the drag starting point. (Unzoomed, logical)
        dY - The distance along the vertical axis away from the drag starting point. (Unzoomed, logical)
        inputMask - The extended modifiers from the underlying mouse drag (see MouseEvent.getModifiersEx().)
      • dragged

        protected void dragged​(double dX,
                               double dY,
                               int inputMask)
      • paintHandle

        public void paintHandle​(java.awt.Graphics2D g,
                                boolean mouseOver,
                                boolean drag)
        Description copied from interface: IHandle
        Gives the handle a chance to paint itself on the given graphics object.