|
|||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||
a widget for specifying a rectangular area on a GraphCanvas
| Field Summary | |
|---|---|
GraphCanvas |
canvas
the canvas |
| Method Summary | |
|---|---|
|
activate(/*GraphCanvas*/ canvas)
activates the rubber band for the specified canvas. |
|
activateAt(/*GraphCanvas*/ canvas, /*Object*/ pos)
activates the rubberband for the specified canvas at a specific position. |
|
deactivate()
deactivates the rubber band. |
|
onAreaDone(/*Number*/ x, /*Number*/ y, /*Number*/ width, /*Number*/ height)
is called when the user finishes dragging the rubberband area |
|
onAreaResized(/*Number*/ x, /*Number*/ y, /*Number*/ width, /*Number*/ height)
is called whenever the rubberband area changes |
|
onDeactivated()
is called when the Rubberband is deactivated (by deactivate() or after finishing a drag) |
| Field Detail |
|---|
/*GraphCanvas*/ canvas
| Method Detail |
|---|
activate(/*GraphCanvas*/ canvas)
activateAt(/*GraphCanvas*/ canvas, /*Object*/ pos)
pos - position with x and y coordinates
deactivate()
onAreaDone(/*Number*/ x, /*Number*/ y, /*Number*/ width, /*Number*/ height)
x - left border of the current rubberband area in pixels
y - upper border of the current rubberband area in pixels
width - width of the current rubberband area in pixels
height - height of the current rubberband area in pixels
onAreaResized(/*Number*/ x, /*Number*/ y, /*Number*/ width, /*Number*/ height)
x - left border of the current rubberband area in pixels
y - upper border of the current rubberband area in pixels
width - width of the current rubberband area in pixels
height - height of the current rubberband area in pixels
onDeactivated()