Package draw
Class Mouse3D
java.lang.Object
draw.Mouse3D
- All Implemented Interfaces:
MouseListener
,MouseMotionListener
,Serializable
,EventListener
Class for mouse event handling for 3D projection.
- Since:
- 2004.06.02
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Dummy needed forMouseListener
interface.void
Handle rotation or movement.void
Dummy needed forMouseListener
interface.void
Dummy needed forMouseListener
interface.void
Dummy needed forMouseListener
interface.void
Handle start of rotation or movement.void
Dummy needed forMouseListener
interface.void
setScale
(double scale) Set the scaling factor for the movement.
-
Constructor Details
-
Mouse3D
Create a mouse event handler for 3D projections.- Parameters:
comp
- the component to controlproj
- the 3D to 2D projection used- Since:
- 2004.06.05 (Christian Borgelt)
-
-
Method Details
-
setScale
public void setScale(double scale) Set the scaling factor for the movement.- Parameters:
scale
- the scaling factor to set- Since:
- 2004.06.05 (Christian Borgelt)
-
mousePressed
Handle start of rotation or movement.- Specified by:
mousePressed
in interfaceMouseListener
- Parameters:
e
- the mouse event that occurred- Since:
- 2004.06.05 (Christian Borgelt)
-
mouseDragged
Handle rotation or movement.- Specified by:
mouseDragged
in interfaceMouseMotionListener
- Parameters:
e
- the mouse event that occurred- Since:
- 2004.06.05 (Christian Borgelt)
-
mouseReleased
Dummy needed forMouseListener
interface.- Specified by:
mouseReleased
in interfaceMouseListener
- Parameters:
e
- the mouse event that occurred- Since:
- 2004.06.05 (Christian Borgelt)
-
mouseClicked
Dummy needed forMouseListener
interface.- Specified by:
mouseClicked
in interfaceMouseListener
- Parameters:
e
- the mouse event that occurred- Since:
- 2004.06.05 (Christian Borgelt)
-
mouseEntered
Dummy needed forMouseListener
interface.- Specified by:
mouseEntered
in interfaceMouseListener
- Parameters:
e
- the mouse event that occurred- Since:
- 2004.06.05 (Christian Borgelt)
-
mouseExited
Dummy needed forMouseListener
interface.- Specified by:
mouseExited
in interfaceMouseListener
- Parameters:
e
- the mouse event that occurred- Since:
- 2004.06.05 (Christian Borgelt)
-
mouseMoved
Dummy needed forMouseListener
interface.- Specified by:
mouseMoved
in interfaceMouseMotionListener
- Parameters:
e
- the mouse event that occurred- Since:
- 2004.06.05 (Christian Borgelt)
-