net.xoetrope.optional.svg.tinyline
Class SVGEvent

java.lang.Object
  extended by net.xoetrope.optional.svg.tinyline.SVGEvent
All Implemented Interfaces:
Event

public class SVGEvent
extends java.lang.Object
implements Event

The SVGEvent class is used to provide contextual information about an event to the handler processing the event.

SVGT 1.1 only allows interactivity with declarative animation. The list of event-symbols available for a given event-base element is the list of event attributes available for the given element as defined by the SVG DTD, with the one difference that the leading 'on' is removed from the event name (i.e., the animation event name is 'click', not 'onclick').


Field Summary
 java.lang.Object data
          The event data
static int EVENT_ANIMATE
          Internal Event.
static int EVENT_BEGIN
          Occurs when an animation element begins.
static int EVENT_CLICK
          Occurs when the pointing device button is clicked over an element.
static int EVENT_END
          Occurs when an animation element ends.
static int EVENT_ERROR
          The error event occurs when an element does not load properly or when an error occurs during script execution.
static int EVENT_FOCUSHIDE
          Occurs when a list of linked elements is being hided.
static int EVENT_FOCUSIN
          Occurs when an element receives focus.
static int EVENT_FOCUSNEXT
          Occurs when an focus is being shifted to the next linked element.
static int EVENT_FOCUSOUT
          Occurs when an element loses focus.
static int EVENT_FOCUSPRESSED
          Occurs when an focus is being shifted to the previous linked element.
static int EVENT_FOCUSPREV
          Occurs when an focus is being shifted to the previous linked element.
static int EVENT_FOCUSSHOW
          Occurs when a list of linked elements is being showed.
static int EVENT_LOAD
          The event is triggered at the point at which the user agent has fully parsed the element and its descendants and is ready to act appropriately upon that element, such as being ready to render the element to the target device.
static java.lang.String[] EVENT_NAMES
          The Event Names
static int EVENT_ORIGVIEW
          Occurs when a document view is being returned to the original one.
static int EVENT_PAUSERESUME
          Occurs when animations are being paused or resumed.
static int EVENT_QUALITY
          Occurs when an antialising is being switched on or off.
static int EVENT_REPEAT
          Occurs when an animation element repeats.
static int EVENT_SCROLL
          Occurs when a document view is being shifted along the X or Y or both axis
static int EVENT_UNKNOWN
          The unknown event.
static int EVENT_UNLOAD
          The unload event occurs when the DOM implementation removes a document from a window or frame.
static int EVENT_UPDATE
          Internal Event.
static int EVENT_ZOOM
          Occurs when the zoom level of a document view is being changed.
 EventTarget eventTarget
          The event target
 int id
          The event type
 SVGEvent next
          The next event
 
Constructor Summary
SVGEvent(int id, java.lang.Object data)
          Creates a new SVGEvent object.
 
Method Summary
 EventTarget getCurrentTarget()
          uDOM: Returns the current EventTarget to which the event was originally dispatched.
 java.lang.String getType()
          uDOM: Returns the event type
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EVENT_NAMES

public static java.lang.String[] EVENT_NAMES
The Event Names


EVENT_ANIMATE

public static final int EVENT_ANIMATE
Internal Event. Occurs when an element is animated.

See Also:
Constant Field Values

EVENT_BEGIN

public static final int EVENT_BEGIN
Occurs when an animation element begins.

See Also:
Constant Field Values

EVENT_CLICK

public static final int EVENT_CLICK
Occurs when the pointing device button is clicked over an element.

See Also:
Constant Field Values

EVENT_END

public static final int EVENT_END
Occurs when an animation element ends.

See Also:
Constant Field Values

EVENT_ERROR

public static final int EVENT_ERROR
The error event occurs when an element does not load properly or when an error occurs during script execution.

See Also:
Constant Field Values

EVENT_FOCUSHIDE

public static final int EVENT_FOCUSHIDE
Occurs when a list of linked elements is being hided.

See Also:
Constant Field Values

EVENT_FOCUSIN

public static final int EVENT_FOCUSIN
Occurs when an element receives focus.

See Also:
Constant Field Values

EVENT_FOCUSNEXT

public static final int EVENT_FOCUSNEXT
Occurs when an focus is being shifted to the next linked element.

See Also:
Constant Field Values

EVENT_FOCUSOUT

public static final int EVENT_FOCUSOUT
Occurs when an element loses focus.

See Also:
Constant Field Values

EVENT_FOCUSPRESSED

public static final int EVENT_FOCUSPRESSED
Occurs when an focus is being shifted to the previous linked element.

See Also:
Constant Field Values

EVENT_FOCUSPREV

public static final int EVENT_FOCUSPREV
Occurs when an focus is being shifted to the previous linked element.

See Also:
Constant Field Values

EVENT_FOCUSSHOW

public static final int EVENT_FOCUSSHOW
Occurs when a list of linked elements is being showed.

See Also:
Constant Field Values

EVENT_LOAD

public static final int EVENT_LOAD
The event is triggered at the point at which the user agent has fully parsed the element and its descendants and is ready to act appropriately upon that element, such as being ready to render the element to the target device.

See Also:
Constant Field Values

EVENT_ORIGVIEW

public static final int EVENT_ORIGVIEW
Occurs when a document view is being returned to the original one.

See Also:
Constant Field Values

EVENT_PAUSERESUME

public static final int EVENT_PAUSERESUME
Occurs when animations are being paused or resumed.

See Also:
Constant Field Values

EVENT_QUALITY

public static final int EVENT_QUALITY
Occurs when an antialising is being switched on or off.

See Also:
Constant Field Values

EVENT_REPEAT

public static final int EVENT_REPEAT
Occurs when an animation element repeats.

See Also:
Constant Field Values

EVENT_SCROLL

public static final int EVENT_SCROLL
Occurs when a document view is being shifted along the X or Y or both axis

See Also:
Constant Field Values

EVENT_UNLOAD

public static final int EVENT_UNLOAD
The unload event occurs when the DOM implementation removes a document from a window or frame.

See Also:
Constant Field Values

EVENT_UPDATE

public static final int EVENT_UPDATE
Internal Event. Occurs when an element is updated.

See Also:
Constant Field Values

EVENT_ZOOM

public static final int EVENT_ZOOM
Occurs when the zoom level of a document view is being changed.

See Also:
Constant Field Values

EVENT_UNKNOWN

public static final int EVENT_UNKNOWN
The unknown event.

See Also:
Constant Field Values

id

public int id
The event type


data

public java.lang.Object data
The event data


eventTarget

public EventTarget eventTarget
The event target


next

public SVGEvent next
The next event

Constructor Detail

SVGEvent

public SVGEvent(int id,
                java.lang.Object data)
Creates a new SVGEvent object.

Parameters:
id - The event type.
data - The event data.
Method Detail

getType

public java.lang.String getType()
uDOM: Returns the event type

Specified by:
getType in interface Event

getCurrentTarget

public EventTarget getCurrentTarget()
uDOM: Returns the current EventTarget to which the event was originally dispatched.

Specified by:
getCurrentTarget in interface Event