/** Create a small model OutlineModel using the supplied tree model and row model * @param treeModel The tree model that is the data model for the expandable * tree column of an Outline * @param rowModel The row model which will supply values for each row based * on the tree node in that row in the tree model */ public static OutlineModel createOutlineModel(TreeModel treeModel, RowModel rowModel) { return createOutlineModel (treeModel, rowModel, false, null); }
/** Create an OutlineModel using the supplied tree model and row model, * specifying if it is a large-model tree */ public static OutlineModel createOutlineModel(TreeModel treeModel, RowModel rowModel, boolean isLargeModel) { return createOutlineModel (treeModel, rowModel, false, null); } /** Create an OutlineModel using the supplied tree model and row model,
@Override public void run() { busyLabel.setBusy(true); final TreeModel treeMdl = new IssueTreeModel(issues); final OutlineModel mdl = DefaultOutlineModel.createOutlineModel(treeMdl, new IssueRowModel(), true); SwingUtilities.invokeLater(new Runnable() { @Override public void run() { issuesOutline.setRootVisible(false); issuesOutline.setRenderDataProvider(new IssueRenderer()); issuesOutline.setModel(mdl); busyLabel.setBusy(false); } }); } }, "Report Panel Issues Outline");
@Override public void run() { busyLabel.setBusy(true); final TreeModel treeMdl = new IssueTreeModel(issues); final OutlineModel mdl = DefaultOutlineModel.createOutlineModel(treeMdl, new IssueRowModel(), true); SwingUtilities.invokeLater(new Runnable() { @Override public void run() { issuesOutline.setRootVisible(false); issuesOutline.setRenderDataProvider(new IssueRenderer()); issuesOutline.setModel(mdl); busyLabel.setBusy(false); } }); } }, "Report Panel Issues Outline");
protected void setModel(Robot rootGroup){ myRobot = rootGroup; myRowModel = new RobotTreeRowModel(); myTreeModel = new RobotTreeModel(rootGroup); OutlineModel mdl = DefaultOutlineModel.createOutlineModel(myTreeModel, myRowModel); myRobotTreeOutline.setRootVisible(true); myRobotTreeOutline.setModel(mdl); myRobotTreeOutline.setRenderDataProvider(new JointTreeRenderer()); jScrollPane1.setViewportView(myRobotTreeOutline); }
@Override public void run() { setRow(myRow); RowModel rm = new JointTreeRowModel(myPropNames); TreeModel tm = new JointGroupTreeModel(myJointGroup); OutlineModel mdl = DefaultOutlineModel.createOutlineModel(tm, rm); myJointTree.setModel(mdl); myJointTree.repaint(); }
protected void setModel(JointGroup rootGroup, List<String> propNames){ myRootGroup = rootGroup; myPropertyNames = propNames; myRowModel = new JointTreeRowModel(myPropertyNames); myTreeModel = new JointGroupTreeModel(rootGroup); OutlineModel mdl = DefaultOutlineModel.createOutlineModel(myTreeModel, myRowModel); myJointTreeOutline.setRootVisible(true); myJointTreeOutline.setModel(mdl); myJointTreeOutline.setRenderDataProvider(new JointTreeRenderer()); jScrollPane1.setViewportView(myJointTreeOutline); if(myListenerTree != null){ myListenerTree.stopListening(); } myListenerTree = JointTreeJointGroupListener.buildListenerTree(myRootGroup, myJointTreeOutline, myPropertyNames); }
mdl = DefaultOutlineModel.createOutlineModel(treeModel, new ProfileRowModel(), true, "Resource"); final OutlineMouseAdapter mouseAdapter = new OutlineMouseAdapter(); resultsOutline.addMouseListener(mouseAdapter);
mdl = DefaultOutlineModel.createOutlineModel(treeModel, new ProfileRowModel(), true, "Resource"); final OutlineMouseAdapter mouseAdapter = new OutlineMouseAdapter(); resultsOutline.addMouseListener(mouseAdapter);
outline.setShowGrid(false); outline.setFont(new Font(Font.MONOSPACED, Font.PLAIN, 14)); outline.setModel(DefaultOutlineModel.createOutlineModel(treeModel, rowModel)); outline.getColumnModel().getColumn(1).setMinWidth(150);