WordTree.Node Class Reference

One Node of the WordTree. More...

List of all members.

Public Member Functions

Node clone ()
 Copies the word and the markYellow property to a new Node.
 Node (String _word)
 Default constructor.
PointF getLastPosition ()
 Get the position where this Node was drawn in the last render call.
void setLastPosition (PointF lastPosition)
 Set the last position.
void setYellow (bool value)
 Mark this node yellow.
void addChild (String word)
 Add a child Node to this Node (simple string).
void addChild (Node node)
 Add a child Node to this Node.
String getWord ()
 Gets the word represented by this Node.
bool addSentence (String[] sentence)
 Add a sentence to this node and automatically generate all subnodes.
void drawAllChildren (Graphics g, WordTree wordTree, PointF rootPosition, float xEndOfPrevious, float yMin, float yMax, float parentFontSize, float zoomFactor, float zoomWindowLeft, float zoomWindowTop, float zoomWindowHalfWidth, float zoomWindowHalfHeight, bool solid, DisplayList displayList, bool visible, bool drawMarkedChildrenAlpha)
 Draws all Children of this Node.
LinkedList< String > findNode (Graphics g, WordTree wordTree, int x, int y, PointF rootPosition, float xEndOfPrevious, float yMin, float yMax, float parentFontSize, float zoomFactor, float zoomWindowLeft, float zoomWindowTop, float zoomWindowHalfWidth, float zoomWindowHalfHeight)
 Finds a node.
void resort (int mode)
 Changes the sorting mode.
void createFrequencySorting ()
 Creates the frequency sorting for this node.

Public Attributes

LinkedList< Nodechildren
bool doNotInsertIntoDisplayList = false
int leafCount

Detailed Description

One Node of the WordTree.


Constructor & Destructor Documentation

WordTree.Node.Node ( String  _word  ) 

Default constructor.


Member Function Documentation

void WordTree.Node.addChild ( Node  node  ) 

Add a child Node to this Node.

void WordTree.Node.addChild ( String  word  ) 

Add a child Node to this Node (simple string).

bool WordTree.Node.addSentence ( String[]  sentence  ) 

Add a sentence to this node and automatically generate all subnodes.

Node WordTree.Node.clone (  ) 

Copies the word and the markYellow property to a new Node.

void WordTree.Node.createFrequencySorting (  ) 

Creates the frequency sorting for this node.

void WordTree.Node.drawAllChildren ( Graphics  g,
WordTree  wordTree,
PointF  rootPosition,
float  xEndOfPrevious,
float  yMin,
float  yMax,
float  parentFontSize,
float  zoomFactor,
float  zoomWindowLeft,
float  zoomWindowTop,
float  zoomWindowHalfWidth,
float  zoomWindowHalfHeight,
bool  solid,
DisplayList  displayList,
bool  visible,
bool  drawMarkedChildrenAlpha 
)

Draws all Children of this Node.

Parameters:
g The graphic object for drawing and measuring strings.
wordTree The parent WordTree.
rootPosition The position of the root element.
xEndOfPrevious x coordinate of this node's parent node.
yMin Minimum y of the target drawing region.
yMax Maximum y of the target drawing region.
parentFontSize Font size of the parent node.
zoomFactor Zoom factor for the zoom window.
zoomWindowLeft Zoom window left coordinate.
zoomWindowTop Zoom window top coordinate.
zoomWindowHalfWidth Zoom window half width.
zoomWindowHalfHeight Zoom window half height.
solid Draw everything solid?
displayList Render to a DisplayList.
visible Draw anything?
drawMarkedChildrenAlpha Draw the previously marked children with the class' alpha value.
LinkedList<String> WordTree.Node.findNode ( Graphics  g,
WordTree  wordTree,
int  x,
int  y,
PointF  rootPosition,
float  xEndOfPrevious,
float  yMin,
float  yMax,
float  parentFontSize,
float  zoomFactor,
float  zoomWindowLeft,
float  zoomWindowTop,
float  zoomWindowHalfWidth,
float  zoomWindowHalfHeight 
)

Finds a node.

Parameters:
g The graphic object for drawing and measuring strings.
wordTree The parent WordTree.
x 
y 
rootPosition The position of the root element.
xEndOfPrevious x coordinate of this node's parent node.
yMin Minimum y of the target drawing region.
yMax Maximum y of the target drawing region.
parentFontSize Font size of the parent node.
zoomFactor Zoom factor for the zoom window.
zoomWindowLeft Zoom window left coordinate.
zoomWindowTop Zoom window top coordinate.
zoomWindowHalfWidth Zoom window half width.
zoomWindowHalfHeight Zoom window half height.
PointF WordTree.Node.getLastPosition (  ) 

Get the position where this Node was drawn in the last render call.

String WordTree.Node.getWord (  ) 

Gets the word represented by this Node.

void WordTree.Node.resort ( int  mode  ) 

Changes the sorting mode.

0 - As elements occur in the document 1 - Alphabetically 2 - By frequency

void WordTree.Node.setLastPosition ( PointF  lastPosition  ) 

Set the last position.

void WordTree.Node.setYellow ( bool  value  ) 

Mark this node yellow.


Member Data Documentation


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Properties
Generated on Sun Jun 6 00:07:42 2010 for WordTree by  doxygen 1.6.3