Class HSSFPolygon

All Implemented Interfaces:
Shape, SimpleShape

public class HSSFPolygon extends HSSFSimpleShape
  • Field Details

    • OBJECT_TYPE_MICROSOFT_OFFICE_DRAWING

      public static final short OBJECT_TYPE_MICROSOFT_OFFICE_DRAWING
      See Also:
  • Constructor Details

  • Method Details

    • createTextObjRecord

      protected TextObjectRecord createTextObjRecord()
      Overrides:
      createTextObjRecord in class HSSFSimpleShape
    • createSpContainer

      protected EscherContainerRecord createSpContainer()
      Generates the shape records for this shape.
      Overrides:
      createSpContainer in class HSSFSimpleShape
    • createObjRecord

      protected ObjRecord createObjRecord()
      Creates the low level OBJ record for this shape.
      Overrides:
      createObjRecord in class HSSFSimpleShape
    • afterRemove

      protected void afterRemove(HSSFPatriarch patriarch)
      Description copied from class: HSSFShape
      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
      Overrides:
      afterRemove in class HSSFSimpleShape
    • getXPoints

      public int[] getXPoints()
      Returns:
      array of x coordinates
    • getYPoints

      public int[] getYPoints()
      Returns:
      array of y coordinates
    • setPoints

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

      public void setPolygonDrawArea(int width, int height)
      Defines the width and height of the points in the polygon
      Parameters:
      width -
      height -
    • getDrawAreaWidth

      public int getDrawAreaWidth()
      Returns:
      shape width
    • getDrawAreaHeight

      public int getDrawAreaHeight()
      Returns:
      shape height