public abstract class MfCmd extends Object
Modifier and Type | Method and Description |
---|---|
abstract int |
getFunction()
Reads the function identifier.
|
abstract MfCmd |
getInstance()
Creates a empty unintialized copy of this command implementation.
|
abstract MfRecord |
getRecord()
Creates a new record based on the data stored in the MfCommand.
|
int |
getScaledX(int x)
Return integer scaled to output units.
|
int |
getScaledY(int y)
Return integer scaled to output units.
|
abstract void |
replay(WmfFile metafile)
Replays the command on the given WmfFile.
|
abstract void |
setRecord(MfRecord record)
Reads the command data from the given record and adjusts the internal parameters according to the data parsed.
|
void |
setScale(float scaleX,
float scaleY)
Set the scale for the command.
|
public abstract MfRecord getRecord() throws RecordCreationException
RecordCreationException
- if an error occured while generating the record.public abstract void setRecord(MfRecord record)
record
- the raw data that makes up the record.public abstract int getFunction()
public abstract MfCmd getInstance()
public abstract void replay(WmfFile metafile)
metafile
- the meta file.public void setScale(float scaleX, float scaleY)
scaleX
- the horizontal scalescaleY
- the vertical scalepublic int getScaledY(int y)
y
- the unscaled ypublic int getScaledX(int x)
x
- the unscaled x