Class HemfPicture

    • Constructor Detail

      • HemfPicture

        public HemfPicture​(java.io.InputStream is)
    • Method Detail

      • getRecords

        public java.util.List<HemfRecord> getRecords()
      • iterator

        public java.util.Iterator<HemfRecord> iterator()
        Specified by:
        iterator in interface java.lang.Iterable<HemfRecord>
      • spliterator

        public java.util.Spliterator<HemfRecord> spliterator()
        Specified by:
        spliterator in interface java.lang.Iterable<HemfRecord>
      • forEach

        public void forEach​(java.util.function.Consumer<? super HemfRecord> action)
        Specified by:
        forEach in interface java.lang.Iterable<HemfRecord>
      • getBounds

        public java.awt.geom.Rectangle2D getBounds()
        Returns the bounding box in device-independent units - usually this is in .01 millimeter units
        Returns:
        the bounding box in device-independent units
      • getInnerBounds

        public void getInnerBounds​(java.awt.geom.Rectangle2D window,
                                   java.awt.geom.Rectangle2D viewport,
                                   java.awt.geom.Rectangle2D bounds)
      • getBoundsInPoints

        public java.awt.geom.Rectangle2D getBoundsInPoints()
        Return the image bounds in points
        Returns:
        the image bounds in points
      • getSize

        public java.awt.geom.Dimension2D getSize()
        Return the image size in points
        Returns:
        the image size in points
      • draw

        public void draw​(java.awt.Graphics2D ctx,
                         java.awt.geom.Rectangle2D graphicsBounds)
        Parameters:
        ctx - The Graphics-context to draw on
        graphicsBounds - A rectangle which describes the bounds for drawing
        Throws:
        java.lang.IllegalStateException - if the draw fails
      • getEmbeddings

        public java.lang.Iterable<HwmfEmbedded> getEmbeddings()
      • getGenericProperties

        public java.util.Map<java.lang.String,​java.util.function.Supplier<?>> getGenericProperties()
        Specified by:
        getGenericProperties in interface GenericRecord
      • setDefaultCharset

        public void setDefaultCharset​(java.nio.charset.Charset defaultCharset)
      • getDefaultCharset

        public java.nio.charset.Charset getDefaultCharset()