Package cnuphys.magfield
Class ComponentZoomer
java.lang.Object
cnuphys.magfield.ComponentZoomer
- All Implemented Interfaces:
MouseListener
,MouseMotionListener
,EventListener
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
void
void
void
void
void
void
static Rectangle
rectangleFromPoints
(Point p1, Point p2) Given two points, return the rectangle
-
Constructor Details
-
ComponentZoomer
-
-
Method Details
-
mouseClicked
- Specified by:
mouseClicked
in interfaceMouseListener
-
mousePressed
- Specified by:
mousePressed
in interfaceMouseListener
-
mouseReleased
- Specified by:
mouseReleased
in interfaceMouseListener
-
mouseEntered
- Specified by:
mouseEntered
in interfaceMouseListener
-
mouseExited
- Specified by:
mouseExited
in interfaceMouseListener
-
mouseDragged
- Specified by:
mouseDragged
in interfaceMouseMotionListener
-
mouseMoved
- Specified by:
mouseMoved
in interfaceMouseMotionListener
-
rectangleFromPoints
Given two points, return the rectangle- Parameters:
p1
- one pointp2
- the other point- Returns:
- the rectangle created from two points
-
localToWorld
-