Introduced meaningful package structure
This commit is contained in:
parent
f21692312d
commit
dc7d90e2fb
23 changed files with 72 additions and 26 deletions
|
@ -3,7 +3,7 @@
|
|||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent" >
|
||||
|
||||
<com.github.mikephil.charting.BarChart
|
||||
<com.github.mikephil.charting.charts.BarChart
|
||||
android:id="@+id/chart1"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent" >
|
||||
|
||||
<com.github.mikephil.charting.LineChart
|
||||
<com.github.mikephil.charting.charts.LineChart
|
||||
android:id="@+id/chart1"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
|
|
|
@ -11,13 +11,13 @@
|
|||
android:layout_weight="1"
|
||||
android:orientation="vertical" >
|
||||
|
||||
<com.github.mikephil.charting.LineChart
|
||||
<com.github.mikephil.charting.charts.LineChart
|
||||
android:id="@+id/barChart1"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1" />
|
||||
|
||||
<com.github.mikephil.charting.BarChart
|
||||
<com.github.mikephil.charting.charts.BarChart
|
||||
android:id="@+id/barChart2"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
|
@ -31,13 +31,13 @@
|
|||
android:layout_weight="1"
|
||||
android:orientation="vertical" >
|
||||
|
||||
<com.github.mikephil.charting.PieChart
|
||||
com.github.mikephil.charting.charts.PieChartieChart
|
||||
android:id="@+id/pieChart1"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1" />
|
||||
|
||||
<com.github.mikephil.charting.BarChart
|
||||
<com.github.mikephil.charting.charts.BarChart
|
||||
android:id="@+id/barChart4"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent" >
|
||||
|
||||
<com.github.mikephil.charting.PieChart
|
||||
<com.github.mikephil.charting.charts.PieChart
|
||||
android:id="@+id/chart1"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
|
||||
package com.github.mikephil.charting;
|
||||
package com.github.mikephil.charting.charts;
|
||||
|
||||
import android.content.Context;
|
||||
import android.graphics.Color;
|
||||
|
@ -11,6 +11,10 @@ import android.util.AttributeSet;
|
|||
|
||||
import java.util.ArrayList;
|
||||
|
||||
import com.github.mikephil.charting.data.DataSet;
|
||||
import com.github.mikephil.charting.data.Entry;
|
||||
import com.github.mikephil.charting.utils.ColorTemplate;
|
||||
|
||||
public class BarChart extends BarLineChartBase {
|
||||
|
||||
/** space indicator between the bars 0.1f == 10 % */
|
|
@ -1,4 +1,4 @@
|
|||
package com.github.mikephil.charting;
|
||||
package com.github.mikephil.charting.charts;
|
||||
|
||||
import android.content.Context;
|
||||
import android.graphics.Canvas;
|
||||
|
@ -16,6 +16,12 @@ import android.util.Log;
|
|||
import java.text.DecimalFormat;
|
||||
import java.util.ArrayList;
|
||||
|
||||
import com.github.mikephil.charting.data.Entry;
|
||||
import com.github.mikephil.charting.listener.BarLineChartTouchListener;
|
||||
import com.github.mikephil.charting.utils.Highlight;
|
||||
import com.github.mikephil.charting.utils.SelInfo;
|
||||
import com.github.mikephil.charting.utils.Utils;
|
||||
|
||||
/**
|
||||
* Baseclass of all LineChart and BarChart.
|
||||
*
|
|
@ -1,5 +1,5 @@
|
|||
|
||||
package com.github.mikephil.charting;
|
||||
package com.github.mikephil.charting.charts;
|
||||
|
||||
import android.content.Context;
|
||||
import android.graphics.Bitmap;
|
||||
|
@ -28,6 +28,15 @@ import java.io.FileOutputStream;
|
|||
import java.io.OutputStream;
|
||||
import java.util.ArrayList;
|
||||
|
||||
import com.github.mikephil.charting.data.ChartData;
|
||||
import com.github.mikephil.charting.data.DataSet;
|
||||
import com.github.mikephil.charting.data.Entry;
|
||||
import com.github.mikephil.charting.listener.OnChartValueSelectedListener;
|
||||
import com.github.mikephil.charting.utils.ColorTemplate;
|
||||
import com.github.mikephil.charting.utils.Highlight;
|
||||
import com.github.mikephil.charting.utils.SelInfo;
|
||||
import com.github.mikephil.charting.utils.Utils;
|
||||
|
||||
/**
|
||||
* Baseclass of all Chart-Views.
|
||||
*
|
|
@ -1,7 +1,12 @@
|
|||
package com.github.mikephil.charting;
|
||||
package com.github.mikephil.charting.charts;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
||||
import com.github.mikephil.charting.data.DataSet;
|
||||
import com.github.mikephil.charting.data.Entry;
|
||||
import com.github.mikephil.charting.listener.BarLineChartTouchListener;
|
||||
import com.github.mikephil.charting.utils.Utils;
|
||||
|
||||
import android.content.Context;
|
||||
import android.graphics.Color;
|
||||
import android.graphics.Matrix;
|
|
@ -1,5 +1,5 @@
|
|||
|
||||
package com.github.mikephil.charting;
|
||||
package com.github.mikephil.charting.charts;
|
||||
|
||||
import android.content.Context;
|
||||
import android.graphics.Canvas;
|
||||
|
@ -16,6 +16,11 @@ import android.view.MotionEvent;
|
|||
import java.text.DecimalFormat;
|
||||
import java.util.ArrayList;
|
||||
|
||||
import com.github.mikephil.charting.data.DataSet;
|
||||
import com.github.mikephil.charting.data.Entry;
|
||||
import com.github.mikephil.charting.listener.PieChartTouchListener;
|
||||
import com.github.mikephil.charting.utils.Utils;
|
||||
|
||||
/**
|
||||
* View that represents a pie chart.
|
||||
*
|
|
@ -1,4 +1,4 @@
|
|||
package com.github.mikephil.charting;
|
||||
package com.github.mikephil.charting.data;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package com.github.mikephil.charting;
|
||||
package com.github.mikephil.charting.data;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package com.github.mikephil.charting;
|
||||
package com.github.mikephil.charting.data;
|
||||
|
||||
public class Entry {
|
||||
|
|
@ -1,7 +1,9 @@
|
|||
package com.github.mikephil.charting;
|
||||
package com.github.mikephil.charting.data.filter;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
||||
import com.github.mikephil.charting.data.Entry;
|
||||
|
||||
/**
|
||||
* Implemented according to Wiki-Pseudocode {@link} http://en.wikipedia.org/wiki/Ramer<EFBFBD>Douglas<EFBFBD>Peucker_algorithm
|
||||
*
|
|
@ -1,4 +1,10 @@
|
|||
package com.github.mikephil.charting;
|
||||
package com.github.mikephil.charting.listener;
|
||||
|
||||
import com.github.mikephil.charting.charts.BarLineChartBase;
|
||||
import com.github.mikephil.charting.charts.LineChart;
|
||||
import com.github.mikephil.charting.data.ChartData;
|
||||
import com.github.mikephil.charting.data.Entry;
|
||||
import com.github.mikephil.charting.utils.Highlight;
|
||||
|
||||
import android.graphics.Matrix;
|
||||
import android.graphics.PointF;
|
|
@ -1,4 +1,4 @@
|
|||
package com.github.mikephil.charting;
|
||||
package com.github.mikephil.charting.listener;
|
||||
|
||||
import android.view.GestureDetector.SimpleOnGestureListener;
|
||||
import android.view.MotionEvent;
|
|
@ -1,4 +1,7 @@
|
|||
package com.github.mikephil.charting;
|
||||
package com.github.mikephil.charting.listener;
|
||||
|
||||
import com.github.mikephil.charting.data.Entry;
|
||||
import com.github.mikephil.charting.utils.Highlight;
|
||||
|
||||
public interface OnChartValueSelectedListener {
|
||||
|
|
@ -1,5 +1,8 @@
|
|||
|
||||
package com.github.mikephil.charting;
|
||||
package com.github.mikephil.charting.listener;
|
||||
|
||||
import com.github.mikephil.charting.charts.PieChart;
|
||||
import com.github.mikephil.charting.utils.Highlight;
|
||||
|
||||
import android.graphics.Matrix;
|
||||
import android.graphics.PointF;
|
|
@ -1,5 +1,5 @@
|
|||
|
||||
package com.github.mikephil.charting;
|
||||
package com.github.mikephil.charting.matrix;
|
||||
|
||||
/**
|
||||
* Simple 3D vector class. Handles basic vector math for 3D vectors.
|
|
@ -1,10 +1,13 @@
|
|||
|
||||
package com.github.mikephil.charting;
|
||||
package com.github.mikephil.charting.utils;
|
||||
|
||||
import android.content.Context;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
||||
import com.github.mikephil.charting.R;
|
||||
import com.github.mikephil.charting.R.color;
|
||||
|
||||
public class ColorTemplate {
|
||||
|
||||
/**
|
|
@ -1,5 +1,5 @@
|
|||
|
||||
package com.github.mikephil.charting;
|
||||
package com.github.mikephil.charting.utils;
|
||||
|
||||
/**
|
||||
* Contains information needed to determine the highlighted value.
|
|
@ -1,5 +1,5 @@
|
|||
|
||||
package com.github.mikephil.charting;
|
||||
package com.github.mikephil.charting.utils;
|
||||
|
||||
/**
|
||||
* Point encapsulating two double values.
|
|
@ -1,5 +1,5 @@
|
|||
|
||||
package com.github.mikephil.charting;
|
||||
package com.github.mikephil.charting.utils;
|
||||
|
||||
/**
|
||||
* Class that encapsulates information of a value that has been
|
|
@ -1,4 +1,4 @@
|
|||
package com.github.mikephil.charting;
|
||||
package com.github.mikephil.charting.utils;
|
||||
|
||||
import android.content.res.Resources;
|
||||
import android.util.DisplayMetrics;
|
Loading…
Add table
Reference in a new issue