org.opensourcephysics.display
Class DrawingPanel.ZoomBox
java.lang.Object
org.opensourcephysics.display.DrawingPanel.ZoomBox
- Enclosing class:
- DrawingPanel
- public class DrawingPanel.ZoomBox
- extends java.lang.Object
ZoomBox creates an on-screen rectangle using XORMode for fast redrawing.
-
|
Method Summary |
void |
drag(int xpix,
int ypix)
Drags the corner of the Zoombox. |
void |
endZoom(int xpix,
int ypix)
Ends the zoom by setting a new scale. |
void |
startZoom(int xpix,
int ypix)
Starts the zoom by saving the corner location. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DrawingPanel.ZoomBox
public DrawingPanel.ZoomBox()
startZoom
public void startZoom(int xpix,
int ypix)
- Starts the zoom by saving the corner location.
- Parameters:
xpix - ypix -
endZoom
public void endZoom(int xpix,
int ypix)
- Ends the zoom by setting a new scale.
drag
public void drag(int xpix,
int ypix)
- Drags the corner of the Zoombox.
Drag uses XORMode drawing to first erase and then repaint the box.
- Parameters:
xpix - ypix -