Package icyllis.arc3d.sketch
Class NoDrawCanvas
java.lang.Object
icyllis.arc3d.sketch.Canvas
icyllis.arc3d.sketch.NoDrawCanvas
- All Implemented Interfaces:
AutoCloseable
- Direct Known Subclasses:
NWayCanvas
-
Nested Class Summary
Nested classes/interfaces inherited from class icyllis.arc3d.sketch.Canvas
Canvas.PointMode, Canvas.SaveLayerFlag, Canvas.SrcRectConstraint -
Field Summary
Fields inherited from class icyllis.arc3d.sketch.Canvas
F16_COLOR_TYPE_SAVE_LAYER_FLAG, FULL_LAYER_SAVE_LAYER_STRATEGY, INIT_WITH_PREVIOUS_SAVE_LAYER_FLAG, NO_LAYER_SAVE_LAYER_STRATEGY, POINT_MODE_LINES, POINT_MODE_POINTS, POINT_MODE_POLYGON, QUAD_AA_FLAG_BOTTOM, QUAD_AA_FLAG_LEFT, QUAD_AA_FLAG_RIGHT, QUAD_AA_FLAG_TOP, QUAD_AA_FLAGS_ALL, QUAD_AA_FLAGS_NONE, SRC_RECT_CONSTRAINT_FAST, SRC_RECT_CONSTRAINT_STRICT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidonDrawArc(float cx, float cy, float radius, float startAngle, float sweepAngle, int cap, float width, Paint paint) protected voidonDrawBlurredRRect(RRect rr, Paint paint, float blurRadius, float noiseAlpha) protected voidonDrawChord(float cx, float cy, float radius, float startAngle, float sweepAngle, Paint paint) protected voidonDrawEdgeAAQuad(Rect2fc rect, float[] clip, int edgeFlags, Paint paint) protected voidonDrawEllipse(float cx, float cy, float rx, float ry, Paint paint) protected voidonDrawGlyphRunList(GlyphRunList glyphRunList, Paint paint) protected voidonDrawImageRect(@RawPtr Image image, Rect2fc src, Rect2fc dst, SamplingOptions sampling, Paint paint, int constraint) protected voidonDrawLine(float x0, float y0, float x1, float y1, int cap, float width, Paint paint) protected voidonDrawPaint(Paint paint) protected voidprotected voidonDrawPoints(int mode, float[] pts, int offset, int count, Paint paint) protected voidonDrawRect(Rect2fc r, Paint paint) protected voidonDrawRRect(RRect rr, Paint paint) protected voidonDrawTextBlob(TextBlob blob, float originX, float originY, Paint paint) protected voidonDrawVertices(Vertices vertices, Blender blender, Paint paint) Methods inherited from class icyllis.arc3d.sketch.Canvas
clear, clear, clipRect, clipRect, clipRect, clipRect, clipRect, clipRect, clipRect, clipRect, clipRect, close, concat, concat, concat, didConcat, didRestore, didScale, didSetMatrix, didTranslate, discard, drawArc, drawArc, drawBlurredRRect, drawChord, drawCircle, drawColor, drawColor, drawColor, drawColor, drawEdgeAAQuad, drawEllipse, drawGlyphs, drawImage, drawImageRect, drawImageRect, drawLine, drawLine, drawPaint, drawPie, drawPoint, drawPoint, drawPoints, drawRect, drawRect, drawRect, drawRRect, drawTextBlob, drawVertices, getBaseLayerHeight, getBaseLayerWidth, getCommandContext, getDeviceClipBounds, getImageInfo, getLocalClipBounds, getLocalToDevice, getLocalToDevice, getRootDevice, getSaveCount, getSaveLayerStrategy, getSurface, isClipEmpty, isClipRect, makeSurface, onClipRect, onDiscard, onGetImageInfo, onNewSurface, quickReject, quickReject, resetMatrix, restore, restoreToCount, rotate, rotate, save, saveLayer, saveLayer, saveLayer, saveLayer, saveLayerAlpha, saveLayerAlpha, scale, scale, scale, setMatrix, shear, shear, translate, translate, willRestore, willSave
-
Constructor Details
-
NoDrawCanvas
public NoDrawCanvas(int width, int height)
-
-
Method Details
-
onDrawPaint
- Overrides:
onDrawPaintin classCanvas
-
onDrawPoints
- Overrides:
onDrawPointsin classCanvas
-
onDrawLine
protected void onDrawLine(float x0, float y0, float x1, float y1, int cap, float width, Paint paint) - Overrides:
onDrawLinein classCanvas
-
onDrawRect
- Overrides:
onDrawRectin classCanvas
-
onDrawRRect
- Overrides:
onDrawRRectin classCanvas
-
onDrawEllipse
- Overrides:
onDrawEllipsein classCanvas
-
onDrawArc
protected void onDrawArc(float cx, float cy, float radius, float startAngle, float sweepAngle, int cap, float width, Paint paint) -
onDrawPie
protected void onDrawPie(float cx, float cy, float radius, float startAngle, float sweepAngle, Paint paint) -
onDrawChord
protected void onDrawChord(float cx, float cy, float radius, float startAngle, float sweepAngle, Paint paint) - Overrides:
onDrawChordin classCanvas
-
onDrawImageRect
protected void onDrawImageRect(@RawPtr @RawPtr Image image, Rect2fc src, Rect2fc dst, SamplingOptions sampling, Paint paint, int constraint) - Overrides:
onDrawImageRectin classCanvas
-
onDrawTextBlob
- Overrides:
onDrawTextBlobin classCanvas
-
onDrawGlyphRunList
- Overrides:
onDrawGlyphRunListin classCanvas
-
onDrawVertices
- Overrides:
onDrawVerticesin classCanvas
-
onDrawEdgeAAQuad
- Overrides:
onDrawEdgeAAQuadin classCanvas
-
onDrawBlurredRRect
- Overrides:
onDrawBlurredRRectin classCanvas
-