Skip to content

Commit

Permalink
2021-04-13
Browse files Browse the repository at this point in the history
  • Loading branch information
ProgramTraveler committed Apr 13, 2021
1 parent a3378a1 commit 92c364b
Show file tree
Hide file tree
Showing 21 changed files with 226 additions and 20 deletions.
77 changes: 77 additions & 0 deletions information.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
id,����,ʵ������,ʵ������,ģʽ�л�����,Ŀ����ɫ,Ŀ���ϸ,��ʼʱ��,����ʱ��,��ɫ�л�ʱ��,�����л�ʱ��,ģʽ�л���ʱ��,��������ʱ��,��һ�λ���ʱ��,�ڶ��λ���ʱ��,�����λ���ʱ��,�󴥷�����,��ɫ�л�������,�����л�������,ģʽ�л��ܴ�����,ѹ��1,ѹ��2,ѹ��ƽ��ֵ,��λ��1,��λ��2,��λ��ƽ��ֵ,��б��1,��б��2,��б��ƽ��ֵ,���ƫ����
1,,1,1,P-ʵ��ֵ,��ɫ,3.0,20:50:44:487,20:50:48:786,-1618318245724,-1618318248581,-3236636494305,4535,1857,205,1254,0,1,1,2,0,0,0,0,0,0,0,0,0,6,
2,,1,1,P-ʵ��ֵ,��ɫ,3.0,20:50:44:487,20:50:48:786,-1618318245724,-1618318248581,-3236636494305,4535,1857,205,1254,0,1,1,2,0,0,0,0,0,0,0,0,0,10,
3,,1,1,P-ʵ��ֵ,��ɫ,3.0,20:50:44:487,20:50:48:786,-1618318245724,-1618318248581,-3236636494305,4535,1857,205,1254,0,1,1,2,0,0,0,0,0,0,0,0,0,10,
4,,1,1,P-ʵ��ֵ,��ɫ,3.0,20:50:44:487,20:50:48:786,-1618318245724,-1618318248581,-3236636494305,4535,1857,205,1254,0,1,1,2,0,0,0,0,0,0,0,0,0,5,
5,,1,1,P-ʵ��ֵ,��ɫ,3.0,20:50:44:487,20:50:48:786,-1618318245724,-1618318248581,-3236636494305,4535,1857,205,1254,0,1,1,2,0,0,0,0,0,0,0,0,0,4,
6,,1,1,P-ʵ��ֵ,��ɫ,3.0,20:50:44:487,20:50:48:786,-1618318245724,-1618318248581,-3236636494305,4535,1857,205,1254,0,1,1,2,0,0,0,0,0,0,0,0,0,10,
7,,1,1,P-ʵ��ֵ,��ɫ,3.0,20:50:44:487,20:50:48:786,-1618318245724,-1618318248581,-3236636494305,4535,1857,205,1254,0,1,1,2,0,0,0,0,0,0,0,0,0,10,
8,,1,1,P-ʵ��ֵ,��ɫ,3.0,20:50:44:487,20:50:48:786,-1618318245724,-1618318248581,-3236636494305,4535,1857,205,1254,0,1,1,2,0,0,0,0,0,0,0,0,0,12,
9,,1,1,P-ʵ��ֵ,��ɫ,3.0,20:50:44:487,20:50:48:786,-1618318245724,-1618318248581,-3236636494305,4535,1857,205,1254,0,1,1,2,0,0,0,0,0,0,0,0,0,13,
10,,1,1,P-ʵ��ֵ,��ɫ,3.0,20:50:44:487,20:50:48:786,-1618318245724,-1618318248581,-3236636494305,4535,1857,205,1254,0,1,1,2,0,0,0,0,0,0,0,0,0,13,
11,,1,1,P-ʵ��ֵ,��ɫ,3.0,20:50:44:487,20:50:48:786,-1618318245724,-1618318248581,-3236636494305,4535,1857,205,1254,0,1,1,2,0,0,0,0,0,0,0,0,0,13,
12,,1,1,P-ʵ��ֵ,��ɫ,3.0,20:50:44:487,20:50:48:786,-1618318245724,-1618318248581,-3236636494305,4535,1857,205,1254,0,1,1,2,0,0,0,0,0,0,0,0,0,13,
13,,1,2,P-ʵ��ֵ,��ɫ,2.0,20:50:44:487,20:50:48:786,-1618318253592,-1618318256301,-3236636509893,4843,832,219,1618,0,1,1,4,0,0,0,0,0,0,0,0,0,5,
14,,1,2,P-ʵ��ֵ,��ɫ,2.0,20:50:44:487,20:50:48:786,-1618318253592,-1618318256301,-3236636509893,4843,832,219,1618,0,1,1,4,0,0,0,0,0,0,0,0,0,2,
15,,1,2,P-ʵ��ֵ,��ɫ,2.0,20:50:44:487,20:50:48:786,-1618318253592,-1618318256301,-3236636509893,4843,832,219,1618,0,1,1,4,0,0,0,0,0,0,0,0,0,2,
16,,1,2,P-ʵ��ֵ,��ɫ,2.0,20:50:44:487,20:50:48:786,-1618318253592,-1618318256301,-3236636509893,4843,832,219,1618,0,1,1,4,0,0,0,0,0,0,0,0,0,2,
17,,1,2,P-ʵ��ֵ,��ɫ,2.0,20:50:44:487,20:50:48:786,-1618318253592,-1618318256301,-3236636509893,4843,832,219,1618,0,1,1,4,0,0,0,0,0,0,0,0,0,3,
18,,1,2,P-ʵ��ֵ,��ɫ,2.0,20:50:44:487,20:50:48:786,-1618318253592,-1618318256301,-3236636509893,4843,832,219,1618,0,1,1,4,0,0,0,0,0,0,0,0,0,4,
19,,1,2,P-ʵ��ֵ,��ɫ,2.0,20:50:44:487,20:50:48:786,-1618318253592,-1618318256301,-3236636509893,4843,832,219,1618,0,1,1,4,0,0,0,0,0,0,0,0,0,10,
20,,1,2,P-ʵ��ֵ,��ɫ,2.0,20:50:44:487,20:50:48:786,-1618318253592,-1618318256301,-3236636509893,4843,832,219,1618,0,1,1,4,0,0,0,0,0,0,0,0,0,2,
21,,1,2,P-ʵ��ֵ,��ɫ,2.0,20:50:44:487,20:50:48:786,-1618318253592,-1618318256301,-3236636509893,4843,832,219,1618,0,1,1,4,0,0,0,0,0,0,0,0,0,5,
22,,1,2,P-ʵ��ֵ,��ɫ,2.0,20:50:44:487,20:50:48:786,-1618318253592,-1618318256301,-3236636509893,4843,832,219,1618,0,1,1,4,0,0,0,0,0,0,0,0,0,15,
23,,1,2,P-ʵ��ֵ,��ɫ,2.0,20:50:44:487,20:50:48:786,-1618318253592,-1618318256301,-3236636509893,4843,832,219,1618,0,1,1,4,0,0,0,0,0,0,0,0,0,15,
24,,1,2,P-ʵ��ֵ,��ɫ,2.0,20:50:44:487,20:50:48:786,-1618318253592,-1618318256301,-3236636509893,4843,832,219,1618,0,1,1,4,0,0,0,0,0,0,0,0,0,13,
25,,1,2,P-ʵ��ֵ,��ɫ,2.0,20:50:44:487,20:50:48:786,-1618318253592,-1618318256301,-3236636509893,4843,832,219,1618,0,1,1,4,0,0,0,0,0,0,0,0,0,13,
26,,1,2,P-ʵ��ֵ,��ɫ,2.0,20:50:44:487,20:50:48:786,-1618318253592,-1618318256301,-3236636509893,4843,832,219,1618,0,1,1,4,0,0,0,0,0,0,0,0,0,13,
27,,1,2,P-ʵ��ֵ,��ɫ,2.0,20:50:44:487,20:50:48:786,-1618318253592,-1618318256301,-3236636509893,4843,832,219,1618,0,1,1,4,0,0,0,0,0,0,0,0,0,20,
28,,1,2,P-ʵ��ֵ,��ɫ,2.0,20:50:44:487,20:50:48:786,-1618318253592,-1618318256301,-3236636509893,4843,832,219,1618,0,1,1,4,0,0,0,0,0,0,0,0,0,23,
29,,1,2,P-ʵ��ֵ,��ɫ,2.0,20:50:44:487,20:50:48:786,-1618318253592,-1618318256301,-3236636509893,4843,832,219,1618,0,1,1,4,0,0,0,0,0,0,0,0,0,25,
30,,1,2,P-ʵ��ֵ,��ɫ,2.0,20:50:44:487,20:50:48:786,-1618318253592,-1618318256301,-3236636509893,4843,832,219,1618,0,1,1,4,0,0,0,0,0,0,0,0,0,25,
31,,1,2,P-ʵ��ֵ,��ɫ,2.0,20:50:44:487,20:50:48:786,-1618318253592,-1618318256301,-3236636509893,4843,832,219,1618,0,1,1,4,0,0,0,0,0,0,0,0,0,7,
32,,1,2,P-ʵ��ֵ,��ɫ,2.0,20:50:44:487,20:50:48:786,-1618318253592,-1618318256301,-3236636509893,4843,832,219,1618,0,1,1,4,0,0,0,0,0,0,0,0,0,7,
33,,1,2,P-ʵ��ֵ,��ɫ,2.0,20:50:44:487,20:50:48:786,-1618318253592,-1618318256301,-3236636509893,4843,832,219,1618,0,1,1,4,0,0,0,0,0,0,0,0,0,7,
34,,1,2,P-ʵ��ֵ,��ɫ,2.0,20:50:44:487,20:50:48:786,-1618318253592,-1618318256301,-3236636509893,4843,832,219,1618,0,1,1,4,0,0,0,0,0,0,0,0,0,7,
35,,1,1,P-������,��ɫ,2.0,20:51:28:986,20:51:32:136,-1618318290270,-1618318291933,-3236636582203,3228,500,203,1126,0,1,1,2,0,0,0,0,0,0,0,0,0,24,
36,,1,1,P-������,��ɫ,2.0,20:51:28:986,20:51:32:136,-1618318290270,-1618318291933,-3236636582203,3228,500,203,1126,0,1,1,2,0,0,0,0,0,0,0,0,0,24,
37,,1,1,P-������,��ɫ,2.0,20:51:28:986,20:51:32:136,-1618318290270,-1618318291933,-3236636582203,3228,500,203,1126,0,1,1,2,0,0,0,0,0,0,0,0,0,24,
38,,1,1,P-������,��ɫ,2.0,20:51:28:986,20:51:32:136,-1618318290270,-1618318291933,-3236636582203,3228,500,203,1126,0,1,1,2,0,0,0,0,0,0,0,0,0,24,
39,,1,1,P-������,��ɫ,2.0,20:51:28:986,20:51:32:136,-1618318290270,-1618318291933,-3236636582203,3228,500,203,1126,0,1,1,2,0,0,0,0,0,0,0,0,0,17,
40,,1,1,P-������,��ɫ,2.0,20:51:28:986,20:51:32:136,-1618318290270,-1618318291933,-3236636582203,3228,500,203,1126,0,1,1,2,0,0,0,0,0,0,0,0,0,17,
41,,1,1,P-������,��ɫ,2.0,20:51:28:986,20:51:32:136,-1618318290270,-1618318291933,-3236636582203,3228,500,203,1126,0,1,1,2,0,0,0,0,0,0,0,0,0,17,
42,,1,1,P-������,��ɫ,2.0,20:51:28:986,20:51:32:136,-1618318290270,-1618318291933,-3236636582203,3228,500,203,1126,0,1,1,2,0,0,0,0,0,0,0,0,0,20,
43,,1,1,P-������,��ɫ,2.0,20:51:28:986,20:51:32:136,-1618318290270,-1618318291933,-3236636582203,3228,500,203,1126,0,1,1,2,0,0,0,0,0,0,0,0,0,16,
44,,1,1,P-������,��ɫ,2.0,20:51:28:986,20:51:32:136,-1618318290270,-1618318291933,-3236636582203,3228,500,203,1126,0,1,1,2,0,0,0,0,0,0,0,0,0,16,
45,,1,1,P-������,��ɫ,2.0,20:51:28:986,20:51:32:136,-1618318290270,-1618318291933,-3236636582203,3228,500,203,1126,0,1,1,2,0,0,0,0,0,0,0,0,0,16,
46,,1,1,P-������,��ɫ,2.0,20:51:28:986,20:51:32:136,-1618318290270,-1618318291933,-3236636582203,3228,500,203,1126,0,1,1,2,0,0,0,0,0,0,0,0,0,22,
47,,1,1,P-������,��ɫ,2.0,20:51:28:986,20:51:32:136,-1618318290270,-1618318291933,-3236636582203,3228,500,203,1126,0,1,1,2,0,0,0,0,0,0,0,0,0,22,
48,,1,1,P-������,��ɫ,2.0,20:51:28:986,20:51:32:136,-1618318290270,-1618318291933,-3236636582203,3228,500,203,1126,0,1,1,2,0,0,0,0,0,0,0,0,0,22,
49,,1,2,P-������,��ɫ,3.0,20:51:28:986,20:51:32:136,-1618318298088,-1618318300388,-3236636598476,4291,547,236,1503,0,1,1,4,0,0,0,0,0,0,0,0,0,9,
50,,1,2,P-������,��ɫ,3.0,20:51:28:986,20:51:32:136,-1618318298088,-1618318300388,-3236636598476,4291,547,236,1503,0,1,1,4,0,0,0,0,0,0,0,0,0,9,
51,,1,2,P-������,��ɫ,3.0,20:51:28:986,20:51:32:136,-1618318298088,-1618318300388,-3236636598476,4291,547,236,1503,0,1,1,4,0,0,0,0,0,0,0,0,0,9,
52,,1,2,P-������,��ɫ,3.0,20:51:28:986,20:51:32:136,-1618318298088,-1618318300388,-3236636598476,4291,547,236,1503,0,1,1,4,0,0,0,0,0,0,0,0,0,9,
53,,1,2,P-������,��ɫ,3.0,20:51:28:986,20:51:32:136,-1618318298088,-1618318300388,-3236636598476,4291,547,236,1503,0,1,1,4,0,0,0,0,0,0,0,0,0,7,
54,,1,2,P-������,��ɫ,3.0,20:51:28:986,20:51:32:136,-1618318298088,-1618318300388,-3236636598476,4291,547,236,1503,0,1,1,4,0,0,0,0,0,0,0,0,0,6,
55,,1,2,P-������,��ɫ,3.0,20:51:28:986,20:51:32:136,-1618318298088,-1618318300388,-3236636598476,4291,547,236,1503,0,1,1,4,0,0,0,0,0,0,0,0,0,4,
56,,1,2,P-������,��ɫ,3.0,20:51:28:986,20:51:32:136,-1618318298088,-1618318300388,-3236636598476,4291,547,236,1503,0,1,1,4,0,0,0,0,0,0,0,0,0,3,
57,,1,2,P-������,��ɫ,3.0,20:51:28:986,20:51:32:136,-1618318298088,-1618318300388,-3236636598476,4291,547,236,1503,0,1,1,4,0,0,0,0,0,0,0,0,0,19,
58,,1,2,P-������,��ɫ,3.0,20:51:28:986,20:51:32:136,-1618318298088,-1618318300388,-3236636598476,4291,547,236,1503,0,1,1,4,0,0,0,0,0,0,0,0,0,19,
59,,1,2,P-������,��ɫ,3.0,20:51:28:986,20:51:32:136,-1618318298088,-1618318300388,-3236636598476,4291,547,236,1503,0,1,1,4,0,0,0,0,0,0,0,0,0,19,
60,,1,2,P-������,��ɫ,3.0,20:51:28:986,20:51:32:136,-1618318298088,-1618318300388,-3236636598476,4291,547,236,1503,0,1,1,4,0,0,0,0,0,0,0,0,0,19,
61,,1,2,P-������,��ɫ,3.0,20:51:28:986,20:51:32:136,-1618318298088,-1618318300388,-3236636598476,4291,547,236,1503,0,1,1,4,0,0,0,0,0,0,0,0,0,22,
62,,1,2,P-������,��ɫ,3.0,20:51:28:986,20:51:32:136,-1618318298088,-1618318300388,-3236636598476,4291,547,236,1503,0,1,1,4,0,0,0,0,0,0,0,0,0,22,
63,,1,2,P-������,��ɫ,3.0,20:51:28:986,20:51:32:136,-1618318298088,-1618318300388,-3236636598476,4291,547,236,1503,0,1,1,4,0,0,0,0,0,0,0,0,0,22,
64,,1,2,P-������,��ɫ,3.0,20:51:28:986,20:51:32:136,-1618318298088,-1618318300388,-3236636598476,4291,547,236,1503,0,1,1,4,0,0,0,0,0,0,0,0,0,0,
65,,1,2,P-������,��ɫ,3.0,20:51:28:986,20:51:32:136,-1618318298088,-1618318300388,-3236636598476,4291,547,236,1503,0,1,1,4,0,0,0,0,0,0,0,0,0,17,
66,,1,2,P-������,��ɫ,3.0,20:51:28:986,20:51:32:136,-1618318298088,-1618318300388,-3236636598476,4291,547,236,1503,0,1,1,4,0,0,0,0,0,0,0,0,0,20,
67,,1,2,P-������,��ɫ,3.0,20:51:28:986,20:51:32:136,-1618318298088,-1618318300388,-3236636598476,4291,547,236,1503,0,1,1,4,0,0,0,0,0,0,0,0,0,27,
68,,1,2,P-������,��ɫ,3.0,20:51:28:986,20:51:32:136,-1618318298088,-1618318300388,-3236636598476,4291,547,236,1503,0,1,1,4,0,0,0,0,0,0,0,0,0,2,
69,,1,2,P-������,��ɫ,3.0,20:51:28:986,20:51:32:136,-1618318298088,-1618318300388,-3236636598476,4291,547,236,1503,0,1,1,4,0,0,0,0,0,0,0,0,0,5,
70,,1,2,P-������,��ɫ,3.0,20:51:28:986,20:51:32:136,-1618318298088,-1618318300388,-3236636598476,4291,547,236,1503,0,1,1,4,0,0,0,0,0,0,0,0,0,5,
71,,1,2,P-������,��ɫ,3.0,20:51:28:986,20:51:32:136,-1618318298088,-1618318300388,-3236636598476,4291,547,236,1503,0,1,1,4,0,0,0,0,0,0,0,0,0,4,
72,,1,2,P-������,��ɫ,3.0,20:51:28:986,20:51:32:136,-1618318298088,-1618318300388,-3236636598476,4291,547,236,1503,0,1,1,4,0,0,0,0,0,0,0,0,0,9,
73,,1,2,P-������,��ɫ,3.0,20:51:28:986,20:51:32:136,-1618318298088,-1618318300388,-3236636598476,4291,547,236,1503,0,1,1,4,0,0,0,0,0,0,0,0,0,4,
74,,1,2,P-������,��ɫ,3.0,20:51:28:986,20:51:32:136,-1618318298088,-1618318300388,-3236636598476,4291,547,236,1503,0,1,1,4,0,0,0,0,0,0,0,0,0,3,
75,,1,2,P-������,��ɫ,3.0,20:51:28:986,20:51:32:136,-1618318298088,-1618318300388,-3236636598476,4291,547,236,1503,0,1,1,4,0,0,0,0,0,0,0,0,0,1,
76,,1,2,P-������,��ɫ,3.0,20:51:28:986,20:51:32:136,-1618318298088,-1618318300388,-3236636598476,4291,547,236,1503,0,1,1,4,0,0,0,0,0,0,0,0,0,3,
Binary file modified out/production/PenProject/ActualAzimuth.class
Binary file not shown.
Binary file modified out/production/PenProject/ActualPress.class
Binary file not shown.
Binary file modified out/production/PenProject/ActualTilt.class
Binary file not shown.
Binary file modified out/production/PenProject/IncrementAzimuth.class
Binary file not shown.
Binary file modified out/production/PenProject/IncrementPress.class
Binary file not shown.
Binary file modified out/production/PenProject/IncrementTilt.class
Binary file not shown.
Binary file modified out/production/PenProject/ScatteredAzimuth.class
Binary file not shown.
Binary file modified out/production/PenProject/ScatteredPress.class
Binary file not shown.
Binary file modified out/production/PenProject/ScatteredTilt.class
Binary file not shown.
Binary file modified out/production/PenProject/TraditionalFrame.class
Binary file not shown.
16 changes: 14 additions & 2 deletions src/ActualAzimuth.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
public class ActualAzimuth extends JFrame implements ActionListener, MouseInputListener, KeyListener {
private int time = 50;
private Timer timer = new Timer(time,this);
private int TimeShift = 0; //获取点的时间间隔,在这里判断是600ms
private boolean ShiftIndex = false; //获取点的时间信号
private AAExperimentPanel aaExperimentPanel = new AAExperimentPanel();

private int CurrentAzimuth = -1; //当前的方位角信息
Expand Down Expand Up @@ -290,6 +292,14 @@ public void actionPerformed(ActionEvent e) {
aaExperimentPanel.SetCurrentAzimuth(CurrentAzimuth);
aaExperimentPanel.repaint();
}
//对获取点的时间间隔进行判断
if (TimeShift == 600) {
ShiftIndex = true;
TimeShift = 0;
}else {
TimeShift += 50;
ShiftIndex = false;
}
}

