1 23 24 package org.objectweb.clif.scenario.util.isac.loadprofile; 25 26 32 public class Point { 33 36 public int x; 37 40 public int y; 41 42 50 public Point(int x, int y) { 51 this.x = x; 52 this.y = y; 53 } 54 55 62 public boolean equals(Point point) { 63 return ((point.x == this.x) && (point.y == this.y)); 64 } 65 66 69 public String toString() { 70 return "{"+this.x+","+this.y+"}"; 71 } 72 73 public org.eclipse.swt.graphics.Point toEclipsePoint() { 74 return new org.eclipse.swt.graphics.Point((int)this.x, (int)this.y) ; 75 } 76 77 81 public Object clone() { 82 return new Point(this.x, this.y) ; 83 } 84 } | Popular Tags |