Top Fields Constructors Methods
org.apache.poi.hssf.usermodel

public Class HSSFPolygon

extends HSSFSimpleShape
Class Inheritance
Imports
org.apache.logging.log4j.LogManager, .Logger, org.apache.poi.ddf.EscherArrayProperty, .EscherBoolProperty, .EscherClientDataRecord, .EscherContainerRecord, .EscherOptRecord, .EscherPropertyTypes, .EscherRGBProperty, .EscherRecord, .EscherShapePathProperty, .EscherSimpleProperty, .EscherSpRecord, org.apache.poi.hssf.record.CommonObjectDataSubRecord, .EndSubRecord, .ObjRecord, .TextObjectRecord, org.apache.poi.sl.usermodel.ShapeType, org.apache.poi.util.LittleEndian

Field Summary

Modifier and TypeField and Description
private static final Logger
public static final short
Inherited from org.apache.poi.hssf.usermodel.HSSFSimpleShape:
OBJECT_TYPE_ARCOBJECT_TYPE_COMBO_BOXOBJECT_TYPE_COMMENTOBJECT_TYPE_LINEOBJECT_TYPE_OVALOBJECT_TYPE_PICTUREOBJECT_TYPE_RECTANGLEWRAP_BY_POINTSWRAP_NONEWRAP_SQUARE

Constructor Summary

AccessConstructor and Description
public
HSSFPolygon(EscherContainerRecord spContainer, ObjRecord objRecord, TextObjectRecord _textObjectRecord)

public
pack-priv

Method Summary

Modifier and TypeMethod and Description
protected void
afterRemove(HSSFPatriarch patriarch)

Overrides org.apache.poi.hssf.usermodel.HSSFSimpleShape.afterRemove.

remove escher container from the patriarch.escherAggregate remove obj, textObj and note records if it's necessary in case of ShapeGroup remove all contained shapes

protected ObjRecord
createObjRecord()

Overrides org.apache.poi.hssf.usermodel.HSSFSimpleShape.createObjRecord.

Creates the low level OBJ record for this shape.

protected EscherContainerRecord
createSpContainer()

Overrides org.apache.poi.hssf.usermodel.HSSFSimpleShape.createSpContainer.

Generates the shape records for this shape.

protected TextObjectRecord
public int

Returns:

shape height
getDrawAreaHeight
()

public int

Returns:

shape width
getDrawAreaWidth
()

public int[]

Returns:

array of x coordinates
getXPoints
()

public int[]

Returns:

array of y coordinates
getYPoints
()

public void
setPoints(int[]
- array of x coordinates
xPoints
,
int[]
- array of y coordinates
yPoints
)

public void
setPolygonDrawArea(int width, int height)

Defines the width and height of the points in the polygon

Inherited from org.apache.poi.hssf.usermodel.HSSFSimpleShape:
afterInsertcloneShapegetShapeIdgetShapeTypegetStringgetTextObjectRecordgetWrapTextsetShapeTypesetStringsetWrapText

Field Detail

LOGback to summary
private static final Logger LOG
OBJECT_TYPE_MICROSOFT_OFFICE_DRAWINGback to summary
public static final short OBJECT_TYPE_MICROSOFT_OFFICE_DRAWING

Hides org.apache.poi.hssf.usermodel.HSSFSimpleShape.OBJECT_TYPE_MICROSOFT_OFFICE_DRAWING.

Constructor Detail

HSSFPolygonback to summary
public HSSFPolygon(EscherContainerRecord spContainer, ObjRecord objRecord, TextObjectRecord _textObjectRecord)
HSSFPolygonback to summary
public HSSFPolygon(EscherContainerRecord spContainer, ObjRecord objRecord)
HSSFPolygonback to summary
pack-priv HSSFPolygon(HSSFShape parent, HSSFAnchor anchor)

Method Detail

afterRemoveback to summary
protected void afterRemove(HSSFPatriarch patriarch)

Overrides org.apache.poi.hssf.usermodel.HSSFSimpleShape.afterRemove.

Doc from org.apache.poi.hssf.usermodel.HSSFShape.afterRemove.

remove escher container from the patriarch.escherAggregate remove obj, textObj and note records if it's necessary in case of ShapeGroup remove all contained shapes

Annotations
@Override
createObjRecordback to summary
protected ObjRecord createObjRecord()

Overrides org.apache.poi.hssf.usermodel.HSSFSimpleShape.createObjRecord.

Creates the low level OBJ record for this shape.

Annotations
@Override
createSpContainerback to summary
protected EscherContainerRecord createSpContainer()

Overrides org.apache.poi.hssf.usermodel.HSSFSimpleShape.createSpContainer.

Generates the shape records for this shape.

Annotations
@Override
createTextObjRecordback to summary
protected TextObjectRecord createTextObjRecord()

Overrides org.apache.poi.hssf.usermodel.HSSFSimpleShape.createTextObjRecord.

Annotations
@Override
getDrawAreaHeightback to summary
public int getDrawAreaHeight()
Returns:int

shape height

getDrawAreaWidthback to summary
public int getDrawAreaWidth()
Returns:int

shape width

getXPointsback to summary
public int[] getXPoints()
Returns:int[]

array of x coordinates

getYPointsback to summary
public int[] getYPoints()
Returns:int[]

array of y coordinates

setPointsback to summary
public void setPoints(int[] xPoints, int[] yPoints)
Parameters
xPoints:int[]

- array of x coordinates

yPoints:int[]

- array of y coordinates

setPolygonDrawAreaback to summary
public void setPolygonDrawArea(int width, int height)

Defines the width and height of the points in the polygon