public abstract class WCGraphicsContext
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
COMPOSITE_CLEAR |
static int |
COMPOSITE_COPY |
static int |
COMPOSITE_DESTINATION_ATOP |
static int |
COMPOSITE_DESTINATION_IN |
static int |
COMPOSITE_DESTINATION_OUT |
static int |
COMPOSITE_DESTINATION_OVER |
static int |
COMPOSITE_HIGHLIGHT |
static int |
COMPOSITE_PLUS_DARKER |
static int |
COMPOSITE_PLUS_LIGHTER |
static int |
COMPOSITE_SOURCE_ATOP |
static int |
COMPOSITE_SOURCE_IN |
static int |
COMPOSITE_SOURCE_OUT |
static int |
COMPOSITE_SOURCE_OVER |
static int |
COMPOSITE_XOR |
Constructor and Description |
---|
WCGraphicsContext() |
Modifier and Type | Method and Description |
---|---|
abstract void |
beginTransparencyLayer(float opacity) |
abstract void |
clearRect(float x,
float y,
float w,
float h) |
abstract void |
concatTransform(WCTransform t) |
abstract WCGradient |
createLinearGradient(WCPoint p1,
WCPoint p2) |
abstract WCGradient |
createRadialGradient(WCPoint p1,
float r1,
WCPoint p2,
float r2) |
abstract void |
dispose() |
abstract void |
drawBitmapImage(java.nio.ByteBuffer image,
int x,
int y,
int w,
int h) |
abstract void |
drawEllipse(int x,
int y,
int w,
int h) |
abstract void |
drawFocusRing(int x,
int y,
int w,
int h,
int rgba) |
abstract void |
drawIcon(WCIcon icon,
int x,
int y) |
abstract void |
drawImage(WCImage img,
float dstx,
float dsty,
float dstw,
float dsth,
float srcx,
float srcy,
float srcw,
float srch) |
abstract void |
drawLine(int x0,
int y0,
int x1,
int y1) |
abstract void |
drawPattern(WCImage texture,
WCRectangle srcRect,
WCTransform patternTransform,
WCPoint phase,
WCRectangle destRect) |
abstract void |
drawPolygon(WCPath path,
boolean shouldAntialias) |
abstract void |
drawRect(int x,
int y,
int w,
int h) |
abstract void |
drawScrollbar(ScrollBarTheme theme,
Ref widget,
int x,
int y,
int pressedPart,
int hoveredPart) |
abstract void |
drawString(WCFont f,
int[] glyphs,
float[] advances,
float x,
float y) |
abstract void |
drawString(WCFont f,
java.lang.String str,
boolean rtl,
int from,
int to,
float x,
float y) |
abstract void |
drawWidget(RenderTheme theme,
Ref widget,
int x,
int y) |
abstract void |
endTransparencyLayer() |
abstract void |
fillPath(WCPath path) |
abstract void |
fillRect(float x,
float y,
float w,
float h,
java.lang.Integer rgba) |
abstract void |
fillRoundedRect(float x,
float y,
float w,
float h,
float topLeftW,
float topLeftH,
float topRightW,
float topRightH,
float bottomLeftW,
float bottomLeftH,
float bottomRightW,
float bottomRightH,
int rgba) |
abstract void |
flush() |
abstract float |
getAlpha() |
abstract WCRectangle |
getClip() |
abstract int |
getFontSmoothingType() |
abstract WCImage |
getImage() |
abstract java.lang.Object |
getPlatformGraphics() |
abstract WCTransform |
getTransform() |
abstract void |
restoreState() |
abstract void |
rotate(float radians) |
abstract void |
saveState() |
abstract void |
scale(float sx,
float sy) |
abstract void |
setAlpha(float alpha) |
abstract void |
setClip(int cx,
int cy,
int cw,
int ch) |
abstract void |
setClip(WCPath path,
boolean isOut) |
abstract void |
setClip(WCRectangle clip) |
abstract void |
setComposite(int composite) |
abstract void |
setFillColor(int rgba) |
abstract void |
setFillGradient(WCGradient gradient) |
abstract void |
setFontSmoothingType(int fontSmoothingType) |
abstract void |
setLineCap(int lineCap) |
abstract void |
setLineDash(float offset,
float... sizes) |
abstract void |
setLineJoin(int lineJoin) |
abstract void |
setMiterLimit(float miterLimit) |
abstract void |
setPerspectiveTransform(WCTransform t) |
abstract void |
setShadow(float dx,
float dy,
float blur,
int color) |
abstract void |
setStrokeColor(int rgba) |
abstract void |
setStrokeGradient(WCGradient gradient) |
abstract void |
setStrokeStyle(int style) |
abstract void |
setStrokeWidth(float width) |
abstract void |
setTextMode(boolean fill,
boolean stroke,
boolean clip) |
abstract void |
setTransform(WCTransform t) |
abstract void |
strokeArc(int x,
int y,
int w,
int h,
int startAngle,
int angleSpan) |
abstract void |
strokePath(WCPath path) |
abstract void |
strokeRect(float x,
float y,
float w,
float h,
float lineWidth) |
abstract void |
translate(float x,
float y) |
public static final int COMPOSITE_CLEAR
public static final int COMPOSITE_COPY
public static final int COMPOSITE_SOURCE_OVER
public static final int COMPOSITE_SOURCE_IN
public static final int COMPOSITE_SOURCE_OUT
public static final int COMPOSITE_SOURCE_ATOP
public static final int COMPOSITE_DESTINATION_OVER
public static final int COMPOSITE_DESTINATION_IN
public static final int COMPOSITE_DESTINATION_OUT
public static final int COMPOSITE_DESTINATION_ATOP
public static final int COMPOSITE_XOR
public static final int COMPOSITE_PLUS_DARKER
public static final int COMPOSITE_HIGHLIGHT
public static final int COMPOSITE_PLUS_LIGHTER
public abstract void fillRect(float x, float y, float w, float h, java.lang.Integer rgba)
public abstract void clearRect(float x, float y, float w, float h)
public abstract void setFillColor(int rgba)
public abstract void setFillGradient(WCGradient gradient)
public abstract void fillRoundedRect(float x, float y, float w, float h, float topLeftW, float topLeftH, float topRightW, float topRightH, float bottomLeftW, float bottomLeftH, float bottomRightW, float bottomRightH, int rgba)
public abstract void setTextMode(boolean fill, boolean stroke, boolean clip)
public abstract void setFontSmoothingType(int fontSmoothingType)
public abstract int getFontSmoothingType()
public abstract void setStrokeStyle(int style)
public abstract void setStrokeColor(int rgba)
public abstract void setStrokeWidth(float width)
public abstract void setStrokeGradient(WCGradient gradient)
public abstract void setLineDash(float offset, float... sizes)
public abstract void setLineCap(int lineCap)
public abstract void setLineJoin(int lineJoin)
public abstract void setMiterLimit(float miterLimit)
public abstract void drawPolygon(WCPath path, boolean shouldAntialias)
public abstract void drawLine(int x0, int y0, int x1, int y1)
public abstract void drawImage(WCImage img, float dstx, float dsty, float dstw, float dsth, float srcx, float srcy, float srcw, float srch)
public abstract void drawIcon(WCIcon icon, int x, int y)
public abstract void drawPattern(WCImage texture, WCRectangle srcRect, WCTransform patternTransform, WCPoint phase, WCRectangle destRect)
public abstract void drawBitmapImage(java.nio.ByteBuffer image, int x, int y, int w, int h)
public abstract void translate(float x, float y)
public abstract void scale(float sx, float sy)
public abstract void rotate(float radians)
public abstract void setPerspectiveTransform(WCTransform t)
public abstract void setTransform(WCTransform t)
public abstract WCTransform getTransform()
public abstract void concatTransform(WCTransform t)
public abstract void saveState()
public abstract void restoreState()
public abstract void setClip(WCPath path, boolean isOut)
public abstract void setClip(int cx, int cy, int cw, int ch)
public abstract void setClip(WCRectangle clip)
public abstract WCRectangle getClip()
public abstract void drawRect(int x, int y, int w, int h)
public abstract void setComposite(int composite)
public abstract void strokeArc(int x, int y, int w, int h, int startAngle, int angleSpan)
public abstract void drawEllipse(int x, int y, int w, int h)
public abstract void drawFocusRing(int x, int y, int w, int h, int rgba)
public abstract void setAlpha(float alpha)
public abstract float getAlpha()
public abstract void beginTransparencyLayer(float opacity)
public abstract void endTransparencyLayer()
public abstract void strokePath(WCPath path)
public abstract void strokeRect(float x, float y, float w, float h, float lineWidth)
public abstract void fillPath(WCPath path)
public abstract void setShadow(float dx, float dy, float blur, int color)
public abstract void drawString(WCFont f, java.lang.String str, boolean rtl, int from, int to, float x, float y)
public abstract void drawString(WCFont f, int[] glyphs, float[] advances, float x, float y)
public abstract void drawWidget(RenderTheme theme, Ref widget, int x, int y)
public abstract void drawScrollbar(ScrollBarTheme theme, Ref widget, int x, int y, int pressedPart, int hoveredPart)
public abstract WCImage getImage()
public abstract java.lang.Object getPlatformGraphics()
public abstract WCGradient createLinearGradient(WCPoint p1, WCPoint p2)
public abstract WCGradient createRadialGradient(WCPoint p1, float r1, WCPoint p2, float r2)
public abstract void flush()
public abstract void dispose()