/** Expands the node in the tree. * * @param n node */ public void expandNode(Node n) { if (n == null) { throw new IllegalArgumentException(); } lookupExplorerManager(); TreePath treePath = new TreePath(treeModel.getPathToRoot(VisualizerNode.getVisualizer(null, n))); getOutline().expandPath(treePath); }
/** Initializes the component and lookup explorer manager. */ @Override public void addNotify () { super.addNotify (); lookupExplorerManager (); ViewUtil.adjustBackground(outline); ViewUtil.adjustBackground(getViewport()); if (selection != null) { selection.setTo(outline.getSelectionModel()); } }