Class MfCmdExtTextOut
- java.lang.Object
-
- org.pentaho.reporting.libraries.pixie.wmf.records.MfCmd
-
- org.pentaho.reporting.libraries.pixie.wmf.records.MfCmdExtTextOut
-
public class MfCmdExtTextOut extends MfCmd
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_EXTTEXTOUTNEAREST API CALL
#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
Fields Modifier and Type Field Description static int
ETO_CLIPPED
static int
ETO_GLYPH_INDEX
static int
ETO_IGNORELANGUAGE
static int
ETO_OPAQUE
static int
ETO_RTLREADING
-
Constructor Summary
Constructors Constructor Description MfCmdExtTextOut()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected int
calcDeltaX(int valign, int textWidth)
protected int
calcDeltaY(int halign, FontMetrics fm)
Rectangle
getClippingRect()
int
getFlags()
int
getFunction()
Reads the function identifier.MfCmd
getInstance()
Creates a empty unintialized copy of this command implementation.Point
getOrigin()
MfRecord
getRecord()
Creates a new record based on the data stored in the MfCommand.Rectangle
getScaledClippingRect()
Point
getScaledOrigin()
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(String text)
String
toString()
-
Methods inherited from class org.pentaho.reporting.libraries.pixie.wmf.records.MfCmd
applyScaleX, applyScaleY, getScaledHeight, getScaledWidth, getScaledX, getScaledY, scaleRect, setScale
-
-
-
-
Field Detail
-
ETO_OPAQUE
public static final int ETO_OPAQUE
- See Also:
- Constant Field Values
-
ETO_CLIPPED
public static final int ETO_CLIPPED
- See Also:
- Constant Field Values
-
ETO_GLYPH_INDEX
public static final int ETO_GLYPH_INDEX
- See Also:
- Constant Field Values
-
ETO_RTLREADING
public static final int ETO_RTLREADING
- See Also:
- Constant Field Values
-
ETO_IGNORELANGUAGE
public static final int ETO_IGNORELANGUAGE
- See Also:
- Constant Field Values
-
-
Method Detail
-
replay
public void replay(WmfFile file)
Replays the command on the given WmfFile.
-
calcDeltaX
protected int calcDeltaX(int valign, int textWidth)
-
calcDeltaY
protected int calcDeltaY(int halign, FontMetrics fm)
-
getInstance
public MfCmd getInstance()
Creates a empty unintialized copy of this command implementation.- Specified by:
getInstance
in classMfCmd
- Returns:
- a new instance of the command.
-
getFunction
public int getFunction()
Reads the function identifier. Every record type is identified by a function number corresponding to one of the Windows GDI functions used.- Specified by:
getFunction
in classMfCmd
- Returns:
- the function identifier.
-
setRecord
public void setRecord(MfRecord record)
Reads the command data from the given record and adjusts the internal parameters according to the data parsed. After the raw record was read from the datasource, the record is parsed by the concrete implementation.
-
getRecord
public MfRecord getRecord()
Creates a new record based on the data stored in the MfCommand. This writer does not write a char-spacing record.
-
setOrigin
public void setOrigin(int x, int y)
-
getOrigin
public Point getOrigin()
-
getScaledOrigin
public Point getScaledOrigin()
-
isClipped
public boolean isClipped()
-
isOpaque
public boolean isOpaque()
-
getFlags
public int getFlags()
-
setFlags
public void setFlags(int flags)
-
setClippingRect
public void setClippingRect(int cx, int cy, int cw, int ch)
-
getClippingRect
public Rectangle getClippingRect()
-
getScaledClippingRect
public Rectangle getScaledClippingRect()
-
setText
public void setText(String text)
-
getText
public String getText()
-
scaleXChanged
protected void scaleXChanged()
Description copied from class:MfCmd
A callback function to inform the object, that the x scale has changed and the internal coordinate values have to be adjusted.- Specified by:
scaleXChanged
in classMfCmd
-
scaleYChanged
protected void scaleYChanged()
Description copied from class:MfCmd
A callback function to inform the object, that the y scale has changed and the internal coordinate values have to be adjusted.- Specified by:
scaleYChanged
in classMfCmd
-
-