public class WMFRecordStore extends AbstractWMFReader
Modifier and Type | Field and Description |
---|---|
protected int |
numRecords |
protected java.util.List |
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 records
public void reset()
reset
in class AbstractWMFReader
protected boolean readRecords(java.io.DataInputStream is) throws java.io.IOException
readRecords
in class AbstractWMFReader
java.io.IOException
WMFConstants
public java.net.URL getUrl()
public void setUrl(java.net.URL newUrl)
public MetaRecord getRecord(int idx)
public int getNumRecords()
public float getVpX()
public float getVpY()
public void setVpX(float newValue)
public void setVpY(float newValue)
Copyright © 2022 Apache Software Foundation. All Rights Reserved.