#import <WordTreeView.h>
Public Member Functions | |
(IBAction) | - start: |
Called when manually entering searchWord in searchWindow. | |
(IBAction) | - startAtStartNode: |
Called when hitting reset button. | |
(void) | - startWithWord: |
Displays Word Tree. | |
(void) | - setText: |
Prepares text. | |
(void) | - viewDidEndLiveResize |
Resizes the Word Tree according to window size. | |
Protected Attributes | |
NSScanner * | scanner |
NSString * | searchWord |
Node * | root |
Root of Word Tree. | |
Node * | startNode |
startNode of Word Tree | |
NSMutableSet * | layers |
NSSize | viewSize |
CGFloat | maxCount |
IBOutlet NSTextField * | inputField |
IBOutlet NSTextField * | wordTextField |
IBOutlet NSTextField * | countTextField |
IBOutlet NSPanel * | wordInfoPanel |
IBOutlet NSScrollView * | scrollView |
IBOutlet NSTextField * | parentWords |
Creates Nodes starting with startNode and recursevly adding subnodes. Then displays the Tree using Core Animation techniques.
- (void) setText: | (NSString*) | text |
Prepares text.
The text is set here. Must be called before any of the start-methods.
- (IBAction) start: | (id) | sender |
Called when manually entering searchWord in searchWindow.
Gets the word from inputField.stringValue and calls startWithWord:
- (IBAction) startAtStartNode: | (id) | sender |
Called when hitting reset button.
Displays Word Tree from inital startNode
- (void) startWithWord: | (NSString*) | startWord |
Displays Word Tree.
Builds Word Tree starting with startWord and displays it.
- (void) viewDidEndLiveResize |
Resizes the Word Tree according to window size.
- (IBOutlet NSTextField*) countTextField [protected] |
- (IBOutlet NSTextField*) inputField [protected] |
- (NSMutableSet*) layers [protected] |
- (CGFloat) maxCount [protected] |
- (IBOutlet NSTextField*) parentWords [protected] |
- (NSScanner*) scanner [protected] |
- (IBOutlet NSScrollView*) scrollView [protected] |
- (NSString*) searchWord [protected] |
startNode of Word Tree
startNode must not be root. also used for displaying subtrees.
- (NSSize) viewSize [protected] |
- (IBOutlet NSPanel*) wordInfoPanel [protected] |
- (IBOutlet NSTextField*) wordTextField [protected] |