Package loci.poi.ddf

Class EscherDggRecord


  • public class EscherDggRecord
    extends EscherRecord
    This record defines the drawing groups used for a particular sheet.
    • Constructor Detail

      • EscherDggRecord

        public EscherDggRecord()
    • Method Detail

      • fillFields

        public int fillFields​(byte[] data,
                              int offset,
                              EscherRecordFactory recordFactory)
        This method deserializes the record from a byte array.
        Specified by:
        fillFields in class EscherRecord
        Parameters:
        data - The byte array containing the escher record information
        offset - The starting offset into data.
        recordFactory - May be null since this is not a container record.
        Returns:
        The number of bytes read from the byte array.
      • serialize

        public int serialize​(int offset,
                             byte[] data,
                             EscherSerializationListener listener)
        This method serializes this escher record into a byte array.
        Specified by:
        serialize in class EscherRecord
        Parameters:
        offset - The offset into data to start writing the record data to.
        data - The byte array to serialize to.
        listener - A listener to retrieve start and end callbacks. Use a NullEscherSerailizationListener to ignore these events.
        Returns:
        The number of bytes written.
        See Also:
        NullEscherSerializationListener
      • getRecordSize

        public int getRecordSize()
        Returns the number of bytes that are required to serialize this record.
        Specified by:
        getRecordSize in class EscherRecord
        Returns:
        Number of bytes
      • getRecordId

        public short getRecordId()
        Description copied from class: EscherRecord
        Return the current record id.
        Overrides:
        getRecordId in class EscherRecord
        Returns:
        The 16 bit record id.
      • getShapeIdMax

        public int getShapeIdMax()
      • setShapeIdMax

        public void setShapeIdMax​(int field_1_shapeIdMax)
        The maximum is actually the next available. shape id.
      • getNumIdClusters

        public int getNumIdClusters()
        Number of id clusters + 1
      • getNumShapesSaved

        public int getNumShapesSaved()
      • setNumShapesSaved

        public void setNumShapesSaved​(int field_3_numShapesSaved)
      • getDrawingsSaved

        public int getDrawingsSaved()
      • setDrawingsSaved

        public void setDrawingsSaved​(int field_4_drawingsSaved)
      • addCluster

        public void addCluster​(int dgId,
                               int numShapedUsed)