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.
-
-
Field Summary
Fields Modifier and Type Field Description protected int
numRecords
protected java.util.List
records
protected float
vpX
protected float
vpY
-
Fields inherited from class org.apache.batik.transcoder.wmf.tosvg.AbstractWMFReader
bottom, bReading, height, inch, isAldus, isotropic, lastObjectIdx, left, MM_PER_PIXEL, mtHeaderSize, mtMaxRecord, mtNoObjects, mtNoParameters, mtSize, mtType, mtVersion, numObjects, objectVector, PIXEL_PER_INCH, right, scaleX, scaleXY, scaleY, top, vpH, vpW, width, windowHeight, windowWidth, xSign, ySign
-
-
Constructor Summary
Constructors Constructor Description WMFRecordStore()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getNumRecords()
Returns a number of records in the imageMetaRecord
getRecord(int idx)
Returns a meta record.java.net.URL
getUrl()
Returns the current URLfloat
getVpX()
Returns the viewport x originfloat
getVpY()
Returns the viewport y originprotected boolean
readRecords(java.io.DataInputStream is)
Reads the WMF file from the specified Stream.void
reset()
Resets the internal storage and viewport coordinates.void
setUrl(java.net.URL newUrl)
Sets the current URLvoid
setVpX(float newValue)
Sets the viewport x originvoid
setVpY(float newValue)
Sets the viewport y origin-
Methods inherited from class org.apache.batik.transcoder.wmf.tosvg.AbstractWMFReader
addObject, addObjectAt, getBottomUnits, getHeightPixels, getHeightUnits, getLeftUnits, getMetaFileUnitsPerInch, getNumObjects, getObject, getPixelsPerUnit, getRectangleInch, getRectanglePixel, getRectangleUnits, getRightUnits, getTopUnits, getUnitsToPixels, getViewportHeightInch, getViewportHeightUnits, getViewportWidthInch, getViewportWidthUnits, getVpH, getVpHFactor, getVpW, getVpWFactor, getWidthPixels, getWidthUnits, getXSign, getYSign, isReading, read, readInt, readShort, setReading
-
-
-
-
Method Detail
-
reset
public void reset()
Resets the internal storage and viewport coordinates.- Specified by:
reset
in classAbstractWMFReader
-
readRecords
protected boolean readRecords(java.io.DataInputStream is) throws java.io.IOException
Reads the WMF file from the specified Stream.- Specified by:
readRecords
in classAbstractWMFReader
- 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
-
-