|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object | +--dBox
This is the basic dBox class.
Defined in dbox.js
Field Summary | |
Object |
anchor
|
Object |
area
|
Object |
areaHandler
|
Object |
box
|
Object |
busyImage
|
Object |
busyMessage
|
Object |
canvas
|
String |
color
color (either name or hexidecimal) of any drawing elements. |
Object |
container
|
String |
cursor
cursor to be displayed when over the dBox. |
Object |
drag
|
Object |
dragging
|
Object |
height
|
Object |
image
|
Integer |
jitter
minimum size (in pixels_ of a mouse event resulting in a point. |
Object |
length
|
Object |
line
|
Object |
measureHandler
|
Function |
mouseEnterHandler
function to be called on mouse enter events. |
Object |
mouseExitHandler
|
Object |
mouseMoveHandler
|
Object |
name
|
Object |
offsetx
|
Object |
poly
|
Object |
resetHandler
|
Object |
setBoxHandler
|
Integer |
thickness
thickness (in pixels) of lines for any drawing elements. |
Object |
verbose
|
Object |
waiting
|
Object |
width
|
Object |
x
|
Object |
x1
|
Object |
y
|
Constructor Summary | |
dBox
(<String> name)
Construct a new dBox object. |
Method Summary | |
void
|
boxOff()
Turn box dragging off. |
void
|
boxOn()
Turn box dragging on. |
void
|
busyOff()
Method to turn off busy image/message. |
void
|
busyOn()
Method that controls the style of the busy message. |
void
|
dragOff()
Turn drag panning off. |
void
|
dragOn()
Turn drag panning on. |
void
|
initialize()
Method to initialize dBox. |
void
|
lineOff()
Turn line drawing off. |
void
|
lineOn()
Turn line drawing on. |
void
|
mouseDown(event)
|
void
|
mouseDrag(event)
|
void
|
mouseEnter(event)
|
void
|
mouseExit(event)
|
void
|
mouseMove(event)
|
void
|
mouseUp(event)
|
void
|
paint()
|
void
|
polyOff()
Turn polygon drawing off. |
void
|
polyOn()
Turn polygon drawing on. |
void
|
reset()
|
void
|
setHandler(<Enumerated> type, <Function> handler)
set a handler function for draw/query operations. |
void
|
setImage(<String> url)
Change the image displayed in the dBox object. |
void
|
sync()
Reposition the dBox object relative to the anchor. |
void
|
useBusyMessage(obj)
Method will cause dbox to display a busy message during the onload event handler of the main image. |
Field Detail |
Object anchor
Object area
Object areaHandler
Object box
Object busyImage
Object busyMessage
Object canvas
String color
Object container
String cursor
Object drag
Object dragging
Object height
Object image
Integer jitter
Object length
Object line
Object measureHandler
Function mouseEnterHandler
Must be defined and set (via setHandler()) elsewhere in the application, or nothing happens with these events.
Object mouseExitHandler
Object mouseMoveHandler
Object name
Object offsetx
Object poly
Object resetHandler
Object setBoxHandler
Integer thickness
Object verbose
Object waiting
Object width
Object x
Object x1
Object y
Constructor Detail |
dBox(<String> name)
name
- The name of the anchor element (img or div).
Method Detail |
void boxOff()
void boxOn()
void busyOff()
void busyOn()
void dragOff()
void dragOn()
void initialize()
void lineOff()
void lineOn()
void mouseDown(event)
void mouseDrag(event)
void mouseEnter(event)
void mouseExit(event)
void mouseMove(event)
void mouseUp(event)
void paint()
void polyOff()
void polyOn()
void reset()
void setHandler(<Enumerated> type, <Function> handler)
type
- constant for handler type to be set. Valid type values are: handler
- function to be called
void setImage(<String> url)
url
- for the new image
void sync()
void useBusyMessage(obj)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |