MCPcopy Create free account
hub / github.com/AstroImageJ/astroimagej / Toolbar

Method Toolbar

ij/src/main/java/ij/gui/Toolbar.java:163–176  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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();

Callers

nothing calls this directly

Calls 6

initMethod · 0.95
resetButtonsMethod · 0.95
getNumToolsMethod · 0.95
addPopupMenusMethod · 0.95
setBackgroundMethod · 0.80
addMouseListenerMethod · 0.45

Tested by

no test coverage detected