void zoom(int sx, int sy, double zoomFactor) {//n__ if (plot == null || plot.isFrozen()) { if (zoomFactor > 1) super.zoomIn(sx, sy); else super.zoomOut(sx, sy); return; } plot.zoom(sx, sy, zoomFactor); }
void zoom(int sx, int sy, double zoomFactor) {//n__ if (plot == null || plot.isFrozen()) { if (zoomFactor > 1) super.zoomIn(sx, sy); else super.zoomOut(sx, sy); return; } plot.zoom(sx, sy, zoomFactor); }
public void realZoom( boolean in, int x, int y ) { if( in ) super.zoomIn(screenX(x),screenY(y)); else super.zoomOut(screenX(x),screenY(y)); }
private void zoomout(final int cx, final int cy) { mtrackj.log("Zooming out..."); mtrackj.canvas().zoomOut(cx,cy); getcoords(new MouseEvent(mtrackj.canvas(),0,0,0,cx,cy,0,false)); mtrackj.logok(); }
if (ic.getMagnification()<=1.0) imp.repaintWindow(); } else { ic.zoomOut(x, y); if (ic.getMagnification()<1.0) imp.repaintWindow();
if (ic.getMagnification()<=1.0) imp.repaintWindow(); } else { ic.zoomOut(x, y); if (ic.getMagnification()<1.0) imp.repaintWindow();
ic.zoomIn(sx, sy); else ic.zoomOut(sx, sy); if (ic.getMagnification()<=1.0) imp.repaintWindow();
ic.zoomIn(sx, sy); else ic.zoomOut(sx, sy); if (ic.getMagnification()<=1.0) imp.repaintWindow();
if (ic.getMagnification()<=1.0) imp.repaintWindow(); } else if (arg.equals("out")) { ic.zoomOut(x, y); if (ic.getMagnification()<1.0) imp.repaintWindow(); } else if (arg.equals("orig"))
if (ic.getMagnification()<=1.0) imp.repaintWindow(); } else if (arg.equals("out")) { ic.zoomOut(x, y); if (ic.getMagnification()<1.0) imp.repaintWindow(); } else if (arg.equals("orig"))
/** Implements the Image/Zoom/View 100% command. */ public void zoom100Percent() { if (magnification==1.0) return; double imag = imp.getWindow().getInitialMagnification(); if (magnification!=imag) unzoom(); if (magnification==1.0) return; if (magnification<1.0) { while (magnification<1.0) zoomIn(imageWidth/2, imageHeight/2); } else if (magnification>1.0) { while (magnification>1.0) zoomOut(imageWidth/2, imageHeight/2); } else return; int x=xMouse, y=yMouse; if (mouseExited) { x = imageWidth/2; y = imageHeight/2; } int sx = screenX(x); int sy = screenY(y); adjustSourceRect(1.0, sx, sy); repaint(); }
/** Implements the Image/Zoom/View 100% command. */ public void zoom100Percent() { if (magnification==1.0) return; double imag = imp.getWindow().getInitialMagnification(); if (magnification!=imag) unzoom(); if (magnification==1.0) return; if (magnification<1.0) { while (magnification<1.0) zoomIn(imageWidth/2, imageHeight/2); } else if (magnification>1.0) { while (magnification>1.0) zoomOut(imageWidth/2, imageHeight/2); } else return; int x=xMouse, y=yMouse; if (mouseExited) { x = imageWidth/2; y = imageHeight/2; } int sx = screenX(x); int sy = screenY(y); adjustSourceRect(1.0, sx, sy); repaint(); }
ic.zoomIn(x, y); else ic.zoomOut(x, y); return; } else if (IJ.spaceBarDown() || srcRect.height==height) {
ic.zoomIn(x, y); else ic.zoomOut(x, y); return; } else if (IJ.spaceBarDown() || srcRect.height==height) {
ic.zoomIn(x,y); else ic.zoomOut(x,y); return;
ic.zoomIn(x,y); else ic.zoomOut(x,y); return;
ImageCanvas canvas = win.getCanvas(); while (win.getSize().width*0.85>=tileWidth && canvas.getMagnification()>0.03125) canvas.zoomOut(0, 0); win.toFront(); ImagePlus imp = win.getImagePlus();
final int flags = e.getModifiers(); if ((flags & (Event.ALT_MASK | Event.META_MASK | Event.CTRL_MASK)) != 0) { mainImp.getWindow().getCanvas().zoomOut(x, y);