DrawingCanvas
=
Component & type {
...added methods below... }
Method signature | Return type |
---|---|
add(
d:
Graphic)
|
Done
|
add d to canvas | |
clear
|
Done
|
clear the canvas | |
height
|
Number
|
notifyRedraw
|
Done
|
remove(
d:
Graphic)
|
Done
|
remove d from window | |
sendBackward(
d:
Graphic)
|
Done
|
send d down one layer in graphics | |
sendForward(
d:
Graphic)
|
Done
|
send d up one layer in graphics | |
sendToBack(
d:
Graphic)
|
Done
|
send d to bottom layer of graphics | |
sendToFront(
d:
Graphic)
|
Done
|
Send d to top layer of graphics | |
startDrawing
|
Done
|
Start drawing on the canvas. Will continue until the canvas is destroyed. | |
width
|
Number
|
return the current dimensions of the canvas |