Class SelectionInspector
java.lang.Object
com.levigo.jadice.web.client.internal.annotation.SelectionInspector
Helper for checking Points of a ShapeAnnotation
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
isSelectionPoint
(ShapeBasedAnnotation annotation, Point2D point, int tolerance) Checks whether the given point is part of the annotation and therefore the annotation should be selected.boolean
isSelectionPoint
(Shape s, Point2D point, float tolerance, boolean isFilled) boolean
isSelectionTouchPoint
(ShapeBasedAnnotation annotation, Point2D point) Checks whether the given point is part of the annotation and therefore the annotation should be selected.
-
Constructor Details
-
SelectionInspector
public SelectionInspector()
-
-
Method Details
-
isSelectionPoint
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 checkpoint
- Point to checktolerance
- tolerance, so you can detect points on very small lines- Returns:
- true when the Point is on top of the Annotation
-
isSelectionTouchPoint
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 checkpoint
- point to check- Returns:
- true when the Point is on top of the Annotation Bounds
-
isSelectionPoint
-