if (x1 < 0 || x1 > getSize().width || y1 < 0 || y1 > getSize().height) {
if (x1 < 0 || x1 > this.getSize().width || y1 < 0 || y1 > this.getSize().height) {
    private boolean checkPoints(double x1, double y1) {      if (x1 < 0 || x1 > getSize().width || y1 < 0 || y1 > getSize().height) {	return false;      }      return true;    }