WordTree.WordTree Class Reference
The WordTree.
More...
List of all members.
Public Member Functions |
| WordTree (String searchString) |
| Constructs a WordTree with an initial string e.g.
|
void | calcRootPosition () |
| Calcs the position of the root node.
|
void | addSentence (String sentence) |
| Adds a sentence to the WordTree.
|
void | addSentence (String[] sentence) |
| Adds a sentence to the WordTree (already separated in an array).
|
void | render (Graphics g, int panelWidth, int panelHeight, float zoomFactor, float zoomWindowLeft, float zoomWindowTop, DisplayList displayList, bool visible, bool drawMarkedChildrenAlpha) |
| Draws all Children of this tree.
|
LinkedList< string > | getSubtreeStringList (Graphics g, int x, int y, float panelWidth, float panelHeight, float zoomFactor, float zoomWindowLeft, float zoomWindowTop) |
| Gets the list of substrings in an area.
|
void | resort (int mode) |
| Changes the sorting mode.
|
void | createFrequencySorting () |
| Creates the frequency sorting for all nodes.
|
LinkedList< PointF > | searchWord (string word) |
| Searches for a word.
|
WordTree | removeUnimportantNodes (int percent) |
| Removes unimportanted nodes.
|
void | markAllSideNodes (string[] array) |
| Marks all side nodes.
|
void | resetSideNodeMarking () |
| Resets all markings.
|
Public Attributes |
Node | root |
int | numLeaves |
Node | lastSplitNode = null |
int | animationAlpha = 255 |
int | wordsRendered |
bool | clippedBefore |
Point | rootPosition |
Static Public Attributes |
static bool | busy |
static bool | showLeafCount = false |
static float | resizeableFontSize = 14.0f |
static float | fontScale = 0.45f |
static int | xMax |
static int | yMax |
static Font | font = new Font("Verdana", 24) |
static Brush | brush = new SolidBrush(Color.Black) |
static float | hspace = 20 |
static float | bezierScaling |
static int | fontSizeCoding = 1 |
static int | sortMode |
Detailed Description
The WordTree.
Constructor & Destructor Documentation
WordTree.WordTree.WordTree |
( |
String |
searchString |
) |
|
Constructs a WordTree with an initial string e.g.
"My name is rudolf"
Member Function Documentation
void WordTree.WordTree.addSentence |
( |
String[] |
sentence |
) |
|
Adds a sentence to the WordTree (already separated in an array).
void WordTree.WordTree.addSentence |
( |
String |
sentence |
) |
|
void WordTree.WordTree.calcRootPosition |
( |
|
) |
|
Calcs the position of the root node.
void WordTree.WordTree.createFrequencySorting |
( |
|
) |
|
Creates the frequency sorting for all nodes.
LinkedList<string> WordTree.WordTree.getSubtreeStringList |
( |
Graphics |
g, |
|
|
int |
x, |
|
|
int |
y, |
|
|
float |
panelWidth, |
|
|
float |
panelHeight, |
|
|
float |
zoomFactor, |
|
|
float |
zoomWindowLeft, |
|
|
float |
zoomWindowTop | |
|
) |
| | |
Gets the list of substrings in an area.
- Parameters:
-
| g | The graphic object for drawing and measuring strings. |
| x | Area x. |
| y | Area y. |
| panelWidth | Width of the drawing panel. |
| panelHeight | Height of the drawing panel. |
| zoomFactor | Zoom factor for the zoom window. |
| zoomWindowLeft | Zoom window left coordinate. |
| zoomWindowTop | Zoom window top coordinate. |
void WordTree.WordTree.markAllSideNodes |
( |
string[] |
array |
) |
|
Marks all side nodes.
I.e. all nodes over and under the words in array (graphically).
WordTree WordTree.WordTree.removeUnimportantNodes |
( |
int |
percent |
) |
|
Removes unimportanted nodes.
- Parameters:
-
void WordTree.WordTree.render |
( |
Graphics |
g, |
|
|
int |
panelWidth, |
|
|
int |
panelHeight, |
|
|
float |
zoomFactor, |
|
|
float |
zoomWindowLeft, |
|
|
float |
zoomWindowTop, |
|
|
DisplayList |
displayList, |
|
|
bool |
visible, |
|
|
bool |
drawMarkedChildrenAlpha | |
|
) |
| | |
Draws all Children of this tree.
- Parameters:
-
| g | The graphic object for drawing and measuring strings. |
| panelWidth | Width of the drawing panel. |
| panelHeight | Height of the drawing panel. |
| 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. |
| displayList | Render to a DisplayList. |
| visible | Draw anything? |
| drawMarkedChildrenAlpha | Draw the previously marked children with the class' alpha value. |
void WordTree.WordTree.resetSideNodeMarking |
( |
|
) |
|
void WordTree.WordTree.resort |
( |
int |
mode |
) |
|
Changes the sorting mode.
0 - As elements occur in the document 1 - Alphabetically 2 - By frequency
LinkedList<PointF> WordTree.WordTree.searchWord |
( |
string |
word |
) |
|
Member Data Documentation
The documentation for this class was generated from the following file: