Package adams.gui.event
Class ActorChangeEvent
- java.lang.Object
-
- java.util.EventObject
-
- adams.gui.event.ActorChangeEvent
-
- All Implemented Interfaces:
Serializable
public class ActorChangeEvent extends EventObject
Event that gets sent when the tree's actors got modified.- Version:
- $Revision$
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ActorChangeEvent.Type
The type of event.
-
Field Summary
Fields Modifier and Type Field Description protected Node[]
m_Nodes
the nodes that triggered the event.protected ActorChangeEvent.Type
m_Type
the type of event.-
Fields inherited from class java.util.EventObject
source
-
-
Constructor Summary
Constructors Constructor Description ActorChangeEvent(Tree tree, Node[] nodes, ActorChangeEvent.Type type)
Initializes the event.ActorChangeEvent(Tree tree, Node node, ActorChangeEvent.Type type)
Initializes the event.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Node[]
getNodes()
Returns the node(s) that triggered the event.Tree
getTree()
Returns the tree that triggered the event.ActorChangeEvent.Type
getType()
Returns the type of event.String
toString()
Returns a string representation of the event.-
Methods inherited from class java.util.EventObject
getSource
-
-
-
-
Field Detail
-
m_Nodes
protected Node[] m_Nodes
the nodes that triggered the event.
-
m_Type
protected ActorChangeEvent.Type m_Type
the type of event.
-
-
Constructor Detail
-
ActorChangeEvent
public ActorChangeEvent(Tree tree, Node node, ActorChangeEvent.Type type)
Initializes the event.- Parameters:
tree
- the treenode
- the nodetype
- the type of event
-
ActorChangeEvent
public ActorChangeEvent(Tree tree, Node[] nodes, ActorChangeEvent.Type type)
Initializes the event.- Parameters:
tree
- the treenodes
- the nodestype
- the type of event
-
-
Method Detail
-
getTree
public Tree getTree()
Returns the tree that triggered the event.- Returns:
- the tree
-
getNodes
public Node[] getNodes()
Returns the node(s) that triggered the event.- Returns:
- the node(s)
-
getType
public ActorChangeEvent.Type getType()
Returns the type of event.- Returns:
- the type of event
-
toString
public String toString()
Returns a string representation of the event.- Overrides:
toString
in classEventObject
- Returns:
- the string representation
-
-