From 9eaf3c9951b1dc8d9fa354a126096dcd5bf14e17 Mon Sep 17 00:00:00 2001 From: Leo-ZLC <619298988@qq.com> Date: Thu, 12 May 2016 15:15:45 +0800 Subject: [PATCH] =?UTF-8?q?#91=20#92=20#93=20#94=20#95=20#139=20=E5=85=A8?= =?UTF-8?q?=E9=83=A8=E5=AE=9E=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 实验所需全部文件已上传 --- .../Net1314080903142Activity.java | 3 +- .../net1314080903142/Net1314080903142Dot.java | 50 +++++++++++++++++++ 2 files changed, 52 insertions(+), 1 deletion(-) create mode 100644 app/src/main/java/edu/hzuapps/androidworks/homeworks/net1314080903142/Net1314080903142Dot.java diff --git a/app/src/main/java/edu/hzuapps/androidworks/homeworks/net1314080903142/Net1314080903142Activity.java b/app/src/main/java/edu/hzuapps/androidworks/homeworks/net1314080903142/Net1314080903142Activity.java index b04fb4a7..2f2cc741 100644 --- a/app/src/main/java/edu/hzuapps/androidworks/homeworks/net1314080903142/Net1314080903142Activity.java +++ b/app/src/main/java/edu/hzuapps/androidworks/homeworks/net1314080903142/Net1314080903142Activity.java @@ -8,7 +8,8 @@ public class Net1314080903142Activity extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); - setContentView(new Nat1314080903142Playground(this)); + + setContentView(new Net1314080903142Playground(this)); } } diff --git a/app/src/main/java/edu/hzuapps/androidworks/homeworks/net1314080903142/Net1314080903142Dot.java b/app/src/main/java/edu/hzuapps/androidworks/homeworks/net1314080903142/Net1314080903142Dot.java new file mode 100644 index 00000000..7aeae010 --- /dev/null +++ b/app/src/main/java/edu/hzuapps/androidworks/homeworks/net1314080903142/Net1314080903142Dot.java @@ -0,0 +1,50 @@ +package edu.hzuapps.androidworks.homeworks.net1314080903142; + + +public class Net1314080903142Dot { + + int x,y; + int status; + + public static final int STATUS_ON = 1; + public static final int STATUS_OFF = 0; + public static final int STATUS_IN = 9; + + public Net1314080903142Dot(int x, int y) { + super(); + this.x = x; + this.y = y; + status = STATUS_OFF; + } + + public int getX() { + return x; + } + + public void setX(int x) { + this.x = x; + } + + public int getY() { + return y; + } + + public void setY(int y) { + this.y = y; + } + + public int getStatus() { + return status; + } + + public void setStatus(int status) { + this.status = status; + } + + public void setXY(int x,int y) { + this.y = y; + this.x = x; + } + + +}