[Bprocessor-commit] gui/src/net/sourceforge/bprocessor/gui/treeview GenericTreeView.java, 1.50, 1.5
Status: Pre-Alpha
Brought to you by:
henryml
From: rimestad <rim...@us...> - 2006-09-29 15:07:31
|
Update of /cvsroot/bprocessor/gui/src/net/sourceforge/bprocessor/gui/treeview In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv13563/src/net/sourceforge/bprocessor/gui/treeview Modified Files: GenericTreeView.java SpaceTreeView.java CameraTreeView.java Log Message: Forgot to use checkstyle Index: GenericTreeView.java =================================================================== RCS file: /cvsroot/bprocessor/gui/src/net/sourceforge/bprocessor/gui/treeview/GenericTreeView.java,v retrieving revision 1.50 retrieving revision 1.51 diff -C2 -d -r1.50 -r1.51 *** GenericTreeView.java 29 Sep 2006 14:57:15 -0000 1.50 --- GenericTreeView.java 29 Sep 2006 15:07:28 -0000 1.51 *************** *** 232,236 **** /** * Update the TreeView - * */ public void update() { --- 232,235 ---- *************** *** 375,379 **** Object[] rem = new Object[children.size()]; int[] indices = new int[children.size()]; ! int i= 0,reach = 0; for (int n = 0; n < this.children.size(); n++) { GenericNode s = (GenericNode)this.getChildAt(n); --- 374,378 ---- Object[] rem = new Object[children.size()]; int[] indices = new int[children.size()]; ! int i = 0; for (int n = 0; n < this.children.size(); n++) { GenericNode s = (GenericNode)this.getChildAt(n); *************** *** 384,388 **** } } ! for(int k=0; k < rem.length; k++) { this.remove((GenericNode)rem[k]); } --- 383,387 ---- } } ! for (int k = 0; k < rem.length; k++) { this.remove((GenericNode)rem[k]); } *************** *** 393,397 **** /** ! * Update the container */ public void update(Object o) { --- 392,397 ---- /** ! * Update the node with the given object ! * @param o The object */ public void update(Object o) { *************** *** 484,488 **** /** ! * */ public void update(Object o) { --- 484,489 ---- /** ! * Update the node with the given object ! * @param o The object */ public void update(Object o) { *************** *** 518,521 **** --- 519,526 ---- } + /** + * Update the node with the given object + * @param o The object + */ public void update(Object o) { if (o instanceof Space) { *************** *** 587,591 **** /** ! * */ public void update(Object o) { --- 592,597 ---- /** ! * Update the node with the given object ! * @param o The object */ public void update(Object o) { *************** *** 650,653 **** --- 656,663 ---- } + /** + * Update the node with the given object + * @param o The object + */ public void update(Object o) { if (o instanceof Edge) { *************** *** 777,781 **** * Constructor * @param name The name ! * @param space The space */ public ElementContainer(String name, Collection elements) { --- 787,791 ---- * Constructor * @param name The name ! * @param elements The elements */ public ElementContainer(String name, Collection elements) { *************** *** 837,840 **** --- 847,854 ---- } + /** + * Update the node with the given object + * @param o The object + */ public void update(Object o) { Space s = (Space)o; *************** *** 951,956 **** /** * Constructor for EdgeContainer ! * @param name The name ! * @param vertices The edges */ public CameraNode(Camera c) { --- 965,969 ---- /** * Constructor for EdgeContainer ! * @param c The camera */ public CameraNode(Camera c) { *************** *** 959,962 **** --- 972,979 ---- } + /** + * Update the node with the given object + * @param o The object + */ public void update(Object o) { if (o instanceof Camera) { *************** *** 1041,1044 **** --- 1058,1065 ---- } + /** + * Update the node with the given object + * @param o The object + */ public void update(Object o) { if (o instanceof ParameterBlock) { Index: CameraTreeView.java =================================================================== RCS file: /cvsroot/bprocessor/gui/src/net/sourceforge/bprocessor/gui/treeview/CameraTreeView.java,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** CameraTreeView.java 29 Sep 2006 14:57:15 -0000 1.7 --- CameraTreeView.java 29 Sep 2006 15:07:28 -0000 1.8 *************** *** 21,25 **** import net.sourceforge.bprocessor.model.Camera; import net.sourceforge.bprocessor.model.Project; - import net.sourceforge.bprocessor.model.Selection; /** --- 21,24 ---- *************** *** 44,52 **** * Remove the children from container node * @param children the children to remove */ private void removeChildren(Collection children, DefaultMutableTreeNode where) { Object[] rem = new Object[children.size()]; int[] indices = new int[children.size()]; ! int i= 0; for (int n = 0; n < where.getChildCount(); n++) { GenericNode s = (GenericNode)where.getChildAt(n); --- 43,52 ---- * Remove the children from container node * @param children the children to remove + * @param where The node to update on */ private void removeChildren(Collection children, DefaultMutableTreeNode where) { Object[] rem = new Object[children.size()]; int[] indices = new int[children.size()]; ! int i = 0; for (int n = 0; n < where.getChildCount(); n++) { GenericNode s = (GenericNode)where.getChildAt(n); *************** *** 57,61 **** } } ! for(int k=0; k < rem.length; k++) { where.remove((GenericNode)rem[k]); } --- 57,61 ---- } } ! for (int k = 0; k < rem.length; k++) { where.remove((GenericNode)rem[k]); } *************** *** 67,70 **** --- 67,72 ---- /** * Update the container + * @param o The collection to update with + * @param where the node to udpate on */ private void update(Object o, DefaultMutableTreeNode where) { *************** *** 93,98 **** /** ! * Insert the given object into the node ! * @param elem the elements */ private void insertChildren(Collection elem, DefaultMutableTreeNode where) { --- 95,101 ---- /** ! * Update the container ! * @param elem The collection to update with ! * @param where the node to udpate on */ private void insertChildren(Collection elem, DefaultMutableTreeNode where) { Index: SpaceTreeView.java =================================================================== RCS file: /cvsroot/bprocessor/gui/src/net/sourceforge/bprocessor/gui/treeview/SpaceTreeView.java,v retrieving revision 1.14 retrieving revision 1.15 diff -C2 -d -r1.14 -r1.15 *** SpaceTreeView.java 29 Sep 2006 14:57:15 -0000 1.14 --- SpaceTreeView.java 29 Sep 2006 15:07:28 -0000 1.15 *************** *** 14,18 **** import javax.swing.tree.TreePath; - import net.sourceforge.bprocessor.model.Entity; import net.sourceforge.bprocessor.model.Project; --- 14,17 ---- *************** *** 58,66 **** } - public DefaultMutableTreeNode handleNode(DefaultMutableTreeNode node, Object which) { - - return null; - } - /** * Find the paths --- 57,60 ---- |