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