Class RotateMouseOwner
java.lang.Object
java.awt.event.MouseAdapter
com.j3d.engine.interact.input.mouse.MouseOwner
com.j3d.engine.interact.input.mouse.SnapMouseOwner
com.j3d.engine.interact.cmd.commands.transform.mouse.TransformMouseOwner
com.j3d.engine.interact.cmd.commands.transform.mouse.RotateMouseOwner
- All Implemented Interfaces:
EventEmitterInterface,MouseListener,MouseMotionListener,MouseWheelListener,EventListener
A mouse owner that handles the logic for rotating selected objects when a user
drags a transformation handle. It also adds extra visual details to the handles
to indicate the rotation axis.
This class is used exclusively by the RotateSelection command.
- Author:
- Lehlogonolo Poole
- See Also:
-
Field Summary
FieldsFields inherited from class com.j3d.engine.interact.cmd.commands.transform.mouse.TransformMouseOwner
distance, handles, selectedHandle, selectedHandleType, selectionBoundingBoxFields inherited from class com.j3d.engine.interact.input.mouse.SnapMouseOwner
offset, snappingCandidatesFields inherited from class com.j3d.engine.interact.input.mouse.MouseOwner
registered -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voiddrawCircFromAxis(Vector3 axis, Graphics2D g, Vector3 center, HandleType handle) voidHandles the mouse released event.voidsetHandles(ArrayList<Handle> handles, ArrayList<GPoint> references) Sets the list of handles and the object references to be managed by this owner.Methods inherited from class com.j3d.engine.interact.cmd.commands.transform.mouse.TransformMouseOwner
mouseClicked, mousePressed, mousePressedAdapter, squareMethods inherited from class com.j3d.engine.interact.input.mouse.SnapMouseOwner
clear, getMouseLocation, getSnappingCandidates, mouseMoved, snapEnabledMethods inherited from class com.j3d.engine.interact.input.mouse.MouseOwner
attachListener, broadcast, detachAll, detachListener, getMouseLoc, getMouseLocFromPhysical, getPhysicalMouse, getSelectionMouseLoc, isAttached, isNotOwner, mouseDragged, mouseDraggedUsingClickDelay, requestOwnership, sendMouseToCentre, setOldPoint, wrapMethods inherited from class java.awt.event.MouseAdapter
mouseEntered, mouseExited, mouseWheelMoved
-
Field Details
-
handle
-
axis
-
-
Constructor Details
-
RotateMouseOwner
public RotateMouseOwner()
-
-
Method Details
-
mouseReleased
Description copied from class:TransformMouseOwnerHandles the mouse released event. Subclasses often use this to finalize a transformation.- Specified by:
mouseReleasedin interfaceMouseListener- Overrides:
mouseReleasedin classTransformMouseOwner- Parameters:
e- The mouse event.
-
setHandles
Description copied from class:TransformMouseOwnerSets the list of handles and the object references to be managed by this owner.- Overrides:
setHandlesin classTransformMouseOwner- Parameters:
handles- The list ofHandleobjects.references- The list ofGPoints being transformed (often unused in the base class).
-
drawCircFromAxis
-
arbitraryPerpendicular
-