Point.java ( File view )

  • By jiajia333666 2013-11-28
  • View(s):119
  • Download(s):3
  • Point(s): 2
			package dbscan;

public class Point {

	
	private int x;

	private int y;

	private boolean isKey;

	private boolean isClassed;

	public boolean isKey() {


		return isKey;

	
}

	public void setKey(boolean isKey) {


		this.isKey = isKey;

		this.isClassed=true;

	
}

	public boolean isClassed() {


		return isClassed;

	
}

	public void setClassed(boolean isClassed) {


		this.isClassed = isClassed;

	
}

	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 Point(){


		x=0;

		y=0;

	
}

	public Point(int x,int y){


		this.x=x;

		this.y=y;

	
}

	public Point(String str){


		String[] p=str.split(",");

		this.x=Integer.parseInt(p[0]);

		this.y=Integer.parseInt(p[1]);

	
}

	public String print(){


		return "<"+this.x+","+this.y+">";

	
}

}
			
...
Expand> <Close

Want complete source code? Download it here

Point(s): 2

Download
0 lines left, continue to read
Sponsored links

File list

Tips: You can preview the content of files by clicking file names^_^
Name Size Date
.classpath301.00 B26-10-13 22:00
.project382.00 B26-10-13 22:00
org.eclipse.jdt.core.prefs598.00 B26-10-13 22:00
Dbscan.class2.94 kB26-10-13 22:13
Point.class1.75 kB26-10-13 22:02
Utility.class2.89 kB26-10-13 22:08
Dbscan.java1.90 kB26-10-13 22:13
Point.java960.00 B26-10-13 22:02
Utility.java2.15 kB26-10-13 22:08
<dbscan>0.00 B26-10-13 22:09
<dbscan>0.00 B26-10-13 22:09
<.settings>0.00 B26-10-13 22:00
<bin>0.00 B26-10-13 22:00
<src>0.00 B26-10-13 22:00
<DBSCAN>0.00 B26-10-13 22:00
...
Sponsored links

Point.java (7.66 kB)

Need 2 point
Your Point(s)

Your Point isn't enough.

Get point immediately by PayPal

More(Debit card / Credit card / PayPal Credit / Online Banking)

Submit your source codes. Get more point

LOGIN

Don't have an account? Register now
Need any help?
Mail to: support@codeforge.com

切换到中文版?

CodeForge Chinese Version
CodeForge English Version

Where are you going?

^_^"Oops ...

Sorry!This guy is mysterious, its blog hasn't been opened, try another, please!
OK

Warm tip!

CodeForge to FavoriteFavorite by Ctrl+D