public void setAnchor(short col1, int row1, int x1, int y1, short col2, int row2, int x2, int y2) {checkRange(getDx1(), 0, 1023, "dx1");checkRange(getDx2(), 0, 1023, "dx2");checkRange(getDy1(), 0, 255, "dy1");checkRange(getDy2(), 0, 255, "dy2");checkRange(getCol1(), 0, MAX_COL, "col1");checkRange(getCol2(), 0, MAX_COL, "col2");checkRange(getRow1(), 0, MAX_ROW, "row1");checkRange(getRow2(), 0, MAX_ROW, "row2");setCol1(col1);setRow1(row1);setDx1(x1);setDy1(y1);setCol2(col2);setRow2(row2);setDx2(x2);setDy2(y2);}

public void setAnchor ( short col1 , int row1 , int x1 , int y1 , short col2 , int row2 , int x2 , int y2 ) { checkRange ( getDx1 ( ) , 0 , 1023 , "dx1" ) ; checkRange ( getDx2 ( ) , 0 , 1023 , "dx2" ) ; checkRange ( getDy1 ( ) , 0 , 255 , "dy1" ) ; checkRange ( getDy2 ( ) , 0 , 255 , "dy2" ) ; checkRange ( getCol1 ( ) , 0 , MAX_COL , "col1" ) ; checkRange ( getCol2 ( ) , 0 , MAX_COL , "col2" ) ; checkRange ( getRow1 ( ) , 0 , MAX_ROW , "row1" ) ; checkRange ( getRow2 ( ) , 0 , MAX_ROW , "row2" ) ; setCol1 ( col1 ) ; setRow1 ( row1 ) ; setDx1 ( x1 ) ; setDy1 ( y1 ) ; setCol2 ( col2 ) ; setRow2 ( row2 ) ; setDx2 ( x2 ) ; setDy2 ( y2 ) ; }
public void SetAnchor(short col1, int row1, int x1, int y1, short col2, int row2, int x2, int y2){CheckRange(x1, 0, 1023, "dx1");CheckRange(x2, 0, 1023, "dx2");CheckRange(y1, 0, 255, "dy1");CheckRange(y2, 0, 255, "dy2");CheckRange(col1, 0, 255, "col1");CheckRange(col2, 0, 255, "col2");CheckRange(row1, 0, 255 * 256, "row1");CheckRange(row2, 0, 255 * 256, "row2");this.Col1 = col1;this.Row1 = row1;this.Dx1 = x1;this.Dy1 = y1;this.Col2 = col2;this.Row2 = row2;this.Dx2 = x2;this.Dy2 = y2;}
