Interface HemfRecord

    • Method Detail

      • init

        long init​(LittleEndianInputStream leis,
                  long recordSize,
                  long recordId)
           throws java.io.IOException
        Init record from stream
        Parameters:
        leis - the little endian input stream
        recordSize - the size limit for this record
        recordId - the id of the HemfRecordType
        Returns:
        count of processed bytes
        Throws:
        java.io.IOException - when the inputstream is malformed
      • draw

        default void draw​(org.apache.poi.hemf.draw.HemfGraphics ctx)
        Draws the record, the default redirects to the parent WMF record drawing
        Parameters:
        ctx - the drawing context
      • setHeader

        default void setHeader​(HemfHeader header)
        Sets the header reference, in case the record needs to refer to it
        Parameters:
        header - the emf header