-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathCurve.java
More file actions
90 lines (87 loc) · 1.73 KB
/
Copy pathCurve.java
File metadata and controls
90 lines (87 loc) · 1.73 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
package plotCAS;
import java.awt.Color;
/* Type is the origin of the curve
1 - MOLCAS log file
2 - List of transitions
3 - XY file
*/
public class Curve {
private String curvename;
private String curveinfo;
private int curvetype;
private float xoffset;
private float yscale;
private Color ccolor;
private Broadening broad;
public Transition transition;
private int nativeunit;
public float maxagap, mina,emax;
/* Default */
/*public Curve(){
curvename="";
curveinfo="";
curvetype=0;
xoffset=0;
yscale=1;
ccolor=Color.black;
broad=Window.curDefault.get_dbroad();
nativeunit=Curveplot.getunit();
}*/
/* With parameters */
public Curve(String pName, int ptype, Transition trans,Broadening pbroad, String pInfo, int punit){
curvename=pName;
curvetype=ptype;
curveinfo=pInfo;
transition=trans;
xoffset=0;
yscale=1;
ccolor=Color.black;
broad=pbroad;
nativeunit=punit;
}
public String getname() {
return curvename;
}
public Broadening getbroad() {
return broad;
}
public String getinfo() {
return curveinfo;
}
public int gettype() {
return curvetype;
}
public float getxoffset() {
return xoffset;
}
public float getyscale() {
return yscale;
}
public Color getcolor() {
return ccolor;
}
public int getunit() {
return nativeunit;
}
public void setname(String pname) {
curvename=pname;
}
public void setinfo(String pinfo) {
curveinfo=pinfo;
}
public void settype(int ptype) {
curvetype=ptype;
}
public void setxoffset(float poffset) {
xoffset=poffset;
}
public void setyscale(float pscale) {
yscale=pscale;
}
public void setcolor(Color pcolor) {
ccolor=pcolor;
}
public void setbroad(Broadening pbroad) {
broad=pbroad;
}
}