Package cnuphys.magfield
Class ComponentZoomer
java.lang.Object
cnuphys.magfield.ComponentZoomer
- All Implemented Interfaces:
- MouseListener,- MouseMotionListener,- EventListener
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidvoidvoidvoidvoidvoidvoidvoidstatic RectanglerectangleFromPoints(Point p1, Point p2) Given two points, return the rectangle
- 
Constructor Details- 
ComponentZoomer
 
- 
- 
Method Details- 
mouseClicked- Specified by:
- mouseClickedin interface- MouseListener
 
- 
mousePressed- Specified by:
- mousePressedin interface- MouseListener
 
- 
mouseReleased- Specified by:
- mouseReleasedin interface- MouseListener
 
- 
mouseEntered- Specified by:
- mouseEnteredin interface- MouseListener
 
- 
mouseExited- Specified by:
- mouseExitedin interface- MouseListener
 
- 
mouseDragged- Specified by:
- mouseDraggedin interface- MouseMotionListener
 
- 
mouseMoved- Specified by:
- mouseMovedin interface- MouseMotionListener
 
- 
rectangleFromPointsGiven two points, return the rectangle- Parameters:
- p1- one point
- p2- the other point
- Returns:
- the rectangle created from two points
 
- 
localToWorld
 
-