(int slot, int newState, boolean updateAfter)
| 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) { |
no outgoing calls
no test coverage detected