Class RotationControls.RotationAnchorHandle

java.lang.Object
com.inductiveautomation.ignition.designer.designable.controls.AbstractShapeHandle
com.inductiveautomation.ignition.designer.designable.controls.RotationControls.RotationAnchorHandle
All Implemented Interfaces:
IHandle
Enclosing class:
RotationControls

protected class RotationControls.RotationAnchorHandle extends AbstractShapeHandle
  • Method Details

    • getStatusBarText

      public String getStatusBarText(int inputMask)
      Description copied from interface: IHandle
      Called on mouseover and during drag to get the status bar text for the handle.
      Specified by:
      getStatusBarText in interface IHandle
      Overrides:
      getStatusBarText in class AbstractShapeHandle
    • newDrawShape

      protected Shape newDrawShape()
      Description copied from class: AbstractShapeHandle
      Called to create a new draw shape. Expectation is that a subclass will override this to provide a meaningful shape. Anchor point is at (0,0). Default shape is a 10x10 square anchored in the center.
      Overrides:
      newDrawShape in class AbstractShapeHandle
    • paintHandle

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

      protected void position(Point2D.Double location)
      Description copied from class: AbstractShapeHandle
      Updates the argument location with the correct position of this handle's anchor point. Must be in logical (unzoomed) coordinates.
      Specified by:
      position in class AbstractShapeHandle
    • 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().)
    • 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().)
    • 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().)