To use this utility, first create a transform group that this rotate behavior will operate on. Then,
The above code will add the rotate behavior to the transform group. The user can rotate any object attached to the objTrans.MouseRotate behavior = new MouseRotate(); behavior.setTransformGroup(objTrans); objTrans.addChild(behavior); behavior.setSchedulingBounds(bounds);
|
|