}
public void addPoint(int x, int y) {
if (this.pointArray == null){
pointArray = new Array_Of_DataPoint<DataPoint>();
}
pointArray.add(new DataPoint(UIutils.pixelsToMils(x), UIutils.pixelsToMils(y)));
nPoints += 1;
int[] tempX = new int[nPoints];
int[] tempY = new int[nPoints];
System.arraycopy(xPoints, 0, tempX, 0, xPoints.length);
System.arraycopy(yPoints, 0, tempY, 0, yPoints.length);