org.severe.jripples.eig
Class JRipplesEIGNodeEvent

java.lang.Object
  extended by java.util.EventObject
      extended by org.eclipse.swt.internal.SWTEventObject
          extended by org.eclipse.swt.events.TypedEvent
              extended by org.severe.jripples.eig.JRipplesEIGNodeEvent
All Implemented Interfaces:
java.io.Serializable

public class JRipplesEIGNodeEvent
extends org.eclipse.swt.events.TypedEvent

JRipplesEIGNodeEvent class represents lifecycle and content events that happen with a particular JRipplesEIGNode. That is, creation, changes in underlying member, mark and probability, and node removal.

Author:
Maksym Petrenko
See Also:
JRipplesEIGNode, Serialized Form

Field Summary
static int NODE_ADDED
          Event constant for JRipplesEIGNode creation.
static int NODE_MARK_CHANGED
          Event constant for JRipplesEIGNode mark changes.
static int NODE_MEMBER_CHANGED
          Event constant for JRipplesEIGNode underlying IMember changes.
static int NODE_PROBABILITY_CHANGED
          Event constant for JRipplesEIGNode probability changes.
static int NODE_REMOVED
          Event constant for JRipplesEIGNode removal.
 
Fields inherited from class org.eclipse.swt.events.TypedEvent
data, display, time, widget
 
Constructor Summary
JRipplesEIGNodeEvent(JRipplesEIGNode node, int type)
           
 
Method Summary
 int getEventType()
          Returns a type of the node event, where type is one of the constants defined in JRipplesEIGNodeEvent.
 JRipplesEIGNode getNode()
          Returns the node this event occured on.
 
Methods inherited from class org.eclipse.swt.events.TypedEvent
toString
 
Methods inherited from class java.util.EventObject
getSource
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

NODE_MARK_CHANGED

public static final int NODE_MARK_CHANGED
Event constant for JRipplesEIGNode mark changes. Will occur if JRipplesEIGNode.setMark(String) was called.

See Also:
Constant Field Values

NODE_PROBABILITY_CHANGED

public static final int NODE_PROBABILITY_CHANGED
Event constant for JRipplesEIGNode probability changes. Will occur if JRipplesEIGNode.setProbability(String) was called.

See Also:
Constant Field Values

NODE_MEMBER_CHANGED

public static final int NODE_MEMBER_CHANGED
Event constant for JRipplesEIGNode underlying IMember changes. Will occured if JRipplesEIGNode.JRipplesEIGNode(org.eclipse.jdt.core.IMember) constructor was called.

See Also:
Constant Field Values

NODE_ADDED

public static final int NODE_ADDED
Event constant for JRipplesEIGNode creation. Will occured if JRipplesEIG.addNode(org.eclipse.jdt.core.IMember) was called.

See Also:
Constant Field Values

NODE_REMOVED

public static final int NODE_REMOVED
Event constant for JRipplesEIGNode removal. Will occured if JRipplesEIG.removeNode(JRipplesEIGNode) was called, or if a Node of declaring class of this node was removed.

See Also:
Constant Field Values
Constructor Detail

JRipplesEIGNodeEvent

public JRipplesEIGNodeEvent(JRipplesEIGNode node,
                            int type)
Parameters:
node - The node this event occured on
type - Type of the node event, where type is one of the constants defined in JRipplesEIGNodeEvent
Method Detail

getNode

public JRipplesEIGNode getNode()
Returns the node this event occured on.

Returns:
The node this event occured on

getEventType

public int getEventType()
Returns a type of the node event, where type is one of the constants defined in JRipplesEIGNodeEvent.

Returns:
Type of the node event, where type is one of the constants defined in JRipplesEIGNodeEvent