java.lang.Object
com.levigo.jadice.web.client.internal.annotation.Handle
Direct Known Subclasses:
ResizeAnnotationsGesture.ResizeTypeHandle, TextAnnotationWrangler.RotateHandle

public abstract class Handle extends Object
A Point, the user can interact with the Annotation
  • Constructor Details

    • Handle

      public Handle()
    • Handle

      public Handle(Point2D point)
    • Handle

      @Deprecated public Handle(Point2D point, com.google.gwt.dom.client.Style.Cursor cursor, String text)
      Deprecated.
      Use Handle(Point 2D point, String cursor, String text) instead. To easily convert, just add .getCssname() to this method's cursor parameter.
    • Handle

      public Handle(Point2D point, String cursor, String text)
  • Method Details

    • setPoint

      public void setPoint(Point2D point)
    • getPoint

      public Point2D getPoint()
    • getCursor

      public String getCursor(BaseRenderSettings settings)
    • getText

      public String getText()
    • createGesture

      protected Gesture createGesture(PointedEditEvent e)
      Overwrite this to use default Gesture mechanism defined in onMousePressed
      Parameters:
      e - A mouse event.
      Returns:
      null.
    • onMousePressed

      public void onMousePressed(MouseEditEvent e, Gesture.GestureHandler handler)
    • onTouchStart

      public void onTouchStart(TouchEditEvent e, Gesture.GestureHandler handler)
    • isSelectionPoint

      public boolean isSelectionPoint(Point2D mousePointDocp, int tolleranceDocp)
    • getHandleColor

      protected Color getHandleColor()
    • getHandleBorderColor

      protected Color getHandleBorderColor()
    • getBorderSizeInPercent

      protected double getBorderSizeInPercent()
      Return the percent value which determines the border width depending on the handle radius. Default is 25, which means the border width will be 25% of the handle radius.
      Returns:
      the percent value
    • render

      public void render(com.levigo.jadice.web.client.util.internal.graphics.JadiceGraphics graphics)
    • render

      protected void render(com.levigo.jadice.web.client.util.internal.graphics.JadiceGraphics graphics, Point2D position, Color handleColor)