Class 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
    • Field Detail

      • m_Nodes

        protected Node[] m_Nodes
        the nodes that triggered the event.
    • Constructor Detail

      • ActorChangeEvent

        public ActorChangeEvent​(Tree tree,
                                Node node,
                                ActorChangeEvent.Type type)
        Initializes the event.
        Parameters:
        tree - the tree
        node - the node
        type - the type of event
      • ActorChangeEvent

        public ActorChangeEvent​(Tree tree,
                                Node[] nodes,
                                ActorChangeEvent.Type type)
        Initializes the event.
        Parameters:
        tree - the tree
        nodes - the nodes
        type - 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)
      • toString

        public String toString()
        Returns a string representation of the event.
        Overrides:
        toString in class EventObject
        Returns:
        the string representation