Class RecordStore
- java.lang.Object
-
- org.apache.batik.transcoder.wmf.tosvg.RecordStore
-
public class RecordStore extends java.lang.ObjectDeprecated.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.- Version:
- $Id: RecordStore.java 1808001 2017-09-11 09:51:29Z ssteiner $
-
-
Field Summary
Fields Modifier and Type Field Description protected booleanbReadingDeprecated.intlastObjectIdxDeprecated.protected intnumObjectsDeprecated.protected intnumRecordsDeprecated.protected java.util.VectorobjectVectorDeprecated.protected java.util.VectorrecordsDeprecated.private java.net.URLurlDeprecated.protected intvpHDeprecated.protected intvpWDeprecated.protected intvpXDeprecated.protected intvpYDeprecated.
-
Constructor Summary
Constructors Constructor Description RecordStore()Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidaddObject(int type, java.lang.Object obj)Deprecated.Adds a GdiObject to the internal handle table.voidaddObjectAt(int type, java.lang.Object obj, int idx)Deprecated.Adds a GdiObject to the internal handle table.intgetNumObjects()Deprecated.Returns the number of GdiObjects in the handle tableintgetNumRecords()Deprecated.Returns a number of records in the imageGdiObjectgetObject(int idx)Deprecated.Returns a GdiObject from the handle tableMetaRecordgetRecord(int idx)Deprecated.Returns a meta record.java.net.URLgetUrl()Deprecated.Returns the current URLintgetVpH()Deprecated.Returns the viewport heightintgetVpW()Deprecated.Returns the viewport widthintgetVpX()Deprecated.Returns the viewport x originintgetVpY()Deprecated.Returns the viewport y origin(package private) booleanisReading()Deprecated.booleanread(java.io.DataInputStream is)Deprecated.Reads the Wmf file from the specified Stream.voidreset()Deprecated.Resets the internal storage and viewport coordinates.(package private) voidsetReading(boolean state)Deprecated.voidsetUrl(java.net.URL newUrl)Deprecated.Sets the current URLvoidsetVpH(int newValue)Deprecated.Sets the viewport heightvoidsetVpW(int newValue)Deprecated.Sets the viewport widthvoidsetVpX(int newValue)Deprecated.Sets the viewport x originvoidsetVpY(int newValue)Deprecated.Sets the viewport y origin
-
-
-
Field Detail
-
url
private transient java.net.URL url
Deprecated.
-
numRecords
protected transient int numRecords
Deprecated.
-
numObjects
protected transient int numObjects
Deprecated.
-
lastObjectIdx
public transient int lastObjectIdx
Deprecated.
-
vpX
protected transient int vpX
Deprecated.
-
vpY
protected transient int vpY
Deprecated.
-
vpW
protected transient int vpW
Deprecated.
-
vpH
protected transient int vpH
Deprecated.
-
records
protected transient java.util.Vector records
Deprecated.
-
objectVector
protected transient java.util.Vector objectVector
Deprecated.
-
bReading
protected transient boolean bReading
Deprecated.
-
-
Method Detail
-
reset
public void reset()
Deprecated.Resets the internal storage and viewport coordinates.
-
setReading
void setReading(boolean state)
Deprecated.
-
isReading
boolean isReading()
Deprecated.
-
read
public boolean read(java.io.DataInputStream is) throws java.io.IOExceptionDeprecated.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.- Throws:
java.io.IOException
-
addObject
public void addObject(int type, java.lang.Object obj)Deprecated.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 void addObjectAt(int type, java.lang.Object obj, int idx)Deprecated.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.
-
getUrl
public java.net.URL getUrl()
Deprecated.Returns the current URL
-
setUrl
public void setUrl(java.net.URL newUrl)
Deprecated.Sets the current URL
-
getObject
public GdiObject getObject(int idx)
Deprecated.Returns a GdiObject from the handle table
-
getRecord
public MetaRecord getRecord(int idx)
Deprecated.Returns a meta record.
-
getNumRecords
public int getNumRecords()
Deprecated.Returns a number of records in the image
-
getNumObjects
public int getNumObjects()
Deprecated.Returns the number of GdiObjects in the handle table
-
getVpX
public int getVpX()
Deprecated.Returns the viewport x origin
-
getVpY
public int getVpY()
Deprecated.Returns the viewport y origin
-
getVpW
public int getVpW()
Deprecated.Returns the viewport width
-
getVpH
public int getVpH()
Deprecated.Returns the viewport height
-
setVpX
public void setVpX(int newValue)
Deprecated.Sets the viewport x origin
-
setVpY
public void setVpY(int newValue)
Deprecated.Sets the viewport y origin
-
setVpW
public void setVpW(int newValue)
Deprecated.Sets the viewport width
-
setVpH
public void setVpH(int newValue)
Deprecated.Sets the viewport height
-
-