org.apache.batik.transcoder.wmf.tosvg
Class RecordStore
public
class
RecordStore
extends Object
Deprecated: jan '07 : this class is not used anywhere in Batik, it might be removed in the future.
Probably WMFRecordStore is what you need.
An object that stores the vector graphics records.
Method Summary |
void | addObject(int type, Object obj)
Adds a GdiObject to the internal handle table.
|
void | addObjectAt(int type, Object obj, int idx)
Adds a GdiObject to the internal handle table.
|
int | getNumObjects()
Returns the number of GdiObjects in the handle table |
int | getNumRecords()
Returns a number of records in the image |
GdiObject | getObject(int idx)
Returns a GdiObject from the handle table |
MetaRecord | getRecord(int idx)
Returns a meta record. |
URL | getUrl()
Returns the current URL |
int | getVpH()
Returns the viewport height |
int | getVpW()
Returns the viewport width |
int | getVpX()
Returns the viewport x origin |
int | getVpY()
Returns the viewport y origin |
boolean | read(DataInputStream is)
Reads the Wmf file from the specified Stream.
|
void | reset()
Resets the internal storage and viewport coordinates. |
void | setUrl(URL newUrl)
Sets the current URL |
void | setVpH(int newValue)
Sets the viewport height |
void | setVpW(int newValue)
Sets the viewport width |
void | setVpX(int newValue)
Sets the viewport x origin |
void | setVpY(int newValue)
Sets the viewport y origin |
protected transient boolean bReading
public transient int lastObjectIdx
protected transient int numObjects
protected transient int numRecords
protected transient Vector objectVector
protected transient Vector records
protected transient int vpH
protected transient int vpW
protected transient int vpX
protected transient int vpY
public RecordStore()
public void addObject(int type, Object obj)
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.
public void addObjectAt(int type, Object obj, int idx)
Adds a GdiObject to the internal handle table.
Wmf 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.
public int getNumObjects()
Returns the number of GdiObjects in the handle table
public int getNumRecords()
Returns a number of records in the image
Returns a GdiObject from the handle table
Returns a meta record.
public URL getUrl()
Returns the current URL
public int getVpH()
Returns the viewport height
public int getVpW()
Returns the viewport width
public int getVpX()
Returns the viewport x origin
public int getVpY()
Returns the viewport y origin
public boolean read(DataInputStream is)
Reads the Wmf file from the specified Stream.
A Wmf file can be produced using the GConvert utility found at
http://www.asd.ie/Wmf.htm
The Wmf format is slightly more compact than the original WMF format and
in some cases may produce better handling of colours.
public void reset()
Resets the internal storage and viewport coordinates.
public void setUrl(URL newUrl)
Sets the current URL
public void setVpH(int newValue)
Sets the viewport height
public void setVpW(int newValue)
Sets the viewport width
public void setVpX(int newValue)
Sets the viewport x origin
public void setVpY(int newValue)
Sets the viewport y origin
Copyright B) 2007 Apache Software Foundation. All Rights Reserved.