|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.batik.transcoder.wmf.tosvg.WMFRecordStore
Reads a WMF file, including an Aldus Placable Metafile Header.
Field Summary | |
---|---|
protected boolean |
bReading
|
int |
lastObjectIdx
|
protected int |
numObjects
|
protected int |
numRecords
|
protected java.util.Vector |
objectVector
|
protected java.util.Vector |
records
|
protected int |
vpH
|
protected int |
vpW
|
protected int |
vpX
|
protected int |
vpY
|
Constructor Summary | |
---|---|
WMFRecordStore()
|
Method Summary | |
---|---|
void |
addObject(int type,
java.lang.Object obj)
|
void |
addObjectAt(int type,
java.lang.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 |
org.apache.batik.transcoder.wmf.tosvg.GdiObject |
getObject(int idx)
Returns a GdiObject from the handle table |
org.apache.batik.transcoder.wmf.tosvg.MetaRecord |
getRecord(int idx)
Returns a meta record. |
java.net.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(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 |
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected transient int numRecords
protected transient int numObjects
public transient int lastObjectIdx
protected transient int vpX
protected transient int vpY
protected transient int vpW
protected transient int vpH
protected transient java.util.Vector records
protected transient java.util.Vector objectVector
protected transient boolean bReading
Constructor Detail |
public WMFRecordStore()
Method Detail |
public void reset()
public boolean read(java.io.DataInputStream is) throws java.io.IOException
java.io.IOException
public void addObject(int type, java.lang.Object obj)
public void addObjectAt(int type, java.lang.Object obj, int idx)
public java.net.URL getUrl()
public void setUrl(java.net.URL newUrl)
public org.apache.batik.transcoder.wmf.tosvg.GdiObject getObject(int idx)
public org.apache.batik.transcoder.wmf.tosvg.MetaRecord getRecord(int idx)
public int getNumRecords()
public int getNumObjects()
public int getVpX()
public int getVpY()
public int getVpW()
public int getVpH()
public void setVpX(int newValue)
public void setVpY(int newValue)
public void setVpW(int newValue)
public void setVpH(int newValue)
|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |