public void setCoordinates(int x1, int y1, int x2, int y2) { super.setCoordinates(x1, y1, x2, y2); startX = x1 - this.x1; startY = y1 - this.y1; endX = x2 - this.x1; endY = y2 - this.y1; }