Search
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