@DOMObjectAttribute @DOMNameAttribute(name="SVGZoomEvent") public class SVGZoomEvent extends Event
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.
Event
Event.EventInit
AT_TARGET_PHASE, BUBBLING_PHASE, CAPTURING_PHASE, NONE_PHASE
PropertyChanged
Constructor and Description |
---|
SVGZoomEvent(String type)
Initializes a new instance of the
Event class. |
SVGZoomEvent(String type,
boolean bubbles,
boolean cancelable)
Initializes a new instance of the
Event class. |
Modifier and Type | Method and Description |
---|---|
float |
getNewScale()
The scale factor that will be in place after the zoom operation has been processed.
|
SVGPoint |
getNewTranslate()
The translation values that will be in place after the zoom operation has been processed.
|
float |
getPreviousScale()
The scale factor from previous zoom operations that was in place before the zoom operation occurred.
|
SVGPoint |
getPreviousTranslate()
The translation values from previous zoom operations that were in place before the zoom operation occurred.
|
SVGRect |
getZoomRectScreen()
The specified zoom rectangle in screen units.
|
createDOMContentLoadedEvent, createError, createEvent, createEvent, createEventByType, dispatch, getBubbles, getCancelable, getCurrentTarget, getDefaultPrevented, getEventPhase, getTarget, getTimeStamp, getType, initEvent, isTrusted, preventDefault, setCurrentTarget, setEventPhase, setTarget, stopImmediatePropagation, stopPropagation
fireNotifyPropertyChanged, getCurrentValues, getRuntimesBinding, setCurrentValues, setField, setRuntimesBinding
public SVGZoomEvent(String type)
Initializes a new instance of the Event
class.
type
- The event type.@DOMNameAttribute(name="zoomRectScreen") public SVGRect getZoomRectScreen()
The specified zoom rectangle in screen units. The SVGRect object is read only.
@DOMNameAttribute(name="previousScale") public float getPreviousScale()
The scale factor from previous zoom operations that was in place before the zoom operation occurred.
@DOMNameAttribute(name="previousTranslate") public SVGPoint getPreviousTranslate()
The translation values from previous zoom operations that were in place before the zoom operation occurred. The SVGPoint object is read only.
@DOMNameAttribute(name="newScale") public float getNewScale()
The scale factor that will be in place after the zoom operation has been processed.
@DOMNameAttribute(name="newTranslate") public SVGPoint getNewTranslate()
The translation values that will be in place after the zoom operation has been processed. The SVGPoint object is read only.