/** Adds the specified Frame to the Window menu. */ public static void addWindow(Frame win) { addWindow((Window)win); }
/** Adds the specified Frame to the Window menu. */ public static void addWindow(Frame win) { addWindow((Window)win); }
public void run() { WindowManager.addWindow(thisDialog); } });
public void run() { WindowManager.addWindow(thisDialog); } });
public void setVisible(boolean visible) { if (visible) WindowManager.addWindow(this); super.setVisible(visible); } public void dispose() {
public void setVisible(boolean visible) { if (visible) WindowManager.addWindow(this); super.setVisible(visible); } public void dispose() {
@Override public void setVisible(boolean visible) { /* * We do have to populate the actions here, otherwise the * caller cannot initialize prerequisites in the constructor. */ if (actions == null) { actions = new ArrayList<Action>(); populateActions(); populateList(""); } if (visible) WindowManager.addWindow(this); super.setVisible(visible); }
public void show() { WindowManager.addWindow(frame); // ImageJ's own Window Manager GUI.runOnUIThreadAndWait(new Runnable() { @Override public void run() { frame.setVisible(true); } }); WindowManager.setWindow(frame); // ImageJ's own Window Manager }
public FakeImageWindow(ImagePlus imp, ImageCanvas ic, Display display) { super(imp.getTitle()); this.display = display; ij = IJ.getInstance(); this.imp = imp; this.ic = ic; imp.setWindow(this); WindowManager.addWindow(this); }
/** * Open a new VJUserInterface. */ public VJUserInterface() { super("VolumeJ"); if (instance != null) { instance.toFront(); return; } WindowManager.addWindow(this); instance = this; showDialog(); setVisible(true); } /**
/** * Open a new dialog. */ public VJSurfaceJ() { super(); if (instance!=null) { instance.toFront(); return; } WindowManager.addWindow(this); instance = this; showDialog(); setVisible(true); xrot = -50; scale = 2; } /**
bitDepth = imp.getBitDepth(); WindowManager.addWindow(this);
/** * Opens a new text window containing the contents of a text file. * @param path the path to the text file * @param width the width of the window in pixels * @param height the height of the window in pixels */ public TextWindow(String path, int width, int height) { super(""); enableEvents(AWTEvent.WINDOW_EVENT_MASK); textPanel = new TextPanel(); textPanel.addKeyListener(IJ.getInstance()); add("Center", textPanel); if (openFile(path)) { WindowManager.addWindow(this); setSize(width, height); show(); } else dispose(); }
/** * Opens a new text window containing the contents of a text file. * @param path the path to the text file * @param width the width of the window in pixels * @param height the height of the window in pixels */ public TextWindow(String path, int width, int height) { super(""); enableEvents(AWTEvent.WINDOW_EVENT_MASK); textPanel = new TextPanel(); textPanel.addKeyListener(IJ.getInstance()); add("Center", textPanel); if (openFile(path)) { WindowManager.addWindow(this); setSize(width, height); show(); } else dispose(); }
public SyncWindows(String s) { super(s); ijInstance = IJ.getInstance(); if (instance!=null) { WindowManager.toFront(instance); return; } instance = this; panel = controlPanel(); add(panel); pack(); setResizable(false); IJ.register(this.getClass()); if (location==null) location = getLocation(); else setLocation(location); updateWindowList(); WindowManager.addWindow(this); ImagePlus.addImageListener(this); Executer.addCommandListener(this); show(); }
public SyncWindows(String s) { super(s); ijInstance = IJ.getInstance(); if (instance!=null) { WindowManager.toFront(instance); return; } instance = this; panel = controlPanel(); add(panel); pack(); setResizable(false); IJ.register(this.getClass()); if (location==null) location = getLocation(); else setLocation(location); updateWindowList(); WindowManager.addWindow(this); ImagePlus.addImageListener(this); Executer.addCommandListener(this); show(); }
WindowManager.addWindow(this); int colorWidth = 22; int colorHeight = 16;
public Editor(int rows, int columns, int fontSize, int options) { super("Editor"); WindowManager.addWindow(this); addMenuBar(options); ta = new TextArea(rows, columns); ta.addTextListener(this); ta.addKeyListener(this); if (IJ.isLinux()) ta.setBackground(Color.white); addKeyListener(IJ.getInstance()); // ImageJ handles keyboard shortcuts add(ta); pack(); if (fontSize<0) fontSize = 0; if (fontSize>=sizes.length) fontSize = sizes.length-1; setFont(); positionWindow(); if (!IJ.isJava18() && !IJ.isLinux()) insertSpaces = false; }
public Editor(int rows, int columns, int fontSize, int options) { super("Editor"); WindowManager.addWindow(this); addMenuBar(options); ta = new TextArea(rows, columns); ta.addTextListener(this); ta.addKeyListener(this); if (IJ.isLinux()) ta.setBackground(Color.white); addKeyListener(IJ.getInstance()); // ImageJ handles keyboard shortcuts add(ta); pack(); if (fontSize<0) fontSize = 0; if (fontSize>=sizes.length) fontSize = sizes.length-1; setFont(); positionWindow(); if (!IJ.isJava18() && !IJ.isLinux()) insertSpaces = false; }
return; WindowManager.addWindow(this); instance = this; IJ.register(PasteController.class);