MindFusion.Java Package Programmer's Guide
ZoomControl Members
Constructors Methods
 


ZoomControl lets users zoom and pan a target DiagramView interactively.

The following tables list the members exposed by the ZoomControl type.

 Public Constructors

  Name Description

ZoomControl

Initializes a new instance of the ZoomControl class.

 Public Methods

  Name Description

getActiveColor

Gets the color used to render depressed buttons.

getBorderColor

Gets the color of ZoomControl elements' borders.

getCornerRadius

Gets the corner radius of rounded child elements.

getFill

Gets the brush 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.

getScrollStep

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

getShadowColor

Gets the shadow color.

getShowLabel

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

getSnapToZoomStep

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

getTickPosition

Gets the current tick position of the trackbar.

getView

Gets the DiagramView object controlled by this ZoomControl.

getZoomFactor

Gets current zoom level.

getZoomStep

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

isDoubleBuffered

Overrides JComponent.isDoubleBuffered method.

isOpaque

Overrides JComponent.isOpaque method.

mouseClicked

 

mouseDragged

Implements MouseListener.mouseDragged

mouseEntered

 

mouseExited

 

mouseMoved

Implements MouseListener.mouseMoved

mousePressed

Implements MouseListener.mousePressed

mouseReleased

Implements MouseListener.mouseReleased

propertyChange

 

setActiveColor

Sets the color used to render depressed buttons.

setBorderColor

Sets the color of ZoomControl elements' borders.

setCornerRadius

Sets the corner radius of rounded child elements.

setFill

Sets the brush 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.

setScrollStep

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

setShadowColor

Sets the shadow color.

setShowLabel

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

setSnapToZoomStep

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

setTickPosition

Sets the current tick position of the trackbar.

setView

Sets the DiagramView object controlled by this ZoomControl.

setZoomFactor

Overloaded. Sets current zoom level.

setZoomStep

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

 Protected Methods

  Name Description

paintComponent

 

 See Also

ZoomControl Class
com.mindfusion.diagramming Namespace