MindFusion.Java Package Programmer's Guide
DiagramView.zoomToRect Method (Rectangle2D, Boolean)
See Also
 






Zooms and scrolls the view to fit the specified document rectangle in the viewport.

Namespace: com.mindfusion.diagramming
Package: com.mindfusion.diagramming

 Syntax

Java  Copy Code

public void zoomToRect (
    Rectangle2D rect,
    boolean centered
)

 Parameters

rect

A Rectangle2D instance specifying the desired viewport's position and size.

centered

true to center the rectangle in viewport, or false to align it to top-left corner.

 See Also

zoomToRect Method Overload List
DiagramView Members
DiagramView Class
com.mindfusion.diagramming Namespace
scrollTo Method
bringIntoView Method
setZoomFactor Method