| |
|
| java.lang.Object net.xoetrope.xui.wmf.RecordStore
All known Subclasses: net.xoetrope.xui.wmf.WmfRecordStore,
RecordStore | public class RecordStore (Code) | | An object that stores the vector graphics records.
version: 2.00 |
bReading | protected transient boolean bReading(Code) | | |
lastObjectIdx | public transient int lastObjectIdx(Code) | | |
numObjects | protected transient int numObjects(Code) | | |
numRecords | protected transient int numRecords(Code) | | |
vpXvpYvpWvpH | protected transient int vpXvpYvpWvpH(Code) | | |
RecordStore | public RecordStore()(Code) | | |
addObject | public int addObject(int type, Object obj)(Code) | | Adds a GdiObject to the internal handle table.
Adds the object at the next free location.
This function should not normally be called by an application.
|
addObjectAt | public int addObjectAt(int type, Object obj, int idx)(Code) | | Adds a GdiObject to the internal handle table.
JMF files specify the index as given in EMF records such as
EMRCREATEPENINDIRECT whereas WMF files always use 0.
This function should not normally be called by an application.
|
getNumObjects | public int getNumObjects()(Code) | | Returns the number of GdiObjects in the handle table
|
getNumRecords | public int getNumRecords()(Code) | | Returns a number of records in the image
|
getObject | public GdiObject getObject(int idx)(Code) | | Returns a GdiObject from the handle table
|
getRecord | public MetaRecord getRecord(int idx)(Code) | | Returns a meta record.
|
getUrl | public URL getUrl()(Code) | | Returns the current URL
|
getVpH | public int getVpH()(Code) | | Returns the viewport height
|
getVpW | public int getVpW()(Code) | | Returns the viewport width
|
getVpX | public int getVpX()(Code) | | Returns the viewport x origin
|
getVpY | public int getVpY()(Code) | | Returns the viewport y origin
|
isReading | synchronized boolean isReading()(Code) | | |
read | public boolean read(DataInputStream is) throws IOException(Code) | | Reads the JMF file from the specified Stream.
A JMF file can be produced using the GConvert utility found at
http://www.asd.ie/jmf.htm
The JMF format is slightly more compact than the original WMF format and
in some cases may produce better handling of colours.
|
reset | public void reset()(Code) | | Resets the internal storage and viewport coordinates.
|
setReading | synchronized void setReading(boolean state)(Code) | | |
setUrl | public void setUrl(URL newUrl)(Code) | | Sets the current URL
|
setVpH | public void setVpH(int newValue)(Code) | | Sets the viewport height
|
setVpW | public void setVpW(int newValue)(Code) | | Sets the viewport width
|
setVpX | public void setVpX(int newValue)(Code) | | Sets the viewport x origin
|
setVpY | public void setVpY(int newValue)(Code) | | Sets the viewport y origin
|
|
|
|