()
| 161 | |
| 162 | |
| 163 | public Toolbar() { |
| 164 | init(); |
| 165 | down = new boolean[MAX_TOOLS]; |
| 166 | resetButtons(); |
| 167 | down[0] = true; |
| 168 | setForeground(Color.black); |
| 169 | setBackground(ImageJ.backgroundColor); |
| 170 | addMouseListener(this); |
| 171 | addMouseMotionListener(this); |
| 172 | instance = this; |
| 173 | names[getNumTools()-1] = "\"More Tools\" menu (switch toolsets or add tools)"; |
| 174 | icons[getNumTools()-1] = "C900T0d18>T6d18>"; // ">>" |
| 175 | addPopupMenus(); |
| 176 | } |
| 177 | |
| 178 | public void init() { |
| 179 | dscale = Prefs.getGuiScale(); |
nothing calls this directly
no test coverage detected