MCPcopy Create free account
hub / github.com/antvis/F2Native / CreateNativeChart

Function CreateNativeChart

core/android/F2NativeJNI.cpp:39–44  ·  view source on GitHub ↗

##################### F2Chart Begin ###################################

Source from the content-addressed store, hash-verified

37
38//###################### F2Chart Begin ###################################
39static jlong CreateNativeChart(JNIEnv *env, jclass clazz, jstring name, jdouble width, jdouble height, jdouble ratio) {
40 std::string _name = JavaStringToString(env, name);
41 F2_LOG_I("#CreateNativeChart", "create NativeChart:%s", _name.data());
42 xg::XChart *chart = new xg::XChart(_name, width, height, ratio);
43 return reinterpret_cast<jlong>(chart);
44}
45
46static jint SetChartCanvas(JNIEnv *env, jclass clazz, jlong chart, jlong view, jstring requestFrameHandleId) {
47 xg::XChart *_chart = reinterpret_cast<xg::XChart *>(chart);

Callers

nothing calls this directly

Calls 1

JavaStringToStringFunction · 0.85

Tested by

no test coverage detected