|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jfree.pixie.wmf.records.MfCmd
org.jfree.pixie.wmf.records.MfCmdCreateFont
public class MfCmdCreateFont
The CreateFontIndirect function creates a logical font that has the specified characteristics. The font can subsequently be selected as the current font for any device context.
typedef struct tagLOGFONT { LONG lfHeight; LONG lfWidth; LONG lfEscapement; LONG
lfOrientation; LONG lfWeight; BYTE lfItalic; BYTE lfUnderline; BYTE lfStrikeOut; BYTE
lfCharSet; BYTE lfOutPrecision; BYTE lfClipPrecision; BYTE lfQuality; BYTE
lfPitchAndFamily; TCHAR lfFaceName[LF_FACESIZE]; } LOGFONT, *PLOGFONT;
Field Summary | |
---|---|
static int |
CHARSET_ANSI
|
static int |
CHARSET_DEFAULT
|
static int |
CHARSET_OEM
|
static int |
CHARSET_SHIFTJIS
|
static int |
CHARSET_SYMBOL
|
Constructor Summary | |
---|---|
MfCmdCreateFont()
|
Method Summary | |
---|---|
int |
getCharset()
|
int |
getClipPrecision()
|
int |
getEscapement()
|
java.lang.String |
getFontFace()
|
int |
getFunction()
Reads the function identifier. |
int |
getHeight()
|
MfCmd |
getInstance()
Creates a empty unintialized copy of this command implementation. |
int |
getOrientation()
|
int |
getOutputPrecision()
|
int |
getPitchAndFamily()
|
int |
getQuality()
|
MfRecord |
getRecord()
Creates a new record based on the data stored in the MfCommand. |
int |
getScaledHeight()
|
int |
getScaledWidth()
|
int |
getWeight()
|
int |
getWidth()
|
boolean |
isItalic()
|
boolean |
isStrikeout()
|
boolean |
isUnderline()
|
void |
replay(WmfFile file)
Replays the command on the given WmfFile. |
protected void |
scaleXChanged()
A callback function to inform the object, that the x scale has changed and the internal coordinate values have to be adjusted. |
protected void |
scaleYChanged()
A callback function to inform the object, that the y scale has changed and the internal coordinate values have to be adjusted. |
void |
setCharset(int charset)
|
void |
setClipPrecision(int clipprecision)
|
void |
setEscapement(int escapement)
|
void |
setFontFace(java.lang.String facename)
|
void |
setHeight(int height)
|
void |
setItalic(boolean italic)
|
void |
setOrientation(int orientation)
|
void |
setOutputPrecision(int outprecision)
|
void |
setPitchAndFamily(int pitchAndFamily)
|
void |
setQuality(int quality)
|
void |
setRecord(MfRecord record)
Reads the command data from the given record and adjusts the internal parameters according to the data parsed. |
void |
setStrikeout(boolean so)
|
void |
setUnderline(boolean ul)
|
void |
setWeight(int weight)
|
void |
setWidth(int width)
|
java.lang.String |
toString()
|
Methods inherited from class org.jfree.pixie.wmf.records.MfCmd |
---|
applyScaleX, applyScaleY, getScaledHeight, getScaledWidth, getScaledX, getScaledY, scaleRect, setScale |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int CHARSET_ANSI
public static final int CHARSET_DEFAULT
public static final int CHARSET_SYMBOL
public static final int CHARSET_SHIFTJIS
public static final int CHARSET_OEM
Constructor Detail |
---|
public MfCmdCreateFont()
Method Detail |
---|
public void replay(WmfFile file)
replay
in class MfCmd
file
- the meta file.public MfCmd getInstance()
getInstance
in class MfCmd
public MfRecord getRecord()
getRecord
in class MfCmd
public void setRecord(MfRecord record)
MfCmd
setRecord
in class MfCmd
record
- the raw data that makes up the record.public int getFunction()
getFunction
in class MfCmd
public void setFontFace(java.lang.String facename)
public java.lang.String getFontFace()
public void setPitchAndFamily(int pitchAndFamily)
public int getPitchAndFamily()
public void setQuality(int quality)
public int getQuality()
public void setClipPrecision(int clipprecision)
public int getClipPrecision()
public void setOutputPrecision(int outprecision)
public int getOutputPrecision()
public void setCharset(int charset)
public int getCharset()
public void setHeight(int height)
public int getHeight()
public int getScaledHeight()
public void setWidth(int width)
protected void scaleXChanged()
scaleXChanged
in class MfCmd
protected void scaleYChanged()
scaleYChanged
in class MfCmd
public int getWidth()
public int getScaledWidth()
public void setEscapement(int escapement)
public int getEscapement()
public void setOrientation(int orientation)
public int getOrientation()
public void setWeight(int weight)
public int getWeight()
public void setItalic(boolean italic)
public boolean isItalic()
public void setUnderline(boolean ul)
public boolean isUnderline()
public void setStrikeout(boolean so)
public boolean isStrikeout()
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |