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 Summary
Fields Modifier and Type Field Description private boolean_bextprotected intnumRecordsprotected java.util.Listrecordsprivate java.net.URLurlprotected floatvpXprotected floatvpY-
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 intgetNumRecords()Returns a number of records in the imageMetaRecordgetRecord(int idx)Returns a meta record.java.net.URLgetUrl()Returns the current URLfloatgetVpX()Returns the viewport x originfloatgetVpY()Returns the viewport y originprotected booleanreadRecords(java.io.DataInputStream is)Reads the WMF file from the specified Stream.voidreset()Resets the internal storage and viewport coordinates.voidsetUrl(java.net.URL newUrl)Sets the current URLvoidsetVpX(float newValue)Sets the viewport x originvoidsetVpY(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:
resetin classAbstractWMFReader
-
readRecords
protected boolean readRecords(java.io.DataInputStream is) throws java.io.IOExceptionReads the WMF file from the specified Stream.- Specified by:
readRecordsin 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
-
-