wx
Class DC
java.lang.Object
wx.Object
wx.DC
- Direct Known Subclasses:
- MemoryDC, MirrorDC, PostScriptDC, ScreenDC, WindowDC
- public class DC
- extends Object
Method Summary |
boolean |
blit(int xdest,
int ydest,
int width,
int height,
DC source,
int xsrc,
int ysrc)
|
boolean |
blit(int xdest,
int ydest,
int width,
int height,
DC source,
int xsrc,
int ysrc,
int rop)
|
boolean |
blit(int xdest,
int ydest,
int width,
int height,
DC source,
int xsrc,
int ysrc,
int rop,
boolean useMask)
|
boolean |
blit(int xdest,
int ydest,
int width,
int height,
DC source,
int xsrc,
int ysrc,
int rop,
boolean useMask,
int xsrcMask)
|
boolean |
blit(int xdest,
int ydest,
int width,
int height,
DC source,
int xsrc,
int ysrc,
int rop,
boolean useMask,
int xsrcMask,
int ysrcMask)
|
boolean |
blit(Point destPt,
Size sz,
DC source,
Point srcPt)
|
boolean |
blit(Point destPt,
Size sz,
DC source,
Point srcPt,
int rop)
|
boolean |
blit(Point destPt,
Size sz,
DC source,
Point srcPt,
int rop,
boolean useMask)
|
boolean |
blit(Point destPt,
Size sz,
DC source,
Point srcPt,
int rop,
boolean useMask,
Point srcPtMask)
|
void |
calcBoundingBox(int x,
int y)
|
boolean |
canDrawBitmap()
|
boolean |
canGetTextExtent()
|
void |
clear()
|
void |
computeScaleAndOrigin()
|
void |
crossHair(int x,
int y)
|
void |
crossHair(Point pt)
|
void |
delete()
|
void |
destroyClippingRegion()
|
int |
deviceToLogicalX(int x)
|
int |
deviceToLogicalXRel(int x)
|
int |
deviceToLogicalY(int y)
|
int |
deviceToLogicalYRel(int y)
|
void |
drawArc(int x1,
int y1,
int x2,
int y2,
int xc,
int yc)
|
void |
drawArc(Point pt1,
Point pt2,
Point centre)
|
void |
drawBitmap(Bitmap bmp,
int x,
int y)
|
void |
drawBitmap(Bitmap bmp,
int x,
int y,
boolean useMask)
|
void |
drawBitmap(Bitmap bmp,
Point pt)
|
void |
drawBitmap(Bitmap bmp,
Point pt,
boolean useMask)
|
void |
drawCheckMark(int x,
int y,
int width,
int height)
|
void |
drawCheckMark(Rect rect)
|
void |
drawCircle(int x,
int y,
int radius)
|
void |
drawCircle(Point pt,
int radius)
|
void |
drawEllipse(int x,
int y,
int width,
int height)
|
void |
drawEllipse(Point pt,
Size sz)
|
void |
drawEllipse(Rect rect)
|
void |
drawEllipticArc(int x,
int y,
int w,
int h,
double sa,
double ea)
|
void |
drawEllipticArc(Point pt,
Size sz,
double sa,
double ea)
|
void |
drawIcon(Icon icon,
int x,
int y)
|
void |
drawIcon(Icon icon,
Point pt)
|
void |
drawLabel(java.lang.String text,
Bitmap image,
Rect rect)
|
void |
drawLabel(java.lang.String text,
Bitmap image,
Rect rect,
int alignment)
|
void |
drawLabel(java.lang.String text,
Bitmap image,
Rect rect,
int alignment,
int indexAccel)
|
void |
drawLabel(java.lang.String text,
Bitmap image,
Rect rect,
int alignment,
int indexAccel,
Rect rectBounding)
|
void |
drawLabel(java.lang.String text,
Rect rect)
|
void |
drawLabel(java.lang.String text,
Rect rect,
int alignment)
|
void |
drawLabel(java.lang.String text,
Rect rect,
int alignment,
int indexAccel)
|
void |
drawLine(int x1,
int y1,
int x2,
int y2)
|
void |
drawLine(Point pt1,
Point pt2)
|
void |
drawLines(Point[] points)
|
void |
drawLines(Point[] points,
int xoffset,
int yoffset)
|
void |
drawPoint(int x,
int y)
|
void |
drawPoint(Point pt)
|
void |
drawPolygon(Point[] points)
|
void |
drawPolygon(Point[] points,
int xoffset,
int yoffset)
|
void |
drawPolygon(Point[] points,
int xoffset,
int yoffset,
int fillStyle)
|
void |
drawPolyPolygon(int[] count,
Point[] points)
|
void |
drawPolyPolygon(int[] count,
Point[] points,
int xoffset,
int yoffset)
|
void |
drawPolyPolygon(int[] count,
Point[] points,
int xoffset,
int yoffset,
int fillStyle)
|
void |
drawRectangle(int x,
int y,
int width,
int height)
|
void |
drawRectangle(Point pt,
Size sz)
|
void |
drawRectangle(Rect rect)
|
void |
drawRotatedText(java.lang.String text,
int x,
int y,
double angle)
|
void |
drawRotatedText(java.lang.String text,
Point pt,
double angle)
|
void |
drawRoundedRectangle(int x,
int y,
int width,
int height,
double radius)
|
void |
drawRoundedRectangle(Point pt,
Size sz,
double radius)
|
void |
drawRoundedRectangle(Rect r,
double radius)
|
void |
drawSpline(int x1,
int y1,
int x2,
int y2,
int x3,
int y3)
|
void |
drawSpline(Point[] points)
|
void |
drawText(java.lang.String text,
int x,
int y)
|
void |
drawText(java.lang.String text,
Point pt)
|
void |
endDoc()
|
void |
endPage()
|
boolean |
floodFill(int x,
int y,
Colour col)
|
boolean |
floodFill(int x,
int y,
Colour col,
int style)
|
boolean |
floodFill(Point pt,
Colour col)
|
boolean |
floodFill(Point pt,
Colour col,
int style)
|
Brush |
getBackground()
|
int |
getBackgroundMode()
|
Brush |
getBrush()
|
int |
getCharHeight()
|
int |
getCharWidth()
|
void |
getClippingBox(Rect rect)
|
int |
getDepth()
|
Point |
getDeviceOrigin()
|
Font |
getFont()
|
int |
getLogicalFunction()
|
Point |
getLogicalOrigin()
|
void |
getLogicalScale(double[] x,
double[] y)
|
int |
getMapMode()
|
void |
getMultiLineTextExtent(java.lang.String text,
int[] width,
int[] height)
|
void |
getMultiLineTextExtent(java.lang.String text,
int[] width,
int[] height,
int[] heightLine)
|
void |
getMultiLineTextExtent(java.lang.String text,
int[] width,
int[] height,
int[] heightLine,
Font font)
|
int[] |
getPartialTextExtents(java.lang.String text)
|
Pen |
getPen()
|
boolean |
getPixel(int x,
int y,
Colour col)
|
boolean |
getPixel(Point pt,
Colour col)
|
Size |
getPPI()
|
Size |
getSize()
|
Size |
getSizeMM()
|
Colour |
getTextBackground()
|
void |
getTextExtent(java.lang.String string,
int[] x,
int[] y)
|
void |
getTextExtent(java.lang.String string,
int[] x,
int[] y,
int[] descent)
|
void |
getTextExtent(java.lang.String string,
int[] x,
int[] y,
int[] descent,
int[] externalLeading)
|
void |
getTextExtent(java.lang.String string,
int[] x,
int[] y,
int[] descent,
int[] externalLeading,
Font theFont)
|
Colour |
getTextForeground()
|
void |
getUserScale(double[] x,
double[] y)
|
int |
logicalToDeviceX(int x)
|
int |
logicalToDeviceXRel(int x)
|
int |
logicalToDeviceY(int y)
|
int |
logicalToDeviceYRel(int y)
|
int |
maxX()
|
int |
maxY()
|
int |
minX()
|
int |
minY()
|
boolean |
ok()
|
void |
resetBoundingBox()
|
void |
setAxisOrientation(boolean xLeftRight,
boolean yBottomUp)
|
void |
setBackground(Brush brush)
|
void |
setBackgroundMode(int mode)
|
void |
setBrush(Brush brush)
|
void |
setClippingRegion(int x,
int y,
int width,
int height)
|
void |
setClippingRegion(Point pt,
Size sz)
|
void |
setClippingRegion(Rect rect)
|
void |
setClippingRegion(Region region)
|
void |
setDeviceOrigin(int x,
int y)
|
void |
setFont(Font font)
|
void |
setLogicalFunction(int function)
|
void |
setLogicalOrigin(int x,
int y)
|
void |
setLogicalScale(double x,
double y)
|
void |
setMapMode(int mode)
|
void |
setPalette(Palette palette)
|
void |
setPen(Pen pen)
|
void |
setTextBackground(Colour colour)
|
void |
setTextForeground(Colour colour)
|
void |
setUserScale(double x,
double y)
|
boolean |
startDoc(java.lang.String message)
|
void |
startPage()
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FLOOD_SURFACE
public static final int FLOOD_SURFACE
- See Also:
- Constant Field Values
FLOOD_BORDER
public static final int FLOOD_BORDER
- See Also:
- Constant Field Values
ODDEVEN_RULE
public static final int ODDEVEN_RULE
- See Also:
- Constant Field Values
WINDING_RULE
public static final int WINDING_RULE
- See Also:
- Constant Field Values
delete
public void delete()
- Overrides:
delete
in class Object
drawLines
public void drawLines(Point[] points,
int xoffset,
int yoffset)
drawLines
public void drawLines(Point[] points)
drawPolygon
public void drawPolygon(Point[] points,
int xoffset,
int yoffset,
int fillStyle)
drawPolygon
public void drawPolygon(Point[] points,
int xoffset,
int yoffset)
drawPolygon
public void drawPolygon(Point[] points)
drawPolyPolygon
public void drawPolyPolygon(int[] count,
Point[] points,
int xoffset,
int yoffset,
int fillStyle)
drawPolyPolygon
public void drawPolyPolygon(int[] count,
Point[] points,
int xoffset,
int yoffset)
drawPolyPolygon
public void drawPolyPolygon(int[] count,
Point[] points)
drawSpline
public void drawSpline(Point[] points)
floodFill
public boolean floodFill(int x,
int y,
Colour col,
int style)
floodFill
public boolean floodFill(int x,
int y,
Colour col)
floodFill
public boolean floodFill(Point pt,
Colour col,
int style)
floodFill
public boolean floodFill(Point pt,
Colour col)
getPixel
public boolean getPixel(int x,
int y,
Colour col)
getPixel
public boolean getPixel(Point pt,
Colour col)
drawLine
public void drawLine(int x1,
int y1,
int x2,
int y2)
drawLine
public void drawLine(Point pt1,
Point pt2)
crossHair
public void crossHair(int x,
int y)
crossHair
public void crossHair(Point pt)
drawArc
public void drawArc(int x1,
int y1,
int x2,
int y2,
int xc,
int yc)
drawArc
public void drawArc(Point pt1,
Point pt2,
Point centre)
drawCheckMark
public void drawCheckMark(int x,
int y,
int width,
int height)
drawCheckMark
public void drawCheckMark(Rect rect)
drawEllipticArc
public void drawEllipticArc(int x,
int y,
int w,
int h,
double sa,
double ea)
drawEllipticArc
public void drawEllipticArc(Point pt,
Size sz,
double sa,
double ea)
drawPoint
public void drawPoint(int x,
int y)
drawPoint
public void drawPoint(Point pt)
drawRectangle
public void drawRectangle(int x,
int y,
int width,
int height)
drawRectangle
public void drawRectangle(Point pt,
Size sz)
drawRectangle
public void drawRectangle(Rect rect)
drawRoundedRectangle
public void drawRoundedRectangle(int x,
int y,
int width,
int height,
double radius)
drawRoundedRectangle
public void drawRoundedRectangle(Point pt,
Size sz,
double radius)
drawRoundedRectangle
public void drawRoundedRectangle(Rect r,
double radius)
drawCircle
public void drawCircle(int x,
int y,
int radius)
drawCircle
public void drawCircle(Point pt,
int radius)
drawEllipse
public void drawEllipse(int x,
int y,
int width,
int height)
drawEllipse
public void drawEllipse(Point pt,
Size sz)
drawEllipse
public void drawEllipse(Rect rect)
drawIcon
public void drawIcon(Icon icon,
int x,
int y)
drawIcon
public void drawIcon(Icon icon,
Point pt)
drawBitmap
public void drawBitmap(Bitmap bmp,
int x,
int y,
boolean useMask)
drawBitmap
public void drawBitmap(Bitmap bmp,
int x,
int y)
drawBitmap
public void drawBitmap(Bitmap bmp,
Point pt,
boolean useMask)
drawBitmap
public void drawBitmap(Bitmap bmp,
Point pt)
drawText
public void drawText(java.lang.String text,
int x,
int y)
drawText
public void drawText(java.lang.String text,
Point pt)
drawRotatedText
public void drawRotatedText(java.lang.String text,
int x,
int y,
double angle)
drawRotatedText
public void drawRotatedText(java.lang.String text,
Point pt,
double angle)
drawLabel
public void drawLabel(java.lang.String text,
Bitmap image,
Rect rect,
int alignment,
int indexAccel,
Rect rectBounding)
drawLabel
public void drawLabel(java.lang.String text,
Bitmap image,
Rect rect,
int alignment,
int indexAccel)
drawLabel
public void drawLabel(java.lang.String text,
Bitmap image,
Rect rect,
int alignment)
drawLabel
public void drawLabel(java.lang.String text,
Bitmap image,
Rect rect)
drawLabel
public void drawLabel(java.lang.String text,
Rect rect,
int alignment,
int indexAccel)
drawLabel
public void drawLabel(java.lang.String text,
Rect rect,
int alignment)
drawLabel
public void drawLabel(java.lang.String text,
Rect rect)
blit
public boolean blit(int xdest,
int ydest,
int width,
int height,
DC source,
int xsrc,
int ysrc,
int rop,
boolean useMask,
int xsrcMask,
int ysrcMask)
blit
public boolean blit(int xdest,
int ydest,
int width,
int height,
DC source,
int xsrc,
int ysrc,
int rop,
boolean useMask,
int xsrcMask)
blit
public boolean blit(int xdest,
int ydest,
int width,
int height,
DC source,
int xsrc,
int ysrc,
int rop,
boolean useMask)
blit
public boolean blit(int xdest,
int ydest,
int width,
int height,
DC source,
int xsrc,
int ysrc,
int rop)
blit
public boolean blit(int xdest,
int ydest,
int width,
int height,
DC source,
int xsrc,
int ysrc)
blit
public boolean blit(Point destPt,
Size sz,
DC source,
Point srcPt,
int rop,
boolean useMask,
Point srcPtMask)
blit
public boolean blit(Point destPt,
Size sz,
DC source,
Point srcPt,
int rop,
boolean useMask)
blit
public boolean blit(Point destPt,
Size sz,
DC source,
Point srcPt,
int rop)
blit
public boolean blit(Point destPt,
Size sz,
DC source,
Point srcPt)
drawSpline
public void drawSpline(int x1,
int y1,
int x2,
int y2,
int x3,
int y3)
clear
public void clear()
startDoc
public boolean startDoc(java.lang.String message)
endDoc
public void endDoc()
startPage
public void startPage()
endPage
public void endPage()
setFont
public void setFont(Font font)
setPen
public void setPen(Pen pen)
setBrush
public void setBrush(Brush brush)
setBackground
public void setBackground(Brush brush)
setBackgroundMode
public void setBackgroundMode(int mode)
setPalette
public void setPalette(Palette palette)
setClippingRegion
public void setClippingRegion(int x,
int y,
int width,
int height)
setClippingRegion
public void setClippingRegion(Point pt,
Size sz)
setClippingRegion
public void setClippingRegion(Rect rect)
setClippingRegion
public void setClippingRegion(Region region)
destroyClippingRegion
public void destroyClippingRegion()
getClippingBox
public void getClippingBox(Rect rect)
getCharHeight
public int getCharHeight()
getCharWidth
public int getCharWidth()
getTextExtent
public void getTextExtent(java.lang.String string,
int[] x,
int[] y,
int[] descent,
int[] externalLeading,
Font theFont)
getTextExtent
public void getTextExtent(java.lang.String string,
int[] x,
int[] y,
int[] descent,
int[] externalLeading)
getTextExtent
public void getTextExtent(java.lang.String string,
int[] x,
int[] y,
int[] descent)
getTextExtent
public void getTextExtent(java.lang.String string,
int[] x,
int[] y)
getMultiLineTextExtent
public void getMultiLineTextExtent(java.lang.String text,
int[] width,
int[] height,
int[] heightLine,
Font font)
getMultiLineTextExtent
public void getMultiLineTextExtent(java.lang.String text,
int[] width,
int[] height,
int[] heightLine)
getMultiLineTextExtent
public void getMultiLineTextExtent(java.lang.String text,
int[] width,
int[] height)
getPartialTextExtents
public int[] getPartialTextExtents(java.lang.String text)
getSize
public Size getSize()
getSizeMM
public Size getSizeMM()
deviceToLogicalX
public int deviceToLogicalX(int x)
deviceToLogicalY
public int deviceToLogicalY(int y)
deviceToLogicalXRel
public int deviceToLogicalXRel(int x)
deviceToLogicalYRel
public int deviceToLogicalYRel(int y)
logicalToDeviceX
public int logicalToDeviceX(int x)
logicalToDeviceY
public int logicalToDeviceY(int y)
logicalToDeviceXRel
public int logicalToDeviceXRel(int x)
logicalToDeviceYRel
public int logicalToDeviceYRel(int y)
canDrawBitmap
public boolean canDrawBitmap()
canGetTextExtent
public boolean canGetTextExtent()
getDepth
public int getDepth()
getPPI
public Size getPPI()
ok
public boolean ok()
getBackgroundMode
public int getBackgroundMode()
getBackground
public Brush getBackground()
getBrush
public Brush getBrush()
getFont
public Font getFont()
getPen
public Pen getPen()
getTextForeground
public Colour getTextForeground()
getTextBackground
public Colour getTextBackground()
setTextForeground
public void setTextForeground(Colour colour)
setTextBackground
public void setTextBackground(Colour colour)
getMapMode
public int getMapMode()
setMapMode
public void setMapMode(int mode)
getUserScale
public void getUserScale(double[] x,
double[] y)
setUserScale
public void setUserScale(double x,
double y)
getLogicalScale
public void getLogicalScale(double[] x,
double[] y)
setLogicalScale
public void setLogicalScale(double x,
double y)
getLogicalOrigin
public Point getLogicalOrigin()
setLogicalOrigin
public void setLogicalOrigin(int x,
int y)
getDeviceOrigin
public Point getDeviceOrigin()
setDeviceOrigin
public void setDeviceOrigin(int x,
int y)
computeScaleAndOrigin
public void computeScaleAndOrigin()
setAxisOrientation
public void setAxisOrientation(boolean xLeftRight,
boolean yBottomUp)
getLogicalFunction
public int getLogicalFunction()
setLogicalFunction
public void setLogicalFunction(int function)
calcBoundingBox
public void calcBoundingBox(int x,
int y)
resetBoundingBox
public void resetBoundingBox()
minX
public int minX()
maxX
public int maxX()
minY
public int minY()
maxY
public int maxY()
© 2006 Amit G Mendapara.