Class SelectionInspector

java.lang.Object
com.levigo.jadice.web.client.internal.annotation.SelectionInspector

public class SelectionInspector extends Object
Helper for checking Points of a ShapeAnnotation
  • Constructor Details

    • SelectionInspector

      public SelectionInspector()
  • Method Details

    • isSelectionPoint

      public boolean isSelectionPoint(ShapeBasedAnnotation annotation, Point2D point, int tolerance)
      Checks whether the given point is part of the annotation and therefore the annotation should be selected. This method is used for mouse events.
      Parameters:
      annotation - Annotation to check
      point - Point to check
      tolerance - tolerance, so you can detect points on very small lines
      Returns:
      true when the Point is on top of the Annotation
    • isSelectionTouchPoint

      public boolean isSelectionTouchPoint(ShapeBasedAnnotation annotation, Point2D point)
      Checks whether the given point is part of the annotation and therefore the annotation should be selected. This method is used for touch events.
      Parameters:
      annotation - annotation to check
      point - point to check
      Returns:
      true when the Point is on top of the Annotation Bounds
    • isSelectionPoint

      public boolean isSelectionPoint(Shape s, Point2D point, float tolerance, boolean isFilled)