|
||||||||||
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.MfCmdExtTextOut
The ExtTextOut function draws text using the currently selected font, background color, and text color. You can optionally provide dimensions to be used for clipping, opaquing, or both.
META_EXTTEXTOUT
#include <windows.h> BOOL32 ExtTextOutA ( HDC32 hdc, INT32 x, INT32 y, UINT32 flags, const RECT32 *lprect, LPCSTR str, UINT32 count, const INT32 *lpDx );
Field Summary | |
static int |
ETO_CLIPPED
|
static int |
ETO_GLYPH_INDEX
|
static int |
ETO_IGNORELANGUAGE
|
static int |
ETO_OPAQUE
|
static int |
ETO_RTLREADING
|
Constructor Summary | |
MfCmdExtTextOut()
|
Method Summary | |
protected int |
calcDeltaX(int valign,
int textWidth)
|
protected int |
calcDeltaY(int halign,
java.awt.FontMetrics fm)
|
java.awt.Rectangle |
getClippingRect()
|
int |
getFlags()
|
int |
getFunction()
Reads the function identifier. |
MfCmd |
getInstance()
Creates a empty unintialized copy of this command implementation. |
java.awt.Point |
getOrigin()
|
MfRecord |
getRecord()
Creates a new record based on the data stored in the MfCommand. |
java.awt.Rectangle |
getScaledClippingRect()
|
java.awt.Point |
getScaledOrigin()
|
java.lang.String |
getText()
|
boolean |
isClipped()
|
boolean |
isOpaque()
|
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 |
setClippingRect(int cx,
int cy,
int cw,
int ch)
|
void |
setFlags(int flags)
|
void |
setOrigin(int x,
int y)
|
void |
setRecord(MfRecord record)
Reads the command data from the given record and adjusts the internal parameters according to the data parsed. |
void |
setText(java.lang.String text)
|
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 ETO_OPAQUE
public static final int ETO_CLIPPED
public static final int ETO_GLYPH_INDEX
public static final int ETO_RTLREADING
public static final int ETO_IGNORELANGUAGE
Constructor Detail |
public MfCmdExtTextOut()
Method Detail |
public void replay(WmfFile file)
replay
in class MfCmd
file
- the meta file.protected int calcDeltaX(int valign, int textWidth)
protected int calcDeltaY(int halign, java.awt.FontMetrics fm)
public MfCmd getInstance()
getInstance
in class MfCmd
public int getFunction()
getFunction
in class MfCmd
public void setRecord(MfRecord record)
After the raw record was read from the datasource, the record is parsed by the concrete implementation.
setRecord
in class MfCmd
record
- the raw data that makes up the record.public MfRecord getRecord()
getRecord
in class MfCmd
public java.lang.String toString()
public void setOrigin(int x, int y)
public java.awt.Point getOrigin()
public java.awt.Point getScaledOrigin()
public boolean isClipped()
public boolean isOpaque()
public int getFlags()
public void setFlags(int flags)
public void setClippingRect(int cx, int cy, int cw, int ch)
public java.awt.Rectangle getClippingRect()
public java.awt.Rectangle getScaledClippingRect()
public void setText(java.lang.String text)
public java.lang.String getText()
protected void scaleXChanged()
MfCmd
scaleXChanged
in class MfCmd
protected void scaleYChanged()
MfCmd
scaleYChanged
in class MfCmd
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |