-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathGraph.java
More file actions
103 lines (88 loc) · 2.11 KB
/
Graph.java
File metadata and controls
103 lines (88 loc) · 2.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
package model;
public class Graph {
private String name;
private String description;
private String imagePath;
private String tgfPath;
/**
* Default constructor
*/
public Graph(){
}
/**
* Constructor for a new graph
* @param name graph name
* @param imagePath graph image path
* @param tgfPath graph tgf path ( details )
*/
public Graph(String name, String imagePath, String tgfPath) {
this.name = name;
this.imagePath = imagePath;
this.tgfPath = tgfPath;
}
/**
* Getter for description
* @return graph description
*/
public String getDescription() {
return description;
}
/**
* Set the graph description
* @param description graph description
*/
public void setDescription(String description) {
this.description = description;
}
/**
* Get graph name
* @return graph name
*/
public String getName() {
return name;
}
/**
* Set graph name
* @param name graph name
*/
public void setName(String name) {
this.name = name;
}
/**
* Get graph image path
* @return image path
*/
public String getImagePath() {
return imagePath;
}
/**
* Set graph image path
* @param imagePath image path
*/
public void setImagePath(String imagePath) {
this.imagePath = imagePath;
}
/**
* Get the tgf (details) of the graph
* @return the path to the tgf for the graph
*/
public String getTgfPath() {
return tgfPath;
}
/**
* Set the path for the tgf (details) of the graph
* @param tgfPath the path for the tgf of the graph
*/
public void setTgfPath(String tgfPath) {
this.tgfPath = tgfPath;
}
@Override
public String toString() {
return "Graph{" +
"name='" + name + '\'' +
", description='" + description + '\'' +
", imagePath='" + imagePath + '\'' +
", tgfPath='" + tgfPath + '\'' +
'}';
}
}