MCPcopy Index your code
hub / github.com/arduino/Arduino / setState

Method setState

app/src/processing/app/EditorToolbar.java:399–414  ·  view source on GitHub ↗
(int slot, int newState, boolean updateAfter)

Source from the content-addressed store, hash-verified

397
398
399 private void setState(int slot, int newState, boolean updateAfter) {
400 state[slot] = newState;
401 stateImage[slot] = buttonImages[which[slot]][newState];
402 if (updateAfter) {
403 repaint();
404 }
405
406 if (touchBarButtons != null) {
407 if (newState == INACTIVE) {
408 // use ROLLOVER state when INACTIVE
409 newState = ROLLOVER;
410 }
411
412 touchBarButtons[slot].setImage(touchBarImages[slot][newState]);
413 }
414 }
415
416
417 public void mouseEntered(MouseEvent e) {

Callers 7

paintComponentMethod · 0.95
mouseMovedMethod · 0.95
handleMouseMethod · 0.95
mouseExitedMethod · 0.95
activateMethod · 0.95
deactivateMethod · 0.95
selectSerialPortMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected