1 /*
2 Bloof - visualize the evolution of your software project
3 Copyright ( C ) 2003 Lukasz Pekacki <lukasz@pekacki.de>
4 http://bloof.sf.net/
5
6 This program is free software; you can redistribute it and/or modify it
7 under the terms of the GNU General Public License.
8
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
13
14 You should have received a copy of the GNU General Public License along with
15 this program; if not, write to the Free Software Foundation, Inc.,
16 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
17
18 $RCSfile: FileNode.java,v $
19 Created on $Date: 2003/06/28 06:51:40 $
20 */
21 package net.sf.bloof.metrics;
22
23 import javax.swing.tree.DefaultMutableTreeNode;
24
25 /***
26 * Represents a node in the source navigation tree.
27 * @author Lukasz Pekacki <pekacki@users.sourceforge.net>
28 * @version $Id: FileNode.java,v 1.2 2003/06/28 06:51:40 pekacki Exp $
29 */
30 public class FileNode extends DefaultMutableTreeNode {
31 /***
32 * Default constructor
33 * @param aO object
34 */
35 public FileNode(Object aO) {
36 super(aO);
37 }
38 /***
39 * Main constructor
40 * @param aFileName name of the file
41 * @param aPathName relative path of the file in the SCM tree
42 */
43 public FileNode(String aFileName, String aPathName) {
44 super(aFileName);
45 mFileName = aFileName;
46 this.mPathName = aPathName;
47 }
48
49 /***
50 * Returns the name of the file of this filenode
51 * @return String name of the file of this filenode
52 */
53 public String getName() {
54 return mFileName;
55 }
56 /***
57 * Returns the pathname of the file
58 * @return String
59 */
60 public String getPathName() {
61 return mPathName;
62 }
63
64 /***
65 * Sets the aFileName.
66 * @param aFileName The fileName to set
67 */
68 public void setFileName(String aFileName) {
69 mFileName = aFileName;
70 }
71
72 /***
73 * Sets the aPathName.
74 * @param aPathName The pathName to set
75 */
76 public void setPathName(String aPathName) {
77 mPathName = aPathName;
78 }
79 private String mFileName;
80 private String mPathName;
81
82 }
This page was automatically generated by Maven