Constructor
new ScreenSkeleton(screenOrg, divID, width, height, rootCanvasObjectContainer, floorColorString)
Name | Type | Description |
---|---|---|
screenOrg |
ScreenOrganizer | |
divID |
String | |
width |
Number | |
height |
Number | |
rootCanvasObjectContainer |
CanvasObjectContainer | |
floorColorString |
String |
Members
_buttons
_currentArea
_index
_screenOrg
constructor
Methods
disableClickAreas()
Disable all click areas.
enableClickAreas()
Enable all click areas.
establishClickArea(name, clickObject, clickHandlerString, left, right, top, bottom, overHandler, outHandler)
Establish an area of the ScreenSkeleton as clickable This method is using the MouseController Class to grab global events and the _buttons Object to handle specifics. This method sets up the _buttons Object and global mouse events.
Name | Type | Description |
---|---|---|
name |
String | name of the click area |
clickObject |
Object | Object that has the click handler method |
clickHandlerString |
String | click handler method name |
left |
Number | left x position of click area |
right |
Number | right x position of click area |
top |
Number | top y position of click area |
bottom |
Number | bottom y position of click area |
overHandler |
function | function for mouse over |
outHandler |
function | function for mouse out |
handleClicks(e)
Handles clicks, setup with establishClickArea
Name | Type | Description |
---|---|---|
e |
mousePositionHandler(e)
Handles mouse over and mouse out, setup by establishClickArea
Name | Type | Description |
---|---|---|
e |
remove(e)
Remove this screen from the _screenOrg
Name | Type | Description |
---|---|---|
e |