Class Event

Object
   |
   +--Event

class Event

This class represents an event received from the tracing server.


Constructor Summary
Event (xml_event, controller)
           
 
Method Summary
 function nextElement(node)
           Used to get the next 'element' within the XML document.
 function updateSVGOperation()
           Used to update the SVG operation group that gives a graphical representation of all the operation lines.

Constructor Detail

Event

function Event(xml_event, controller)

Parameters:
controller - SVGController instance.

xml_event - XML document containing the event parameters.

Method Detail

nextElement

function nextElement(node)
Used to get the next 'element' within the XML document. This routine is only used internally.

Parameters:
node - Current 'element' node within the document.

Returns:
The next 'element' node or null if there is no 'element node following the current 'element' node.

updateSVGOperation

function updateSVGOperation()
Used to update the SVG operation group that gives a graphical representation of all the operation lines. This routine appends a SVG fragment to the operation group that reflects the operation line between this event and its peer. If this is an unmatched event no operation line can and will be drawn. Exception type of operation are displayed in red, normal operation in black. This coloring schema is overruled by trail label coloring.