|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.moesol.bindings.platform_sdk.windows_api.HANDLE com.moesol.bindings.platform_sdk.windows_api.HDC
public class HDC
Wrap a Win32 HDC.
Field Summary | |
---|---|
static long |
BLACKNESS
Win32 constant |
static int |
CLR_INVALID
Win32 constant |
static long |
DSTINVERT
Win32 constant |
static int |
GDI_ERROR
Win32 constant |
static long |
MERGECOPY
Win32 constant |
static long |
MERGEPAINT
Win32 constant |
static long |
NOTSRCCOPY
Win32 constant |
static long |
NOTSRCERASE
Win32 constant |
static int |
OPAQUE
Win32 constant |
static long |
PATCOPY
Win32 constant |
static long |
PATINVERT
Win32 constant |
static long |
PATPAINT
Win32 constant |
static long |
SRCAND
Win32 constant |
static long |
SRCCOPY
Win32 constant |
static long |
SRCERASE
Win32 constant |
static long |
SRCINVERT
Win32 constant |
static long |
SRCPAINT
Win32 constant |
static int |
TA_BASELINE
Win32 constant |
static int |
TA_BOTTOM
Win32 constant |
static int |
TA_CENTER
Win32 constant |
static int |
TA_LEFT
Win32 constant |
static int |
TA_NOUPDATECP
Win32 constant |
static int |
TA_RIGHT
Win32 constant |
static int |
TA_TOP
Win32 constant |
static int |
TA_UPDATECP
Win32 constant |
static int |
TRANSPARENT
Win32 constant |
static long |
WHITENESS
Win32 constant |
Constructor Summary | |
---|---|
protected |
HDC(long handle)
Wrap a HDC around a native hdc handle. |
protected |
HDC(long handle,
boolean temporary)
Wrap an HDC around a native hdc handle. |
Method Summary | |
---|---|
void |
bitBlt(int nXDest,
int nYDest,
int nWidth,
int nHeight,
HDC hdcSrc,
int nXSrc,
int nYSrc,
long dwRop)
Call Win32 BitBlt. |
static HDC |
createCompatibleDC(HDC hdc)
Call Win32 CreateCompatibleDC |
static HDC |
createDC(String driver,
String device,
String output,
DEVMODE devmode)
Call Win32 CreateDC. |
void |
deleteDC()
Call Win32 DeleteDC |
void |
getTextExtentPoint32(byte[] text,
int len,
SIZE size)
Call Win32 GetTextExtendPoint32A |
void |
getTextExtentPoint32(byte[] text,
SIZE size)
Call Win32 GetTextExtendPoint32A using text.length as len parameter. |
void |
getTextExtentPoint32(String text,
int len,
SIZE size)
Call Win32 GetTextExtendPoint32W |
void |
getTextExtentPoint32(String text,
SIZE size)
Call Win32 GetTextExtentPoint32W using text.length() for the len parameter. |
void |
getTextMetrics(TEXTMETRIC metric)
Call Win32 GetTextMetrics |
boolean |
isNeedsDelete()
|
boolean |
isNeedsRelease()
|
void |
lineTo(int x,
int y)
Call Win32 LineTo. |
void |
moveTo(int x,
int y)
Call Win32 MoveTo. |
void |
moveTo(int x,
int y,
POINT out_old_position)
Call Win32 MoveTo. |
HBITMAP |
selectObject(HBITMAP hbitmap)
Call Win32 SelectObject. |
HFONT |
selectObject(HFONT hfont)
Select hfont into this DC. |
HPEN |
selectObject(HPEN hpen)
Call Win32 SelectObject. |
int |
setBkColor(int colorref)
Call Win32 SetBkColor. |
int |
setBkMode(int iBkMode)
Call Win32 SetBkMode. |
int |
setTextAlign(int fMode)
Call Win32 SetTextAlign. |
int |
setTextColor(int colorref)
Call Win32 SetTextColor. |
void |
textOut(int xstart,
int ystart,
byte[] s)
Call Win32 TextOutA |
void |
textOut(int xstart,
int ystart,
byte[] s,
int len)
Call Win32 TextOutA |
void |
textOut(int xstart,
int ystart,
String s)
Call Win32 TextOutW |
void |
textOut(int xstart,
int ystart,
String s,
int len)
Call Win32 TextOutW |
Methods inherited from class com.moesol.bindings.platform_sdk.windows_api.HANDLE |
---|
_getHandle, _safeGetHandle, detach, equals, getLeakCount, hashCode |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final long SRCCOPY
public static final long SRCPAINT
public static final long SRCAND
public static final long SRCINVERT
public static final long SRCERASE
public static final long NOTSRCCOPY
public static final long NOTSRCERASE
public static final long MERGECOPY
public static final long MERGEPAINT
public static final long PATCOPY
public static final long PATPAINT
public static final long PATINVERT
public static final long DSTINVERT
public static final long BLACKNESS
public static final long WHITENESS
public static final int CLR_INVALID
public static final int GDI_ERROR
public static final int TA_NOUPDATECP
public static final int TA_UPDATECP
public static final int TA_LEFT
public static final int TA_RIGHT
public static final int TA_CENTER
public static final int TA_TOP
public static final int TA_BOTTOM
public static final int TA_BASELINE
public static final int TRANSPARENT
public static final int OPAQUE
Constructor Detail |
---|
protected HDC(long handle, boolean temporary)
handle
- temporary
- protected HDC(long handle)
handle
- Method Detail |
---|
public static HDC createDC(String driver, String device, String output, DEVMODE devmode)
driver
- device
- output
- devmode
- - must be null (not implemented).
public static HDC createCompatibleDC(HDC hdc)
hdc
-
public void deleteDC()
public void getTextMetrics(TEXTMETRIC metric)
metric
- public void getTextExtentPoint32(String text, SIZE size)
text
- size
- public void getTextExtentPoint32(String text, int len, SIZE size)
text
- len
- size
- public void getTextExtentPoint32(byte[] text, SIZE size)
text
- size
- public void getTextExtentPoint32(byte[] text, int len, SIZE size)
text
- len
- size
- public int setBkColor(int colorref)
colorref
-
public int setBkMode(int iBkMode)
iBkMode
-
public int setTextColor(int colorref)
colorref
-
public int setTextAlign(int fMode)
fMode
-
public HBITMAP selectObject(HBITMAP hbitmap)
hbitmap
-
public HPEN selectObject(HPEN hpen)
hpen
-
public HFONT selectObject(HFONT hfont)
hfont
into this DC. The returned HFONT should
be re-selected when the drawing operation using hfont is complete.
The returned HFONT is marked as temporary and will not be reported
if leaked.
hfont
-
public void moveTo(int x, int y)
x
- y
- public void moveTo(int x, int y, POINT out_old_position)
x
- y
- out_old_position
- public void lineTo(int x, int y)
x
- y
- public void textOut(int xstart, int ystart, String s)
xstart
- ystart
- s
- public void textOut(int xstart, int ystart, String s, int len)
xstart
- ystart
- s
- len
- public void textOut(int xstart, int ystart, byte[] s)
xstart
- ystart
- s
- public void textOut(int xstart, int ystart, byte[] s, int len)
xstart
- ystart
- s
- len
- public void bitBlt(int nXDest, int nYDest, int nWidth, int nHeight, HDC hdcSrc, int nXSrc, int nYSrc, long dwRop)
nXDest
- nYDest
- nWidth
- nHeight
- hdcSrc
- nXSrc
- nYSrc
- dwRop
- public boolean isNeedsDelete()
public boolean isNeedsRelease()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |