1package org.skia.jetski;
4 private long mNativeInstance;
7 mNativeInstance = nCreate();
14 nRelease(mNativeInstance);
19 nMoveTo(mNativeInstance,
x,
y);
23 nLineTo(mNativeInstance,
x,
y);
26 public void quadTo(
float x1,
float y1,
float x2,
float y2) {
27 nQuadTo(mNativeInstance, x1, y1, x2, y2);
29 public void conicTo(
float x1,
float y1,
float x2,
float y2,
float w) {
30 nConicTo(mNativeInstance, x1, y1, x2, y2,
w);
32 public void cubicTo(
float x1,
float y1,
float x2,
float y2,
float x3,
float y3) {
33 nCubicTo(mNativeInstance, x1, y1, x2, y2, x3, y3);
37 nClose(mNativeInstance);
48 this.nativeInt = nativeInt;
53 nSetFillType(mNativeInstance, fillType.
nativeInt);
61 return new Path(nMake(mNativeInstance));
67 private static native
long nCreate();
68 private static native
void nRelease(
long nativeInstance);
69 private static native
void nMoveTo(
long mNativeInstance,
float x,
float y);
70 private static native
void nLineTo(
long mNativeInstance,
float x,
float y);
71 private static native
void nQuadTo(
long mNativeInstance,
float x1,
float y1,
float x2,
float y2);
72 private static native
void nConicTo(
long mNativeInstance,
float x1,
float y1,
float x2,
float y2,
float w);
73 private static native
void nCubicTo(
long mNativeInstance,
float x1,
float y1,
float x2,
float y2,
float x3,
float y3);
74 private static native
void nClose(
long mNativeInstance);
75 private static native
void nSetFillType(
long mNativeInstance,
int fillType);
76 private static native
long nMake(
long mNativeInstance);
void lineTo(float x, float y)
void conicTo(float x1, float y1, float x2, float y2, float w)
void quadTo(float x1, float y1, float x2, float y2)
void setFillType(FillType fillType)
void moveTo(float x, float y)
void cubicTo(float x1, float y1, float x2, float y2, float x3, float y3)