Class: TextBox

TextBox

represents textbox

new TextBox(params)

TextBox [Raphael.rect]
This:
Parameters:
Name Type Argument Description
params Object <optional>
Properties
Name Type Argument Description
x number <optional>
=100.] x coordinate of left upper corner [pixel]
y number <optional>
=100.] y coordinate of left upper corner [pixel]
width number <optional>
=100.] width [pixel]
height number <optional>
=100.] height [pixel]
str string <optional>
="string"] string to be shown
rectAttrs Object <optional>
={}] attrs passed to this.attr
textAttrs Object <optional>
={}] attrs passed to this.text.attr
Properties:
Name Type Description
x number x coordinate of top left corner
y number y coordinate of top left corner
width number width of rectangle
height number height of rectangle
str string text to display
text Raphael.text raphael text object
Source:
  • /var/www/html/software/raphaeltools/raphaeltools.src.js, line 1235

Extends

  • Raphael.fn

Methods

setStr(str)

Sets new text of receiver
Parameters:
Name Type Description
str string new string
Source:
  • /var/www/html/software/raphaeltools/raphaeltools.src.js, line 1290

setX(x)

Sets new x position of receiver (this.x = x)
Parameters:
Name Type Description
x number new x coordinate [pixel]
Source:
  • /var/www/html/software/raphaeltools/raphaeltools.src.js, line 1274

setXY(x, y)

Sets new x and y position of receiver (this.x = x; this.y = y)
Parameters:
Name Type Description
x number new x coordinate [pixel]
y number new y coordinate [pixel]
Source:
  • /var/www/html/software/raphaeltools/raphaeltools.src.js, line 1265

setY(y)

Sets new y position of receiver (this.y = y)
Parameters:
Name Type Description
y number new y coordinate [pixel]
Source:
  • /var/www/html/software/raphaeltools/raphaeltools.src.js, line 1282

update()

Update receiver
Source:
  • /var/www/html/software/raphaeltools/raphaeltools.src.js, line 1256