public class GraphicContextWrapper extends java.lang.Object implements IGraphicContext
Constructor and Description |
---|
GraphicContextWrapper(IGraphicContext original) |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
void |
clearRectangle(int x,
int y,
int width,
int height) |
void |
clearRectangle(Rectangle bounds) |
void |
copyArea(int sourceX,
int sourceY,
int sourceWidth,
int sourceHeight,
int destinationX,
int destinationY) |
void |
drawArc(int x,
int y,
int width,
int height,
int startAngle,
int arcAngle) |
void |
drawImage(IImageConstant image) |
void |
drawImage(IImageConstant image,
int x,
int y) |
void |
drawImage(IImageConstant image,
int x,
int y,
int width,
int height) |
void |
drawImage(IImageConstant image,
int sourceX,
int sourceY,
int sourceWidth,
int sourceHeight,
int destinationX,
int destinationY,
int destinationWidth,
int destinationHeight) |
void |
drawLine(int x1,
int y1,
int x2,
int y2) |
void |
drawOval(int x,
int y,
int width,
int height) |
void |
drawPoint(int x,
int y) |
void |
drawPolygon(Point[] points) |
void |
drawPolyline(Point[] points) |
void |
drawRectangle(int x,
int y,
int width,
int height) |
void |
drawText(java.lang.String text,
int x,
int y) |
void |
fillArc(int x,
int y,
int width,
int height,
int startAngle,
int arcAngle) |
void |
fillOval(int x,
int y,
int width,
int height) |
void |
fillPolygon(Point[] points) |
void |
fillRectangle(int x,
int y,
int width,
int height) |
IColorConstant |
getBackgroundColor() |
Rectangle |
getBounds() |
IFontMetrics |
getFontMetrics() |
IColorConstant |
getForegroundColor() |
int |
getTextWidth(java.lang.String text) |
void |
setAntiAliasing(AntiAliasing antiAliasing) |
void |
setBackgroundColor(IColorConstant color) |
void |
setDashedLine(float[] pattern,
float offset) |
void |
setFontName(java.lang.String fontName) |
void |
setFontSize(int size) |
void |
setForegroundColor(IColorConstant color) |
void |
setLineCap(LineCap lineCap) |
void |
setLineJoin(LineJoin lineJoin) |
void |
setLineWidth(int width) |
void |
setSolidLine() |
void |
setTextAntiAliasing(AntiAliasing antiAliasing) |
void |
setTextMarkup(Markup markup) |
public GraphicContextWrapper(IGraphicContext original)
public void setSolidLine()
setSolidLine
in interface IGraphicContext
public void drawImage(IImageConstant image, int x, int y, int width, int height)
drawImage
in interface IGraphicContext
public void setAntiAliasing(AntiAliasing antiAliasing)
setAntiAliasing
in interface IGraphicContextCommon
public void drawImage(IImageConstant image, int x, int y)
drawImage
in interface IGraphicContextCommon
public void setTextAntiAliasing(AntiAliasing antiAliasing)
setTextAntiAliasing
in interface IGraphicContextCommon
public void drawImage(IImageConstant image)
drawImage
in interface IGraphicContext
public void setLineWidth(int width)
setLineWidth
in interface IGraphicContextCommon
public void setDashedLine(float[] pattern, float offset)
setDashedLine
in interface IGraphicContextCommon
public void setLineCap(LineCap lineCap)
setLineCap
in interface IGraphicContextCommon
public void setLineJoin(LineJoin lineJoin)
setLineJoin
in interface IGraphicContextCommon
public void setFontSize(int size)
setFontSize
in interface IGraphicContextCommon
public void setFontName(java.lang.String fontName)
setFontName
in interface IGraphicContextCommon
public void setTextMarkup(Markup markup)
setTextMarkup
in interface IGraphicContextCommon
public void setForegroundColor(IColorConstant color)
setForegroundColor
in interface IGraphicContextCommon
public void setBackgroundColor(IColorConstant color)
setBackgroundColor
in interface IGraphicContextCommon
public void clearRectangle(Rectangle bounds)
clearRectangle
in interface IGraphicContext
public void clear()
clear
in interface IGraphicContext
public void clearRectangle(int x, int y, int width, int height)
clearRectangle
in interface IGraphicContextCommon
public void drawPoint(int x, int y)
drawPoint
in interface IGraphicContextCommon
public void drawLine(int x1, int y1, int x2, int y2)
drawLine
in interface IGraphicContextCommon
public void drawRectangle(int x, int y, int width, int height)
drawRectangle
in interface IGraphicContextCommon
public void drawPolygon(Point[] points)
drawPolygon
in interface IGraphicContextCommon
public void drawPolyline(Point[] points)
drawPolyline
in interface IGraphicContextCommon
public void drawOval(int x, int y, int width, int height)
drawOval
in interface IGraphicContextCommon
public void drawArc(int x, int y, int width, int height, int startAngle, int arcAngle)
drawArc
in interface IGraphicContextCommon
public void fillRectangle(int x, int y, int width, int height)
fillRectangle
in interface IGraphicContextCommon
public void fillPolygon(Point[] points)
fillPolygon
in interface IGraphicContextCommon
public void fillOval(int x, int y, int width, int height)
fillOval
in interface IGraphicContextCommon
public void fillArc(int x, int y, int width, int height, int startAngle, int arcAngle)
fillArc
in interface IGraphicContextCommon
public void drawText(java.lang.String text, int x, int y)
drawText
in interface IGraphicContextCommon
public void copyArea(int sourceX, int sourceY, int sourceWidth, int sourceHeight, int destinationX, int destinationY)
copyArea
in interface IGraphicContextCommon
public void drawImage(IImageConstant image, int sourceX, int sourceY, int sourceWidth, int sourceHeight, int destinationX, int destinationY, int destinationWidth, int destinationHeight)
drawImage
in interface IGraphicContextCommon
public Rectangle getBounds()
getBounds
in interface IGraphicContextCommon
public IColorConstant getForegroundColor()
getForegroundColor
in interface IGraphicContextCommon
public IColorConstant getBackgroundColor()
getBackgroundColor
in interface IGraphicContextCommon
public IFontMetrics getFontMetrics()
getFontMetrics
in interface IGraphicContextCommon
public int getTextWidth(java.lang.String text)
getTextWidth
in interface IGraphicContextCommon
Siehe auch Jowidgets Nutzerhandbuch