Class RecordStore
- java.lang.Object
-
- org.apache.batik.transcoder.wmf.tosvg.RecordStore
-
public class RecordStore extends java.lang.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.- Version:
- $Id: RecordStore.java 1808001 2017-09-11 09:51:29Z ssteiner $
-
-
Field Summary
Fields Modifier and Type Field Description protected boolean
bReading
Deprecated.int
lastObjectIdx
Deprecated.protected int
numObjects
Deprecated.protected int
numRecords
Deprecated.protected java.util.Vector
objectVector
Deprecated.protected java.util.Vector
records
Deprecated.private java.net.URL
url
Deprecated.protected int
vpH
Deprecated.protected int
vpW
Deprecated.protected int
vpX
Deprecated.protected int
vpY
Deprecated.
-
Constructor Summary
Constructors Constructor Description RecordStore()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
addObject(int type, java.lang.Object obj)
Deprecated.Adds a GdiObject to the internal handle table.void
addObjectAt(int type, java.lang.Object obj, int idx)
Deprecated.Adds a GdiObject to the internal handle table.int
getNumObjects()
Deprecated.Returns the number of GdiObjects in the handle tableint
getNumRecords()
Deprecated.Returns a number of records in the imageGdiObject
getObject(int idx)
Deprecated.Returns a GdiObject from the handle tableMetaRecord
getRecord(int idx)
Deprecated.Returns a meta record.java.net.URL
getUrl()
Deprecated.Returns the current URLint
getVpH()
Deprecated.Returns the viewport heightint
getVpW()
Deprecated.Returns the viewport widthint
getVpX()
Deprecated.Returns the viewport x originint
getVpY()
Deprecated.Returns the viewport y origin(package private) boolean
isReading()
Deprecated.boolean
read(java.io.DataInputStream is)
Deprecated.Reads the Wmf file from the specified Stream.void
reset()
Deprecated.Resets the internal storage and viewport coordinates.(package private) void
setReading(boolean state)
Deprecated.void
setUrl(java.net.URL newUrl)
Deprecated.Sets the current URLvoid
setVpH(int newValue)
Deprecated.Sets the viewport heightvoid
setVpW(int newValue)
Deprecated.Sets the viewport widthvoid
setVpX(int newValue)
Deprecated.Sets the viewport x originvoid
setVpY(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.IOException
Deprecated.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
-
-