// Path: lib/src/main/java/org/xclcharts/common/SysinfoHelper.java
// public class SysinfoHelper {
// 	
// 	private static SysinfoHelper instance = null;
// 	
// 	public SysinfoHelper()
// 	{	
// 	}
// 	
// 	public static synchronized SysinfoHelper getInstance(){
// 		if(instance == null){
// 			instance = new SysinfoHelper();
// 		}
// 		return instance;
// 	}
// 	
// 	
// 	/**
// 	 * android自3.0引入了硬件加速，即使用GPU进行绘图.但低版本的Android不支持这个类，
// 	 * 为了兼容性，在低版本中将其硬件加速相关的代码设为不可用。
// 	 * @return 系统是否包含硬件加速类
// 	 */
// 	public boolean supportHardwareAccelerated()
// 	{
// 		boolean result = true;
// 		int currentVersion = android.os.Build.VERSION.SDK_INT;	
// 		//android 3.0 == android.os.Build.VERSION_CODES.HONEYCOMB
// 		if(currentVersion < 11) result = false;
// 		return result;
// 	}
// 
// }


import org.xclcharts.common.SysinfoHelper;
import android.annotation.SuppressLint;
import android.content.Context;
import android.graphics.Canvas;
import android.util.AttributeSet;
import android.util.Log;
import android.view.View;
/**
 * Copyright 2014  XCL-Charts
 * 
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 *     http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 * 	
 * @Project XCL-Charts 
 * @Description Android图表基类库
 * @author XiongChuanLiang<br/>(xcl_168@aliyun.com)
 * @license http://www.apache.org/licenses/  Apache v2 License
 * @version 1.7
 */
package org.xclcharts.view;




/**
 * @ClassName GraphicalView
 * @Description  XCL-Charts图表的View基类
 * @author XiongChuanLiang<br/>(xcl_168@aliyun.com) QQ群: 374780627
 */
@SuppressLint("NewApi")
public abstract class GraphicalView extends View {
	
	 private String TAG = "GraphicalView";	


	 public GraphicalView(Context context) {
		super(context);
		// TODO Auto-generated constructor stub
		initChartView();
		 
	 }

	 public GraphicalView(Context context, AttributeSet attrs){   
// Path: lib/src/main/java/org/xclcharts/common/SysinfoHelper.java
// public class SysinfoHelper {
// 	
// 	private static SysinfoHelper instance = null;
// 	
// 	public SysinfoHelper()
// 	{	
// 	}
// 	
// 	public static synchronized SysinfoHelper getInstance(){
// 		if(instance == null){
// 			instance = new SysinfoHelper();
// 		}
// 		return instance;
// 	}
// 	
// 	
// 	/**
// 	 * android自3.0引入了硬件加速，即使用GPU进行绘图.但低版本的Android不支持这个类，
// 	 * 为了兼容性，在低版本中将其硬件加速相关的代码设为不可用。
// 	 * @return 系统是否包含硬件加速类
// 	 */
// 	public boolean supportHardwareAccelerated()
// 	{
// 		boolean result = true;
// 		int currentVersion = android.os.Build.VERSION.SDK_INT;	
// 		//android 3.0 == android.os.Build.VERSION_CODES.HONEYCOMB
// 		if(currentVersion < 11) result = false;
// 		return result;
// 	}
// 
// }


// Path: lib/src/main/java/org/xclcharts/view/GraphicalView.java
import org.xclcharts.common.SysinfoHelper;
import android.annotation.SuppressLint;
import android.content.Context;
import android.graphics.Canvas;
import android.util.AttributeSet;
import android.util.Log;
import android.view.View;

/**
 * Copyright 2014  XCL-Charts
 * 
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 *     http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 * 	
 * @Project XCL-Charts 
 * @Description Android图表基类库
 * @author XiongChuanLiang<br/>(xcl_168@aliyun.com)
 * @license http://www.apache.org/licenses/  Apache v2 License
 * @version 1.7
 */
package org.xclcharts.view;




/**
 * @ClassName GraphicalView
 * @Description  XCL-Charts图表的View基类
 * @author XiongChuanLiang<br/>(xcl_168@aliyun.com) QQ群: 374780627
 */
@SuppressLint("NewApi")
public abstract class GraphicalView extends View {
	
	 private String TAG = "GraphicalView";	


	 public GraphicalView(Context context) {
		super(context);
		// TODO Auto-generated constructor stub
		initChartView();
		 
	 }

	 public GraphicalView(Context context, AttributeSet attrs){   
        super(context, attrs);   