@Override
Expand Down Expand Up @@ -625,8 +635,10 @@ else if (StringRandomP == "请切换像素为4.0") {
}else {
//PixelFlag = true;
}
//将点的偏移量存入容器中
penData.SetShift(Math.abs((int)(y0 - 52)));
if (ShiftIndex) {
//将点的偏移量存入容器中
penData.SetShift(Math.abs((int) (y0 - 52)));
}
//将点的信息记录在容器中
aaExperimentPanel.arrayListSpot.add(dot);
aaExperimentPanel.repaint();
Expand Down
17 changes: 15 additions & 2 deletions src/ActualPress.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@
public class ActualPress extends JFrame implements ActionListener, MouseInputListener, KeyListener {
private int time = 50; //更新时间为50毫秒
private Timer timer = new Timer(time,this); //以每50毫秒触发一次actionPerformed触发器
private int TimeShift = 0; //获取点的时间间隔,在这里判断是600ms
private boolean ShiftIndex = false; //获取点的时间信号

private PAExperimentPanel paExperimentPanel = new PAExperimentPanel(); //创建PAExperimentPanel类
private boolean ChooseFlag = false; //是否显示压力动态图像
private int CurrentPress = -1; //获取当前的压力值
Expand Down Expand Up @@ -293,6 +296,14 @@ public void actionPerformed(ActionEvent e) {
paExperimentPanel.SetCurrentPress(CurrentPress);
paExperimentPanel.repaint();
}
//对获取点的时间间隔进行判断
if (TimeShift == 600) {
ShiftIndex = true;
TimeShift = 0;
}else {
TimeShift += 50;
ShiftIndex = false;
}
}
@Override
public void keyTyped(KeyEvent e) {
Expand Down Expand Up @@ -628,8 +639,10 @@ else if (StringRandomP == "请切换像素为4.0") {
}else {
//PixelFlag = true;
}
//将点的偏移量存入容器中
penData.SetShift(Math.abs((int)(y0 - 52)));
if (ShiftIndex) {
//将点的偏移量存入容器中
penData.SetShift(Math.abs((int) (y0 - 52)));
}
//将点的信息记录在容器中
paExperimentPanel.arrayListSpot.add(dot);
paExperimentPanel.repaint();
Expand Down
17 changes: 15 additions & 2 deletions src/ActualTilt.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@
public class ActualTilt extends JFrame implements ActionListener, MouseInputListener, KeyListener {
private int time = 50;
private Timer timer = new Timer(time,this);
private int TimeShift = 0; //获取点的时间间隔,在这里判断是600ms
private boolean ShiftIndex = false; //获取点的时间信号

private TAExperimentPanel taExperimentPanel = new TAExperimentPanel();

private int CurrentTilt = -1; //记录当前的倾斜角的角度值,和预设的扇形区域做比较
Expand Down Expand Up @@ -291,6 +294,14 @@ public void actionPerformed(ActionEvent e) {
taExperimentPanel.repaint();
}

//对获取点的时间间隔进行判断
if (TimeShift == 600) {
ShiftIndex = true;
TimeShift = 0;
}else {
TimeShift += 50;
ShiftIndex = false;
}
}

@Override
Expand Down Expand Up @@ -630,8 +641,10 @@ else if (StringRandomP == "请切换像素为4.0") {
}else {

}
//将点的偏移量存入容器中
penData.SetShift(Math.abs((int)(y0 - 52)));
if (ShiftIndex) {
//将点的偏移量存入容器中
penData.SetShift(Math.abs((int) (y0 - 52)));
}
//将点的信息记录在容器中
taExperimentPanel.arrayListSpot.add(dot);
taExperimentPanel.repaint();
Expand Down
19 changes: 17 additions & 2 deletions src/IncrementAzimuth.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@
public class IncrementAzimuth extends JFrame implements ActionListener, MouseInputListener, KeyListener {
private int time = 50;
private Timer timer = new Timer(time,this);

private int TimeShift = 0; //获取点的时间间隔,在这里判断是600ms
private boolean ShiftIndex = false; //获取点的时间信号

private AIExperimentPanel aiExperimentPanel = new AIExperimentPanel();

private int CurrentAzimuth = -1; //当前的方位角信息
Expand Down Expand Up @@ -338,6 +342,15 @@ public void actionPerformed(ActionEvent e) {
}
this.RepaintAIInter();

//对获取点的时间间隔进行判断
if (TimeShift == 600) {
ShiftIndex = true;
TimeShift = 0;
}else {
TimeShift += 50;
ShiftIndex = false;
}

}

@Override
Expand Down Expand Up @@ -673,8 +686,10 @@ else if (StringRandomP == "请切换像素为4.0") {
}else {
//PixelFlag = true;
}
//将点的偏移量存入容器中
penData.SetShift(Math.abs((int)(y0 - 52)));
if (ShiftIndex) {
//将点的偏移量存入容器中
penData.SetShift(Math.abs((int) (y0 - 52)));
}
//将点的信息记录在容器中
aiExperimentPanel.arrayListSpot.add(dot);
aiExperimentPanel.repaint();
Expand Down
19 changes: 17 additions & 2 deletions src/IncrementPress.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@
public class IncrementPress extends JFrame implements ActionListener, MouseInputListener, KeyListener {
private int time = 50; //更新时间为50毫秒
private Timer timer = new Timer(time,this); //以每50毫秒触发一次actionPerformed触发器
private int TimeShift = 0; //获取点的时间间隔,在这里判断是600ms
private boolean ShiftIndex = false; //获取点的时间信号


private PIExperimentPanel piExperimentPanel = new PIExperimentPanel(); //创建PIExperimentPanel类
private boolean ChooseFlag = false; //是否显示压力动态图像
private int CurrentPress = -1; //获取当前的压力值
Expand Down Expand Up @@ -343,6 +347,15 @@ public void actionPerformed(ActionEvent e) {
PIInter.removeAll();
}
this.RepaintPIInter();

//对获取点的时间间隔进行判断
if (TimeShift == 600) {
ShiftIndex = true;
TimeShift = 0;
}else {
TimeShift += 50;
ShiftIndex = false;
}
}
@Override
public void keyTyped(KeyEvent e) {
Expand Down Expand Up @@ -677,8 +690,10 @@ else if (StringRandomP == "请切换像素为4.0") {
}else {
//PixelFlag = true;
}
//将点的偏移量存入容器中
penData.SetShift(Math.abs((int)(y0 - 52)));
if (ShiftIndex) {
//将点的偏移量存入容器中
penData.SetShift(Math.abs((int) (y0 - 52)));
}
//将点的信息记录在容器中
piExperimentPanel.arrayListSpot.add(dot);
piExperimentPanel.repaint();
Expand Down
Loading

0 comments on commit 92c364b

Please sign in to comment.