Class Index | File Index

Classes


Class mindmaps.ZoomController


Defined in: ZoomController.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
mindmaps.ZoomController(eventBus, commandRegistry)
Creates a new ZoomController.
Field Summary
Field Attributes Field Name and Description
<constant>  
<constant>  
<constant>  
<constant>  
<private>  
Method Summary
Method Attributes Method Name and Description
 
Zooms in by ZOOM_STEP.
 
Zooms out by ZOOM_STEP,
 
zoomTo(factor)
Sets the zoom factor if param is within MIN_ZOOM and MAX_ZOOM bounds.
Class Detail
mindmaps.ZoomController(eventBus, commandRegistry)
Creates a new ZoomController. Object that controls the zoom setting.
Parameters:
{mindmaps.EventBus} eventBus
commandRegistry
Field Detail
<constant> DEFAULT_ZOOM

<constant> MAX_ZOOM

<constant> MIN_ZOOM

<constant> ZOOM_STEP

<private> zoomFactor
Method Detail
{Number} zoomIn()
Zooms in by ZOOM_STEP.
Returns:
{Number} the new zoomFactor.

{Number} zoomOut()
Zooms out by ZOOM_STEP,
Returns:
{Number} the new zoomFactor.

zoomTo(factor)
Sets the zoom factor if param is within MIN_ZOOM and MAX_ZOOM bounds.
Parameters:
{Number} factor

Documentation generated by JsDoc Toolkit 2.4.0 on Mon Jul 18 2011 18:03:15 GMT+0000 (WEST)