new TextBox(params)
TextBox [Raphael.rect]
This:
Parameters:
Name | Type | Argument | Description | ||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
params |
Object |
<optional> |
Properties
|
- Source:
- /var/www/html/software/raphaeltools/raphaeltools.src.js, line 1235
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 |
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