TextBar.js

Inherits from: Bar.js

1 ) function: getMessage
2 ) function: setMessage


Object: TextBar

Object Description: a text bar
Example: possibly used as a title bar or a status bar
Inherits from: Bar


Constructor: TextBar
  • Parameter
    : text - text to display on the bar if any
width - width of bar
height - height of bar


Method: getMessage
Description: Get the message associated with this bar.
For a reason that I no longer remember, I opted to refer to
the text of a bar as it's message... perhaps getText
is already a function in SVG? I don't remember right now.


Method: setMessage
Description: Set the message of this bar