com.aspose.html.dom.svg.events

Class SVGZoomEvent



  • @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.

    See Also:
    Event
    • Constructor Detail

      • SVGZoomEvent

        public SVGZoomEvent(String type)

        Initializes a new instance of the Event class.

        Parameters:
        type - The event type.
      • SVGZoomEvent

        public SVGZoomEvent(String type,
                            boolean bubbles,
                            boolean cancelable)

        Initializes a new instance of the Event class.

        Parameters:
        type - The event type.
        bubbles - if set to true [bubbles].
        cancelable - if set to true [cancelable].
    • Method Detail

      • getZoomRectScreen

        @DOMNameAttribute(name="zoomRectScreen")
        public SVGRect getZoomRectScreen()

        The specified zoom rectangle in screen units. The SVGRect object is read only.

      • getPreviousScale

        @DOMNameAttribute(name="previousScale")
        public float getPreviousScale()

        The scale factor from previous zoom operations that was in place before the zoom operation occurred.

      • getPreviousTranslate

        @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.

      • getNewScale

        @DOMNameAttribute(name="newScale")
        public float getNewScale()

        The scale factor that will be in place after the zoom operation has been processed.

      • getNewTranslate

        @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.