Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gong-an
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
gong-an
Commits
f856f26a
Commit
f856f26a
authored
Dec 10, 2021
by
wuqinghua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2021/12/10 吴卿华
parent
03253f08
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
57 deletions
+0
-57
TransferRelationshipServiceImpl.java
.../service/serviceImpl/TransferRelationshipServiceImpl.java
+0
-57
No files found.
src/main/java/com/example/gajz/transferrelationship/service/serviceImpl/TransferRelationshipServiceImpl.java
View file @
f856f26a
...
...
@@ -237,12 +237,6 @@ public class TransferRelationshipServiceImpl implements TransferRelationshipServ
/**小圆半径 点数X距离*/
// double circleRadius = (double) (pointsPerShare * distance/4);
double
circleRadius
=
15
*
y
;
/**右下角逐渐递减*/
int
lowerRight
=
0
;
/**左下角逐渐递减*/
int
lowerLeft
=
0
;
/**左上角逐渐递减*/
int
upperLeft
=
0
;
/**点大小*/
double
pointSize
=
1
;
if
(
base
<=
total
){
...
...
@@ -254,10 +248,6 @@ public class TransferRelationshipServiceImpl implements TransferRelationshipServ
double
a
=
(
double
)
(
circleRadius
*
Math
.
cos
(
Adegrees
));
//X轴
double
b
=
(
double
)
(
circleRadius
*
Math
.
sin
(
Adegrees
));
// if(y>=3){
// System.out.println("y:"+y+",角度:"+Adegrees+",Y轴:"+a+",X轴:"+b);
// }
test1
.
setId
(
dataList
.
get
(
numberCycles
).
getTarget
());
test1
.
setName
(
dataList
.
get
(
numberCycles
).
getName
());
test1
.
setX
(
centerPointX
+
b
);
...
...
@@ -274,7 +264,6 @@ public class TransferRelationshipServiceImpl implements TransferRelationshipServ
if
(
base
>
0
){
for
(
int
t
=
0
;
numberCycles
<
dataList
.
size
();
t
++){
Test
test1
=
new
Test
();
if
(
t
<
pointsPerShare
){
//算出A角度数 (每份点数-t)* 每点度数
int
Adegrees
=
(
int
)
((
pointsPerShare
-
t
)
*
eachDegree
);
//Y轴
...
...
@@ -287,52 +276,6 @@ public class TransferRelationshipServiceImpl implements TransferRelationshipServ
test1
.
setY
(
centerPointY
-
a
);
test1
.
setColor
(
code
);
test1
.
setSize
(
pointSize
);
}
else
if
(
t
<=
pointsPerShare
*
2
){
//算出A角度数 (每份点数-t)* 每点度数
double
Adegrees
=
(
double
)
((
pointsPerShare
-
t
)
*
eachDegree
);
//Y轴
double
a
=
(
double
)
(
circleRadius
*
Math
.
sin
(
Adegrees
));
//X轴
double
b
=
(
double
)
(
circleRadius
*
Math
.
cos
(
Adegrees
));
test1
.
setId
(
dataList
.
get
(
numberCycles
).
getTarget
());
test1
.
setName
(
dataList
.
get
(
numberCycles
).
getName
());
test1
.
setX
(
centerPointX
+
b
);
test1
.
setY
(
centerPointY
-
a
);
test1
.
setColor
(
code
);
test1
.
setSize
(
pointSize
);
lowerRight
++;
}
else
if
(
t
<=
pointsPerShare
*
3
){
//算出A角度数 (每份点数-t)* 每点度数
double
Adegrees
=
(
double
)
((
pointsPerShare
-
t
)
*
eachDegree
);
//Y轴
double
a
=
(
double
)
(
circleRadius
*
Math
.
sin
(
Adegrees
));
//X轴
double
b
=
(
double
)
(
circleRadius
*
Math
.
cos
(
Adegrees
));
test1
.
setId
(
dataList
.
get
(
numberCycles
).
getTarget
());
test1
.
setName
(
dataList
.
get
(
numberCycles
).
getName
());
test1
.
setX
(
centerPointX
+
b
);
test1
.
setY
(
centerPointY
-
a
);
test1
.
setColor
(
code
);
test1
.
setSize
(
pointSize
);
lowerLeft
++;
}
else
if
(
t
<=
pointsPerShare
*
4
){
//算出A角度数 (每份点数-t)* 每点度数
double
Adegrees
=
(
double
)
((
pointsPerShare
-
t
)
*
eachDegree
);
//Y轴
double
a
=
(
double
)
(
circleRadius
*
Math
.
sin
(
Adegrees
));
//X轴
double
b
=
(
double
)
(
circleRadius
*
Math
.
cos
(
Adegrees
));
test1
.
setId
(
dataList
.
get
(
numberCycles
).
getTarget
());
test1
.
setName
(
dataList
.
get
(
numberCycles
).
getName
());
test1
.
setX
(
centerPointX
+
b
);
test1
.
setY
(
centerPointY
-
a
);
test1
.
setColor
(
code
);
test1
.
setSize
(
pointSize
);
upperLeft
++;
}
// /** 将其他点 X Y轴拼接 并存入Redis中*/
// String position=test1.getX()+"Y"+test1.getY();
// conn.set(test1.getId(),position);
list
.
add
(
test1
);
numberCycles
++;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment