Class WMFRecordStore


  • public class WMFRecordStore
    extends AbstractWMFReader
    Reads a WMF file, including an Aldus Placable Metafile Header.
    Version:
    $Id: WMFRecordStore.java 1831630 2018-05-15 12:56:55Z ssteiner $
    • Field Detail

      • url

        private java.net.URL url
      • numRecords

        protected int numRecords
      • vpX

        protected float vpX
      • vpY

        protected float vpY
      • records

        protected java.util.List records
      • _bext

        private boolean _bext
    • Constructor Detail

      • WMFRecordStore

        public WMFRecordStore()
    • Method Detail

      • reset

        public void reset()
        Resets the internal storage and viewport coordinates.
        Specified by:
        reset in class AbstractWMFReader
      • readRecords

        protected boolean readRecords​(java.io.DataInputStream is)
                               throws java.io.IOException
        Reads the WMF file from the specified Stream.
        Specified by:
        readRecords in class AbstractWMFReader
        Throws:
        java.io.IOException
        See Also:
        WMFConstants
      • getUrl

        public java.net.URL getUrl()
        Returns the current URL
      • setUrl

        public void setUrl​(java.net.URL newUrl)
        Sets the current URL
      • getRecord

        public MetaRecord getRecord​(int idx)
        Returns a meta record.
      • getNumRecords

        public int getNumRecords()
        Returns a number of records in the image
      • getVpX

        public float getVpX()
        Returns the viewport x origin
      • getVpY

        public float getVpY()
        Returns the viewport y origin
      • setVpX

        public void setVpX​(float newValue)
        Sets the viewport x origin
      • setVpY

        public void setVpY​(float newValue)
        Sets the viewport y origin