Sets a value indicating whether the initial width/height ratio of a node must be preserved.
Namespace: com.mindfusion.diagramming
Package: com.mindfusion.diagramming
SyntaxJava
Copy Code
|
|---|
public void setKeepRatio ( |
Indicates whether the initial width/height ratio of a node should be preserved.
RemarksIf 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