Skip to content

Commit

Permalink
上传
Browse files Browse the repository at this point in the history
  • Loading branch information
puy1017 committed Jun 19, 2019
1 parent 419056d commit 63ec4c9
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,6 @@ protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
}

private void init(Context context) {
mX = getLeft();
imgHeight_base = dp2px(32, context);
imgWidth_base = imgHeight_base;
imgHeight_service = imgHeight_base;
Expand Down Expand Up @@ -280,9 +279,15 @@ public void onDismiss() {

@Override
protected void onDraw(Canvas canvas) {
super.onDraw(canvas);
mX = getLeft();
int[] local_ljb = getLocation(image_ljb);
int[] local_router = getLocation(image_router);
int[] local_service = getLocation(image_node);
System.out.println("NetworkDelayMonitor mX:"+mX);
System.out.println("NetworkDelayMonitor local_ljb "+local_ljb[0]+" "+local_ljb[1]);
System.out.println("NetworkDelayMonitor local_router "+local_router[0]+" "+local_router[1]);
System.out.println("NetworkDelayMonitor local_service "+local_service[0]+" "+local_service[1]);
int index = netDevices.size() / 2;
int line_h = imgHeight_base / (netDevices.size() + 1);
line_hight = 0;
Expand Down Expand Up @@ -404,7 +409,6 @@ protected void onDraw(Canvas canvas) {
setMyLineColor(canvas, path, routerDelay, Type.OPERATOR);
setMyText(canvas, routerDelay, local_router[0] + imgWidth_base / 2 - mX, local_router[1] + imgWidth_base - mY + (local_service[1] - local_router[1] - imgWidth_base) / 2, Type.OPERATOR);
}
super.onDraw(canvas);
}

private void setMyText(Canvas canvas, Double delay, int x, int y, Type type) {
Expand Down

0 comments on commit 63ec4c9

Please sign in to comment.