|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jfree.pixie.wmf.Buffer
org.jfree.pixie.wmf.MfRecord
A Windows metafile record.
| Field Summary | |
static int |
RECORD_HEADER_SIZE
The size of the record header in bytes. |
| Fields inherited from class org.jfree.pixie.wmf.Buffer |
bytes |
| Constructor Summary | |
MfRecord(java.io.InputStream in)
Constructs a new MfRecord by reading the data from the input stream. |
|
MfRecord(int parcount)
Creates a new MetaFileRecord with the specified capacitiy. |
|
| Method Summary | |
boolean |
doesMark()
True if this record marks the screen. |
int |
getLongParam(int p)
Return a 32-bit param from the given offset. |
java.lang.String |
getName()
Return the name of this type of record. |
int |
getParam(int p)
Return a 16-bit param from the given offset. |
java.lang.String |
getStringParam(int p,
int len)
Return a string param from the given offset. |
int |
getType()
Queries the 16-bit type of this record. |
boolean |
isMappingMode()
True if this record affects mapping modes. |
protected void |
read(java.io.InputStream in)
Read a record from an input stream. |
void |
setLongParam(int p,
int value)
Defines a 32-bit param at the given offset. |
void |
setParam(int p,
int value)
Defines a 16-bit param at the given offset. |
void |
setStringParam(int p,
java.lang.String s)
Defines a string param at the given offset. |
void |
setType(int type)
Defines the 16-bit type of this record. |
java.lang.String |
toString()
Return debug info. |
| Methods inherited from class org.jfree.pixie.wmf.Buffer |
getByte, getInputStream, getInt, getLength, getShort, getString, read, setByte, setCapacity, setInt, setLength, setShort, setString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static int RECORD_HEADER_SIZE
| Constructor Detail |
public MfRecord(int parcount)
parcount - the number of 16-Bit words stored as bulk in the record.
public MfRecord(java.io.InputStream in)
throws java.io.IOException
in - the source inputstream
java.io.IOException - if an IOError occurs.| Method Detail |
protected void read(java.io.InputStream in)
throws java.io.IOException
java.io.IOExceptionpublic int getType()
public void setType(int type)
type - the RecordTypepublic int getParam(int p)
p - the parameter position in words.
public void setParam(int p,
int value)
p - the parameter position in words.value - the parameter value.public int getLongParam(int p)
p - the parameter position in words.
public void setLongParam(int p,
int value)
p - the parameter position in words.value - the parameter value.
public java.lang.String getStringParam(int p,
int len)
p - the parameter position in words.
public void setStringParam(int p,
java.lang.String s)
p - the parameter position in words.s - the parameter value.public java.lang.String getName()
public java.lang.String toString()
public boolean doesMark()
public boolean isMappingMode()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||