de.unihalle.informatik.MiToBo.core.datatypes
Class MTBTreeNodeData

java.lang.Object
  extended by de.unihalle.informatik.MiToBo.core.datatypes.MTBTreeNodeData
Direct Known Subclasses:
DirectoryTreeNodeData, MTBTreeNodeRegion2D

@ALDMetaInfo(export=ALLOWED)
public abstract class MTBTreeNodeData
extends Object

Abstract class to define properties for data objects associated with TreeNodes. Each data object has to provide a method printData() for printing its data in a reasonable way. In addition, it will by default contain a reference to the TreeNode it is associated with.

Author:
Birgit Möller
See Also:
MTBTree, MTBTreeNode

Field Summary
protected  MTBTreeNode node
          Reference to the associated node of the tree.
 
Constructor Summary
MTBTreeNodeData()
           
 
Method Summary
 MTBTreeNode getNode()
          Return the node object containing the data.
abstract  void printData()
          Method to print the data associated with the node.
 void setNode(MTBTreeNode n)
          Sets the node the object is associated with.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

node

protected MTBTreeNode node
Reference to the associated node of the tree.

Constructor Detail

MTBTreeNodeData

public MTBTreeNodeData()
Method Detail

setNode

public void setNode(MTBTreeNode n)
Sets the node the object is associated with.

Parameters:
n - TreeNode the data object belongs to.

getNode

public MTBTreeNode getNode()
Return the node object containing the data.

Returns:
Node the data is associated with.

printData

public abstract void printData()
Method to print the data associated with the node.



Copyright © 2010–2015 Martin Luther University Halle-Wittenberg. All rights reserved.