Class GestureEditEvent
java.lang.Object
com.levigo.jadice.web.client.tool.events.EventObject
com.levigo.jadice.web.client.tool.events.EditEvent
com.levigo.jadice.web.client.tool.events.PointedEditEvent
com.levigo.jadice.web.client.tool.events.GestureEditEvent
Edit Event for multi touch gestures
- 
Field SummaryFields inherited from class com.levigo.jadice.web.client.tool.events.EditEventdocument, pageBoundsFields inherited from class com.levigo.jadice.web.client.tool.events.EventObjectsource
- 
Method SummaryModifier and TypeMethodDescriptionvoidconsume()getAbsolutePoint(int finger) getConstrainedDocumentPoint(int finger) Return the finger position in document coordinates.getDocumentPoint(int finger) Return the finger position in document coordinates.intOverridden in subclasses.Point[]getPoint(int finger) Return the point relative to the RenderedPage's origin in screen coordinates.Point[]intgetX(int finger) Returns the x Position of the given finger.intgetY(int finger) Returns the y Position of the given finger.booleanisWithinPageBounds(int finger) Returns whether the finger is within the bounds.voidsetPrevPositions(Point[] prevPositions) Methods inherited from class com.levigo.jadice.web.client.tool.events.PointedEditEventgetConstrainedDocumentPoint, getConstrainedPoint, getDocumentPoint, getPointerRelativeX, getPointerRelativeY, setOldPositionMethods inherited from class com.levigo.jadice.web.client.tool.events.EditEventcreate, getDocument, getGwtEvent, getInputEventType, getModifiers, getModifiersEx, getPage, getPageIndex, getPageRenderControls, getRenderedPageBounds, getRenderedSize, getWhen, hasCanvasTargetSource, hasPageContext, isAltDown, isAltGraphDown, isConsumed, isControlDown, isMetaDown, isPreventPageViewFocus, isShiftDown, preventPageViewFocus, toStringMethods inherited from class com.levigo.jadice.web.client.tool.events.EventObjectgetSource
- 
Method Details- 
setPrevPositions
- 
getInputEventDescription copied from class:EditEventOverridden in subclasses.Implement only for legacy purposes. - Specified by:
- getInputEventin class- EditEvent
- Returns:
- The inputEvent used for legacy purposes.
 
- 
getFingerspublic int getFingers()
- 
getPrevPositions
- 
getNewPositions
- 
getFirstPrevPosition
- 
getFirstNewPosition
- 
consumepublic void consume()
- 
getAbsolutePoint- Specified by:
- getAbsolutePointin class- PointedEditEvent
- Parameters:
- finger- the finger of the touch (only for touch event)
- Returns:
- the Point relative to the PageView-TopLeft
 
- 
getPointDescription copied from class:PointedEditEventReturn the point relative to the RenderedPage's origin in screen coordinates.- Specified by:
- getPointin class- PointedEditEvent
- Parameters:
- finger- the finger of the touch (only for touch event)
- Returns:
- The point relative to the RenderedPage's origin.
- See Also:
 
- 
getDocumentPointReturn the finger position in document coordinates.Caveat: Clients must not attempt to call this method unless EditEvent.hasPageContext()returnedtrue.- Overrides:
- getDocumentPointin class- PointedEditEvent
- Parameters:
- finger- the finger starting from index 0.
- Returns:
- The point.
- Throws:
- IllegalStateException- if the event does not have a page context.
- See Also:
 
- 
getConstrainedDocumentPointReturn the finger position in document coordinates. If the positin is outside the page's bounds, the position is constrained to lie within the bounds.Caveat: Clients must not attempt to call this method unless EditEvent.hasPageContext()returnedtrue.- Overrides:
- getConstrainedDocumentPointin class- PointedEditEvent
- Parameters:
- finger- the finger starting from index 0.
- Returns:
- The position.
- Throws:
- IllegalStateException- if the event does not have a page context.
- See Also:
 
- 
getXpublic int getX(int finger) Returns the x Position of the given finger.- Overrides:
- getXin class- PointedEditEvent
- Parameters:
- finger- the finger starting from index 0.
- Returns:
- The x coordinate of the finger.
 
- 
getYpublic int getY(int finger) Returns the y Position of the given finger.- Overrides:
- getYin class- PointedEditEvent
- Parameters:
- finger- the finger starting from index 0.
- Returns:
- The y coordinate of the finger.
 
- 
isWithinPageBoundspublic boolean isWithinPageBounds(int finger) Returns whether the finger is within the bounds.- Overrides:
- isWithinPageBoundsin class- PointedEditEvent
- Parameters:
- finger- the finger starting from index 0.
- Returns:
- True, if the finger is within the bounds, false else.
 
 
-