|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opensourcephysics.display.DrawingPanel.ZoomBox
public class DrawingPanel.ZoomBox
ZoomBox creates an on-screen rectangle using XORMode for fast redrawing.
| Constructor Summary | |
|---|---|
DrawingPanel.ZoomBox()
|
|
| Method Summary | |
|---|---|
void |
drag(int xpix,
int ypix)
Drags the corner of the ZoomBox. |
void |
hide()
Hides the zoom box. |
boolean |
isDragged()
Reports the drag status of the zoom box. |
boolean |
isVisible()
Gets the visibility of the zoom box. |
java.awt.Rectangle |
reportZoom()
Reports the zoom rectangle in pixel units. |
void |
setShowUndraggedBox(boolean show)
Sets the showUndraggedBox flag. |
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 |
| Constructor Detail |
|---|
public DrawingPanel.ZoomBox()
| Method Detail |
|---|
public void startZoom(int xpix,
int ypix)
xpix - ypix - public void hide()
public void setShowUndraggedBox(boolean show)
show - true to show a zoom box when the mouse is not dragged
public void drag(int xpix,
int ypix)
xpix - ypix - public boolean isDragged()
public boolean isVisible()
public java.awt.Rectangle reportZoom()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||