public void mousePressed(MouseEvent e) { Undo.reset(); if (!Prefs.noClickToGC) System.gc(); IJ.showStatus(version()+IJ.freeMemory()); if (IJ.debugMode) IJ.log("Windows: "+WindowManager.getWindowCount()); }
public void mousePressed(MouseEvent e) { Undo.reset(); if (!Prefs.noClickToGC) System.gc(); IJ.showStatus(version()+IJ.freeMemory()); if (IJ.debugMode) IJ.log("Windows: "+WindowManager.getWindowCount()); }
public static String[] getWindowList() { Vector v = new Vector(); MenuBar mbar = Menus.getMenuBar(); Menu menu = null; for (int i = 0; i < mbar.getMenuCount(); i++) if (mbar.getMenu(i).getLabel().equals("Window")) { menu = mbar.getMenu(i); break; } if (menu == null) throw new RuntimeException("no Window menu?"); for (int i = 0; i < WindowManager.getWindowCount(); i++) { ImagePlus img = WindowManager.getImage(i + 1); v.add(img.getTitle()); } for (int i = 0; i < menu.getItemCount(); i++) { String title = menu.getItem(i).getLabel(); if (WindowManager.getFrame(title) != null) v.add(title); } String[] result = new String[v.size()]; for (int i = 0; i < result.length; i++) result[i] = (String)v.get(i); return result; }
public static int addWindowList(GenericDialog g, String title, boolean onlyWithAmiraParameters) { Vector v = new Vector(); if (Interpreter.isBatchMode()) v.add(Macro.getValue(Macro.getOptions(), "window", "(null)")); else { int count = WindowManager.getWindowCount(); for (int i = 0; i < count; i++) { ImagePlus img = WindowManager.getImage(i + 1); if (onlyWithAmiraParameters && !isAmiraMesh(img)) continue; v.add(img.getTitle()); } } ImagePlus image = WindowManager.getCurrentImage(); if (image != null) return addChoice(g, title, v, image.getTitle()); else return addChoice(g, title, v); }
labelImages = new Vector(); defaultMaterials = new Vector(); int count = WindowManager.getWindowCount();
if (ij.WindowManager.getWindowCount() != Display.getDisplayCount()) { Utils.log("For example, close other open images."); if (!enoughFreeMemory(min_free_bytes) && ij.WindowManager.getWindowCount() != Display.getDisplayCount()) { released += releaseAndFlushOthers(min_free_bytes); if (released < min_free_bytes) released += mawts.removeAndFlushSome(min_free_bytes);
int height = imp.getHeight(); Rectangle maxWindow = getMaxWindow(0, 0); if (WindowManager.getWindowCount()<=1) xbase = -1; if (width>maxWindow.width/2 && xbase>maxWindow.x+5+XINC*6)
int height = imp.getHeight(); Rectangle maxWindow = getMaxWindow(0, 0); if (WindowManager.getWindowCount()<=1) xbase = -1; if (width>maxWindow.width/2 && xbase>maxWindow.x+5+XINC*6)
if (WindowManager.getWindowCount()==0) {xloc = 0; yloc = 0;} if (firstSmallWindow)
ImageProcessor store_ip; int wincount=WindowManager.getWindowCount();
if (WindowManager.getWindowCount()==0) {xloc = 0; yloc = 0;} if (firstSmallWindow)
int h = ip.getHeight(); int wincount=WindowManager.getWindowCount();