-
Notifications
You must be signed in to change notification settings - Fork 122
/
EdgeConnector.java
71 lines (57 loc) · 1.65 KB
/
EdgeConnector.java
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
import java.util.StringTokenizer;
public class EdgeConnector {
private int numConnector, endPoint1, endPoint2;
private String endStyle1, endStyle2;
private boolean isEP1Field, isEP2Field, isEP1Table, isEP2Table;
public EdgeConnector(String inputString) {
StringTokenizer st = new StringTokenizer(inputString, EdgeConvertFileParser.DELIM);
numConnector = Integer.parseInt(st.nextToken());
endPoint1 = Integer.parseInt(st.nextToken());
endPoint2 = Integer.parseInt(st.nextToken());
endStyle1 = st.nextToken();
endStyle2 = st.nextToken();
isEP1Field = false;
isEP2Field = false;
isEP1Table = false;
isEP2Table = false;
}
public int getNumConnector() {
return numConnector;
}
public int getEndPoint1() {
return endPoint1;
}
public int getEndPoint2() {
return endPoint2;
}
public String getEndStyle1() {
return endStyle1;
}
public String getEndStyle2() {
return endStyle2;
}
public boolean getIsEP1Field() {
return isEP1Field;
}
public boolean getIsEP2Field() {
return isEP2Field;
}
public boolean getIsEP1Table() {
return isEP1Table;
}
public boolean getIsEP2Table() {
return isEP2Table;
}
public void setIsEP1Field(boolean value) {
isEP1Field = value;
}
public void setIsEP2Field(boolean value) {
isEP2Field = value;
}
public void setIsEP1Table(boolean value) {
isEP1Table = value;
}
public void setIsEP2Table(boolean value) {
isEP2Table = value;
}
}