Class EllipseAnnotationWrangler


public class EllipseAnnotationWrangler extends DefaultWrangler<EllipseAnnotation>
  • Constructor Details

    • EllipseAnnotationWrangler

      public EllipseAnnotationWrangler()
  • Method Details

    • isSelectionPoint

      public boolean isSelectionPoint(Annotation annotation, Point2D mousePoint, int tolerance, boolean b, int lineWidthFactor)
      Overrides:
      isSelectionPoint in class DefaultWrangler<EllipseAnnotation>
    • detectSelection

      protected boolean detectSelection(Shape annoShape, Point2D mousePoint, float tolerance, boolean isFilled)
      Detects if the ellipse is selected
      Parameters:
      annoShape - the shape of the ellipse annotation
      mousePoint - the current mouse point
      tolerance - the tolerance of the selection. How far away of the annotation can the mouse be to still select the annotation.
      isFilled - whether the annotation is filled or not
      Returns:
      whether the annotation is selected or not