public void displayState(int stateAdded, MindMapNode pNode, boolean recurse) { ImageIcon icon = null; if (stateAdded == CLOCK_VISIBLE) { icon = getClockIcon(); } else if (stateAdded == CLOCK_INVISIBLE) { if (pNode == getNode()) { icon = getBellIcon(); } else { icon = getFlagIcon(); } } pNode.setStateIcon(getStateKey(), icon); nodeRefresh(pNode); if (recurse && !pNode.isRoot()) { displayState(stateAdded, pNode.getParentNode(), recurse); } }