public void update(int xPos, int yPos, boolean isDown) {
        if (contains(xPos, yPos)) {
            if (isDown && !oldIsDown)
                event.run();
            if (isSelected < gradations - 1) isSelected++;
        } else if (isSelected > 0) isSelected--;
        oldIsDown = isDown;
    }