- java.lang.Object
-
- java.util.EventObject
-
- org.arakhne.afc.math.tree.TreeNodeAddedEvent
-
- All Implemented Interfaces:
Serializable
public class TreeNodeAddedEvent extends EventObject
Called each time an addition event occurs on a tree node.- Since:
- 13.0
- Version:
- 17.0 2020-01-04 14:41:41
- Author:
- Stéphane GALLAND
- See Also:
- Serialized Form
- Maven Group Id:
- org.arakhne.afc.core
- Maven Artifact Id:
- mathtree
-
-
Field Summary
-
Fields inherited from class java.util.EventObject
source
-
-
Constructor Summary
Constructors Constructor Description TreeNodeAddedEvent(TreeNode<?,?> source1, int childIndex1, TreeNode<?,?> child1)
Construct the event.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TreeNode<?,?>
getChild()
Replies the child node that changed.int
getChildIndex()
Replies the index of the child node that changed.TreeNode<?,?>
getParentNode()
Replies the node that fire the event.-
Methods inherited from class java.util.EventObject
getSource, toString
-
-
-
-
Method Detail
-
getParentNode
@Pure public TreeNode<?,?> getParentNode()
Replies the node that fire the event.- Returns:
- the node inside which a node was added.
-
getChildIndex
@Pure public int getChildIndex()
Replies the index of the child node that changed.- Returns:
- the index of the new node
-
getChild
@Pure public TreeNode<?,?> getChild()
Replies the child node that changed.- Returns:
- the new node
-
-