Methods Summary |
---|
private int[] | cloneArray(int[] a)
int[] result = new int[a.length];
for ( int i = 0; i < a.length; i++ )
result[i] = a[i];
return result;
|
public int | getDrawAreaHeight()
return drawAreaHeight;
|
public int | getDrawAreaWidth()
return drawAreaWidth;
|
public int[] | getXPoints()
return xPoints;
|
public int[] | getYPoints()
return yPoints;
|
public void | setPoints(int[] xPoints, int[] yPoints)
this.xPoints = cloneArray(xPoints);
this.yPoints = cloneArray(yPoints);
|
public void | setPolygonDrawArea(int width, int height)Defines the width and height of the points in the polygon
this.drawAreaWidth = width;
this.drawAreaHeight = height;
|