Class WMFRecordStore

java.lang.Object
org.apache.batik.transcoder.wmf.tosvg.AbstractWMFReader
org.apache.batik.transcoder.wmf.tosvg.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 Details

    • url

      private URL url
    • numRecords

      protected int numRecords
    • vpX

      protected float vpX
    • vpY

      protected float vpY
    • records

      protected List records
    • _bext

      private boolean _bext
  • Constructor Details

    • WMFRecordStore

      public WMFRecordStore()
  • Method Details

    • reset

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

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

      public URL getUrl()
      Returns the current URL
    • setUrl

      public void setUrl(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