MindFusion.Diagramming for JavaScript Programmer's Guide
ZoomControl Methods
 


 Public Methods

  Name Description

create

Creates and initializes a new ZoomControl from the specified element. This method is static and can be called without creating an instance of the class.

find

Returns the specified ZoomControl object. This member is static and can be invoked without creating an instance of the class.

getActiveColor

Gets the color used to render depressed buttons.

getBackColor

Gets the background color of the control.

getBorderColor

Gets the color of ZoomControl elements' borders.

getCornerRadius

Gets the corner radius of rounded child elements.

getEnabled

Checks if mouse events are enabled.

getFill

Gets the color used to fill the ZoomControl elements.

getInnerColor

Gets the color of plus, minus and arrow icons.

getMaxZoomFactor

Gets the maximum zoom level allowed to set through this control.

getMinZoomFactor

Gets the minimum zoom level allowed to set through this control.

getPadding

Gets the padding of the control's contents.

getScrollStep

Gets the scroll offset added when users click the pan arrows.

getShadowColor

Gets the color of the control elements' shadow.

getShowLabel

Gets a value indicating whether the label that shows the current zoom level should be visible.

getSnapToZoomStep

Gets a value indicating whether the trackbar should snap to ZoomStep values when dragged.

getTextColor

Gets the color of the the label that shows the current zoom level.

getTickPosition

Gets the current tick position of the trackbar.

getZoomFactor

Gets the zoom factor.

getZoomStep

Gets the amount by which to change zoom level when + and - buttons are clicked.

registerForSubmit

Registers an onsubmit handler for the ZoomControl's parent html form to flush postback data.

setActiveColor

Sets the color used to render depressed buttons.

setBackColor

Sets the background color of the control.

setBorderColor

Sets the color of ZoomControl elements' borders.

setCornerRadius

Sets the corner radius of rounded child elements.

setEnabled

Enables or disables handling of mouse events.

setFill

Sets the color used to fill the ZoomControl elements.

setInnerColor

Sets the color of plus, minus and arrow icons.

setMaxZoomFactor

Sets the maximum zoom level allowed to set through this control.

setMinZoomFactor

Sets the minimum zoom level allowed to set through this control.

setPadding

Sets the padding of the control's contents.

setScrollStep

Sets the scroll offset added when users click the pan arrows.

setShadowColor

Sets the color of the control elements' shadow.

setShowLabel

Sets a value indicating whether the label that shows the current zoom level should be visible.

setSnapToZoomStep

Sets a value indicating whether the trackbar should snap to ZoomStep values when dragged.

setTarget

Sets the control modified by this ZoomControl.

setTextColor

Sets the color of the the label that shows the current zoom level.

setTickPosition

Sets the current tick position of the trackbar.

setZoomFactor

Sets the zoom factor.

setZoomStep

Sets the amount by which to change zoom level when + and - buttons are clicked.

 See Also

ZoomControl Class
MindFusion.Controls Namespace