org.vectomatic.dom.svg.events
Class SVGZoomEvent

java.lang.Object
  extended by com.google.web.bindery.event.shared.Event<H>
      extended by com.google.gwt.event.shared.GwtEvent<H>
          extended by com.google.gwt.event.dom.client.DomEvent<SVGZoomHandler>
              extended by org.vectomatic.dom.svg.events.SVGZoomEvent
All Implemented Interfaces:
com.google.gwt.event.dom.client.HasNativeEvent

public class SVGZoomEvent
extends com.google.gwt.event.dom.client.DomEvent<SVGZoomHandler>

The zoom event occurs when the user initiates an action which causes the current view of the SVG document fragment to be rescaled. Event handlers are only recognized on svg elements.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.google.gwt.event.dom.client.DomEvent
com.google.gwt.event.dom.client.DomEvent.Type<H extends com.google.gwt.event.shared.EventHandler>
 
Constructor Summary
protected SVGZoomEvent()
          Protected constructor, use DomEvent.fireNativeEvent(com.google.gwt.dom.client.NativeEvent, com.google.gwt.event.shared.HasHandlers) to fire mouse out events.
 
Method Summary
protected  void dispatch(SVGZoomHandler handler)
           
 com.google.gwt.event.dom.client.DomEvent.Type<SVGZoomHandler> getAssociatedType()
           
 float getNewScale()
          Returns the scale factor that will be in place after the zoom operation has been processed.
 OMSVGPoint getNewTranslate()
          Returns the translation values that will be in place after the zoom operation has been processed.
 float getPreviousScale()
          Returns the scale factor from previous zoom operations that was in place before the zoom operation occurred.
 OMSVGPoint getPreviousTranslate()
          Returns the translation values from previous zoom operations that were in place before the zoom operation occurred.
static com.google.gwt.event.dom.client.DomEvent.Type<SVGZoomHandler> getType()
           
 OMSVGRect getZoomRectScreen()
          Returns the specified zoom rectangle in screen units.
 
Methods inherited from class com.google.gwt.event.dom.client.DomEvent
fireNativeEvent, fireNativeEvent, getNativeEvent, getRelativeElement, preventDefault, setNativeEvent, setRelativeElement, stopPropagation
 
Methods inherited from class com.google.gwt.event.shared.GwtEvent
assertLive, getSource, isLive, kill, revive
 
Methods inherited from class com.google.web.bindery.event.shared.Event
setSource, toDebugString, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SVGZoomEvent

protected SVGZoomEvent()
Protected constructor, use DomEvent.fireNativeEvent(com.google.gwt.dom.client.NativeEvent, com.google.gwt.event.shared.HasHandlers) to fire mouse out events.

Method Detail

getAssociatedType

public com.google.gwt.event.dom.client.DomEvent.Type<SVGZoomHandler> getAssociatedType()
Overrides:
getAssociatedType in class com.google.gwt.event.dom.client.DomEvent<SVGZoomHandler>
Returns:
the handler type

getType

public static com.google.gwt.event.dom.client.DomEvent.Type<SVGZoomHandler> getType()
Returns:
the handler type

dispatch

protected void dispatch(SVGZoomHandler handler)
Specified by:
dispatch in class com.google.gwt.event.shared.GwtEvent<SVGZoomHandler>

getZoomRectScreen

public final OMSVGRect getZoomRectScreen()
Returns the specified zoom rectangle in screen units.

Returns:
the specified zoom rectangle in screen units.

getPreviousScale

public final float getPreviousScale()
Returns the scale factor from previous zoom operations that was in place before the zoom operation occurred.

Returns:
the scale factor from previous zoom operations

getPreviousTranslate

public final OMSVGPoint getPreviousTranslate()
Returns the translation values from previous zoom operations that were in place before the zoom operation occurred. The OMSVGPoint object is read only.

Returns:
the translation values from previous zoom operations

getNewScale

public final float getNewScale()
Returns the scale factor that will be in place after the zoom operation has been processed.

Returns:
the scale factor that will be in place after the zoom operation has been processed

getNewTranslate

public final OMSVGPoint getNewTranslate()
Returns the translation values that will be in place after the zoom operation has been processed. The OMSVGPoint object is read only.

Returns:
the translation values that will be in place after the zoom operation has been processed.


Copyright © 2012. All Rights Reserved.