FileDocCategorySizeDatePackage
HSSFPolygon.javaAPI DocApache Poi 3.0.12212Mon Jan 01 12:39:36 GMT 2007org.apache.poi.hssf.usermodel

HSSFPolygon

public class HSSFPolygon extends HSSFShape
author
Glen Stampoultzis (glens at superlinksoftware.com)

Fields Summary
int[]
xPoints
int[]
yPoints
int
drawAreaWidth
int
drawAreaHeight
Constructors Summary
HSSFPolygon(HSSFShape parent, HSSFAnchor anchor)


         
    
        super( parent, anchor );
    
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 intgetDrawAreaHeight()

        return drawAreaHeight;
    
public intgetDrawAreaWidth()

        return drawAreaWidth;
    
public int[]getXPoints()

        return xPoints;
    
public int[]getYPoints()

        return yPoints;
    
public voidsetPoints(int[] xPoints, int[] yPoints)

        this.xPoints = cloneArray(xPoints);
        this.yPoints = cloneArray(yPoints);
    
public voidsetPolygonDrawArea(int width, int height)
Defines the width and height of the points in the polygon

param
width
param
height

        this.drawAreaWidth = width;
        this.drawAreaHeight = height;