protected void registerTool() { int[] ids = WindowManager.getIDList(); if (ids != null) for (int id : ids) registerTool(WindowManager.getImage(id)); if (toolbarMouseListener != null) toolbar.addMouseListener(toolbarMouseListener); ImagePlus.addImageListener(this); IJ.getInstance().addWindowFocusListener(this); }
public Toolbar() { init(); down = new boolean[MAX_TOOLS]; resetButtons(); down[0] = true; setForeground(Color.black); setBackground(ImageJ.backgroundColor); addMouseListener(this); addMouseMotionListener(this); instance = this; names[getNumTools()-1] = "\"More Tools\" menu (switch toolsets or add tools)"; icons[getNumTools()-1] = "C900T1e15>T7e15>"; // ">>" addPopupMenus(); }
public Toolbar() { init(); down = new boolean[MAX_TOOLS]; resetButtons(); down[0] = true; setForeground(Color.black); setBackground(ImageJ.backgroundColor); addMouseListener(this); addMouseMotionListener(this); instance = this; names[getNumTools()-1] = "\"More Tools\" menu (switch toolsets or add tools)"; icons[getNumTools()-1] = "C900T1e15>T7e15>"; // ">>" addPopupMenus(); }
private ControlWindow() { if (null != ij.gui.Toolbar.getInstance()) { ij.gui.Toolbar.getInstance().addMouseListener(tool_listener); } Utils.setup(this); Loader.setupPreloader(this); if (IJ.isWindows() && isGUIEnabled()) StdOutWindow.start(); Display3D.init(); setLookAndFeel(); this.command_listener = new ImageJCommandListener(); this.red_phone.start(); }