Class EllipseAnnotationWrangler
java.lang.Object
com.levigo.jadice.annotation.AnnotationWrangler
com.levigo.jadice.web.client.internal.annotation.Wrangler<EllipseAnnotation>
com.levigo.jadice.web.client.internal.annotation.wrangler.DefaultWrangler<EllipseAnnotation>
com.levigo.jadice.web.client.internal.annotation.wrangler.EllipseAnnotationWrangler
-
Nested Class Summary
Nested classes/interfaces inherited from class com.levigo.jadice.web.client.internal.annotation.wrangler.DefaultWrangler
DefaultWrangler.CreationMode
-
Field Summary
Fields inherited from class com.levigo.jadice.web.client.internal.annotation.wrangler.DefaultWrangler
boundsType, createAnno, createEnd, createStart, EMPTY_HANDLE_LIST, MINIMUM_HEIGHT, MINIMUM_WIDTH, minimumHeight, minimumWidth, selectionInspector
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
detectSelection
(Shape annoShape, Point2D mousePoint, float tolerance, boolean isFilled) Detects if the ellipse is selectedboolean
isSelectionPoint
(Annotation annotation, Point2D mousePoint, int tolerance, boolean b, int lineWidthFactor) boolean
isSelectionPointRectangle
(Annotation annotation, Point2D mousePoint) Methods inherited from class com.levigo.jadice.web.client.internal.annotation.wrangler.DefaultWrangler
afterCreate, calcMinWidth, contribute, getCreationMode, getCursor, getHandles, getMinimumHeight, getMinimumWidth, handleCreateEditEvent, handleEditEvent, isSelectionTouchPoint, setCreationMode, setMinimumHeight, setMinimumWidth, updateCreated
-
Constructor Details
-
EllipseAnnotationWrangler
public EllipseAnnotationWrangler()
-
-
Method Details
-
isSelectionPoint
public boolean isSelectionPoint(Annotation annotation, Point2D mousePoint, int tolerance, boolean b, int lineWidthFactor) - Overrides:
isSelectionPoint
in classDefaultWrangler<EllipseAnnotation>
-
isSelectionPointRectangle
-
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 annotationmousePoint
- the current mouse pointtolerance
- 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
-