public class WMFRecordStore extends AbstractWMFReader
Modifier and Type | Field and Description |
---|---|
protected int |
numRecords |
protected java.util.List<MetaRecord> |
records |
protected float |
vpX |
protected float |
vpY |
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 and Description |
---|
WMFRecordStore() |
Modifier and Type | Method and Description |
---|---|
int |
getNumRecords()
Returns a number of records in the image
|
MetaRecord |
getRecord(int idx)
Returns a meta record.
|
java.net.URL |
getUrl()
Returns the current URL
|
float |
getVpX()
Returns the viewport x origin
|
float |
getVpY()
Returns the viewport y origin
|
protected 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 URL
|
void |
setVpX(float newValue)
Sets the viewport x origin
|
void |
setVpY(float newValue)
Sets the viewport y origin
|
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
protected int numRecords
protected float vpX
protected float vpY
protected java.util.List<MetaRecord> records
public void reset()
reset
in class AbstractWMFReader
protected boolean readRecords(java.io.DataInputStream is) throws java.io.IOException
readRecords
in class AbstractWMFReader
is
- input stream to read fromtrue
if reading was successful,
false
if any unhandled exception was caughtjava.io.IOException
- on read errorsWMFConstants
public java.net.URL getUrl()
public void setUrl(java.net.URL newUrl)
newUrl
- new current URLpublic MetaRecord getRecord(int idx)
idx
- index of recordpublic int getNumRecords()
public float getVpX()
public float getVpY()
public void setVpX(float newValue)
newValue
- new viewport X originpublic void setVpY(float newValue)
newValue
- new viewport Y origin