Commit f856f26a authored by wuqinghua's avatar wuqinghua

2021/12/10 吴卿华

parent 03253f08
......@@ -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++;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment