ASP.NET Pack Programmer's Guide
Diagram.changeUnit Method
See Also
 






Sets new MeasureUnit value and scales the coordinates of diagram items so that their absolute size remains unchanged.

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

 Syntax

Java  Copy Code

public void changeUnit (
    int newUnit
)

 Parameters

newUnit

One of the GraphicsUnit constants.

 Remarks

This method scales the coordinates of nodes' Bounds values and links' ControlPoints to preserve their size when measured in the new unit. In addition, it scales values of some size and distance -related properties such as HeadShapeSize and CaptionHeight.

 See Also

Diagram Members
Diagram Class
com.mindfusion.diagramming Namespace