##################### F2Chart Begin ###################################
| 37 | |
| 38 | //###################### F2Chart Begin ################################### |
| 39 | static 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 | |
| 46 | static jint SetChartCanvas(JNIEnv *env, jclass clazz, jlong chart, jlong view, jstring requestFrameHandleId) { |
| 47 | xg::XChart *_chart = reinterpret_cast<xg::XChart *>(chart); |
nothing calls this directly
no test coverage detected