Search
NodeConstraints.setKeepRatio Method
See Also
 

Sets a value indicating whether the initial width/height ratio of a node must be preserved.

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

 Syntax

Java  Copy Code

public void setKeepRatio (
    boolean value
)

 Parameters

value

Indicates whether the initial width/height ratio of a node should be preserved.

 Remarks

If you enable this property in an initialization-event handler, the node will have an aspect ratio of 1:1. For example in order to let users draw perfect square or circle shapes, set KeepRatio to true in the initializeNode handler.

 See Also