camera3d.manipulation
Class ScalingManipulator

java.lang.Object
  extended bycamera3d.manipulation.TransformationManipulator
      extended bycamera3d.manipulation.ScalingManipulator

public class ScalingManipulator
extends TransformationManipulator

A manipulator to perform changes in the scale of objects. Dragging the mouse upward will increase the selected object's scale. Dragging the mouse downward will decrease the selected object's scale.

Version:
1.0
Author:
Fábio Roberto de Miranda, Carlos da Silva dos Santos

Constructor Summary
ScalingManipulator()
           
 
Method Summary
 void clearSelection()
          Clears current selection of scene object(s) to be manipulated.
 void setBeginPoint(int x, int y)
          Sets the location at which manipulation started.
 void setScalableObject(ScalableObject scalableObject)
           
 
Methods inherited from class camera3d.manipulation.TransformationManipulator
getSelectedScope, setCanvas3D, setCurrentPoint, setTransformationMode, setTransformationScope
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScalingManipulator

public ScalingManipulator()
Method Detail

setScalableObject

public void setScalableObject(ScalableObject scalableObject)

clearSelection

public void clearSelection()
Description copied from class: TransformationManipulator
Clears current selection of scene object(s) to be manipulated.

Specified by:
clearSelection in class TransformationManipulator

setBeginPoint

public void setBeginPoint(int x,
                          int y)
Description copied from class: TransformationManipulator
Sets the location at which manipulation started.

Overrides:
setBeginPoint in class TransformationManipulator
Parameters:
x - x coordinate of initial mouse click.
y - y coordinate of initial mouse click.


Copyright © 2001-2003 F.R. Miranda, C.S. Santos, J.E. Kogler Jr.. All Rights Reserved.