WordTree.DisplayList Class Reference

A list for animating displayed nodes. More...

List of all members.

Public Member Functions

 DisplayList ()
 Constructor - allocates an empty list.
void render (Graphics g, int panelWidth, int panelHeight, float zoomFactor, float zoomWindowLeft, float zoomWindowTop)
 Renders the DisplayList.
void update (float param)
 Updates the animation according to the input parameters.
void mergeTargetList (DisplayList targetList)
 Merges two DisplayLists.
void reverseSourceTarget ()
 Reverses the animation.
void addSourceTextElement (DisplayNodeText elem)
 Add a source text element.
void addSourceBezierElement (DisplayNodeBezier elem)
 Add a source bezier element.

Protected Attributes

LinkedList< DisplayNodeTextlistWords
LinkedList< DisplayNodeBezierlistBeziers

Detailed Description

A list for animating displayed nodes.


Constructor & Destructor Documentation

WordTree.DisplayList.DisplayList (  ) 

Constructor - allocates an empty list.


Member Function Documentation

void WordTree.DisplayList.addSourceBezierElement ( DisplayNodeBezier  elem  ) 

Add a source bezier element.

void WordTree.DisplayList.addSourceTextElement ( DisplayNodeText  elem  ) 

Add a source text element.

void WordTree.DisplayList.mergeTargetList ( DisplayList  targetList  ) 

Merges two DisplayLists.

The current DisplayLists only contains the positions in th source tree.

Parameters:
targetList List to merge.
void WordTree.DisplayList.render ( Graphics  g,
int  panelWidth,
int  panelHeight,
float  zoomFactor,
float  zoomWindowLeft,
float  zoomWindowTop 
)

Renders the DisplayList.

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.
void WordTree.DisplayList.reverseSourceTarget (  ) 

Reverses the animation.

void WordTree.DisplayList.update ( float  param  ) 

Updates the animation according to the input parameters.

Parameters:
param 0-1 = percent of the animation

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