/** * Obtains the mapped node from the internal tree representation used from * the cell specified * * @param cell * the cell whose <code>TreeLayoutNode</code> is to be found * @param createIfNotPresent * whether or not to create the internal node if it doesn't * already exist * @return the internal node representation of the specified cell */ protected CompactTreeNode getTreeLayoutNode(Object cell, boolean createIfNotPresent) { CompactTreeNode node = (CompactTreeNode) nodes.get(cell); if (node == null && createIfNotPresent) { node = new CompactTreeNode(cell); nodes.put(cell, node); } return node; }