com.aspose.html.dom.svg.events

Class TimeEvent



  • @DOMObjectAttribute
     @DOMNameAttribute(name="TimeEvent")
    public class TimeEvent
    extends Event

    The TimeEvent interface provides specific contextual information associated with Time events.The different types of events that can occur are: beginEvent, endEvent and repeatEvent.

    See Also:
    Event
    • Constructor Detail

      • TimeEvent

        public TimeEvent(java.lang.String type)

        Initializes a new instance of the Event class.

        Parameters:
        type - The event type.
      • TimeEvent

        public TimeEvent(java.lang.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

      • getView

        @DOMNameAttribute(name="view")
        public IAbstractView getView()

        The view attribute identifies the AbstractView [DOM2VIEWS] from which the event was generated.

        Value: The current view.
      • getDetail

        @DOMNameAttribute(name="detail")
        public long getDetail()

        Specifies some detail information about the Event, depending on the type of the event. For this event type, indicates the repeat number for the animation.

        Value: The detail.
      • initTimeEvent

        @DOMNameAttribute(name="initTimeEvent")
        public void initTimeEvent(java.lang.String typeArg,
                                                                          IAbstractView viewArg,
                                                                          long detailArg)

        The initTimeEvent method is used to initialize the value of a TimeEvent created through the DocumentEvent interface. This method may only be called before the TimeEvent has been dispatched via the dispatchEvent method, though it may be called multiple times during that phase if necessary. If called multiple times, the final invocation takes precedence.

        Parameters:
        typeArg - Specifies the event type.
        viewArg - Specifies the Event's AbstractView.
        detailArg - Specifies the Event's detail.