Class WMFRecordStore
java.lang.Object
org.apache.batik.transcoder.wmf.tosvg.AbstractWMFReader
org.apache.batik.transcoder.wmf.tosvg.WMFRecordStore
Reads a WMF file, including an Aldus Placable Metafile Header.
-
Field Summary
FieldsFields 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 -
Method Summary
Modifier and TypeMethodDescriptionint
Returns a number of records in the imagegetRecord
(int idx) Returns a meta record.getUrl()
Returns the current URLfloat
getVpX()
Returns the viewport x originfloat
getVpY()
Returns the viewport y originprotected boolean
Reads the WMF file from the specified Stream.void
reset()
Resets the internal storage and viewport coordinates.void
Sets the current URLvoid
setVpX
(float newValue) Sets the viewport x originvoid
setVpY
(float newValue) Sets the viewport y originMethods 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
-
Field Details
-
numRecords
protected int numRecords -
vpX
protected float vpX -
vpY
protected float vpY -
records
-
-
Constructor Details
-
WMFRecordStore
public WMFRecordStore()
-
-
Method Details
-
reset
public void reset()Resets the internal storage and viewport coordinates.- Specified by:
reset
in classAbstractWMFReader
-
readRecords
Reads the WMF file from the specified Stream.- Specified by:
readRecords
in classAbstractWMFReader
- Throws:
IOException
- See Also:
-
getUrl
Returns the current URL -
setUrl
Sets the current URL -
getRecord
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
-