org.apache.batik.transcoder.wmf.tosvg

Class WMFRecordStore

public class WMFRecordStore extends AbstractWMFReader

Reads a WMF file, including an Aldus Placable Metafile Header.
Field Summary
protected intnumRecords
protected Listrecords
protected floatvpX
protected floatvpY
Constructor Summary
WMFRecordStore()
Method Summary
intgetNumRecords()
Returns a number of records in the image
MetaRecordgetRecord(int idx)
Returns a meta record.
URLgetUrl()
Returns the current URL
floatgetVpX()
Returns the viewport x origin
floatgetVpY()
Returns the viewport y origin
protected booleanreadRecords(DataInputStream is)
Reads the WMF file from the specified Stream.
voidreset()
Resets the internal storage and viewport coordinates.
voidsetUrl(URL newUrl)
Sets the current URL
voidsetVpX(float newValue)
Sets the viewport x origin
voidsetVpY(float newValue)
Sets the viewport y origin

Field Detail

numRecords

protected int numRecords

records

protected List records

vpX

protected float vpX

vpY

protected float vpY

Constructor Detail

WMFRecordStore

public WMFRecordStore()

Method Detail

getNumRecords

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

getRecord

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

getUrl

public URL getUrl()
Returns the current URL

getVpX

public float getVpX()
Returns the viewport x origin

getVpY

public float getVpY()
Returns the viewport y origin

readRecords

protected boolean readRecords(DataInputStream is)
Reads the WMF file from the specified Stream.

reset

public void reset()
Resets the internal storage and viewport coordinates.

setUrl

public void setUrl(URL newUrl)
Sets the current URL

setVpX

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

setVpY

public void setVpY(float newValue)
Sets the viewport y origin
Copyright B) 2008 Apache Software Foundation. All Rights Reserved.