public class MfCmdCreatePen extends MfCmd
typedef struct tagLOGPEN { UINT lopnStyle; POINT lopnWidth; COLORREF lopnColor; } LOGPEN, *PLOGPEN;
Constructor and Description |
---|
MfCmdCreatePen() |
Modifier and Type | Method and Description |
---|---|
Color |
getColor() |
int |
getFunction()
Reads the function identifier.
|
MfCmd |
getInstance()
Creates a empty unintialized copy of this command implementation.
|
MfRecord |
getRecord()
Creates a new record based on the data stored in the MfCommand.
|
int |
getScaledWidth() |
int |
getStyle() |
int |
getWidth() |
void |
replay(WmfFile file)
Replays the command on the given WmfFile.
|
void |
setColor(Color c) |
void |
setRecord(MfRecord record)
Reads the command data from the given record and adjusts the internal parameters according to the data parsed.
|
void |
setStyle(int style) |
void |
setWidth(int width) |
String |
toString() |
getScaledX, getScaledY, setScale
public void replay(WmfFile file)
public MfCmd getInstance()
getInstance
in class MfCmd
public int getFunction()
getFunction
in class MfCmd
public MfRecord getRecord()
public void setRecord(MfRecord record)
public int getStyle()
public void setStyle(int style)
public int getScaledWidth()
public int getWidth()
public void setWidth(int width)
public Color getColor()
public void setColor(Color c)