public class DibujarGraficoEstadisticos
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private com.github.mikephil.charting.charts.CombinedChart |
bubbleChart |
(package private) int |
cant |
(package private) android.content.Context |
context |
private com.github.mikephil.charting.charts.CombinedChart |
mChart |
private DatosDeUso |
mDatosDeUso |
protected java.lang.String[] |
mDia |
protected java.lang.String[] |
mMonths |
private android.content.SharedPreferences |
mSharedPrefsDefault |
protected java.lang.String[] |
mTurno |
private com.github.mikephil.charting.charts.PieChart |
pieChart |
Constructor and Description |
---|
DibujarGraficoEstadisticos(android.content.Context context,
DatosDeUso datosDeUso)
Constructor
|
Modifier and Type | Method and Description |
---|---|
private void |
cargarDias() |
private void |
cargarGrupos(int size) |
private java.util.ArrayList<java.lang.Integer> |
colores()
metodo encargado de generar los colores de
|
java.util.ArrayList<com.github.mikephil.charting.data.PieEntry> |
devolverDatos() |
private void |
dibujarCombinedChart(com.github.mikephil.charting.charts.CombinedChart mCombineChart,
int posd)
este metodo se encarga de dibujar los graficos estadisticos de manera combinada
|
private void |
dibujarPieChar() |
void |
ejesXCombinedChart(com.github.mikephil.charting.charts.CombinedChart mCombineChart,
com.github.mikephil.charting.data.CombinedData data,
float mAxisMinimun,
int tipo) |
void |
ejesYCombinedChart(com.github.mikephil.charting.charts.CombinedChart mCombineChart,
com.github.mikephil.charting.data.CombinedData data,
float mAxisminimum,
boolean isbubbleChart)
metodo encargado de dibujar el eje de las y
|
private com.github.mikephil.charting.data.BarData |
generateBarData()
metodo encargado de devolver valores del grafico de barra
|
protected com.github.mikephil.charting.data.BubbleData |
generateBubbleData() |
private com.github.mikephil.charting.data.LineData |
generateLineData() |
private java.util.ArrayList<com.github.mikephil.charting.data.BarEntry> |
getBarEnteries(java.util.ArrayList<com.github.mikephil.charting.data.BarEntry> entries) |
private int[] |
getColors()
colores del barchar
|
com.github.mikephil.charting.charts.CombinedChart |
getCombinedChart(int tipo) |
private java.util.ArrayList<com.github.mikephil.charting.data.Entry> |
getLineEntriesData(java.util.ArrayList<com.github.mikephil.charting.data.Entry> entries) |
com.github.mikephil.charting.charts.PieChart |
getPieChart() |
void |
mostrarLegend(com.github.mikephil.charting.charts.CombinedChart combinedChart,
java.lang.String[] mArray) |
private java.util.ArrayList<com.github.mikephil.charting.data.BubbleEntry> |
setBubbleEntries() |
private void |
setCombineChart(com.github.mikephil.charting.charts.CombinedChart mCombineChart)
este metodo se encarga de dibujar el fondo del del dibujo
|
void |
setLegend(com.github.mikephil.charting.charts.CombinedChart mCombineChart)
este metodo se encarga de escribir las etiquetas de informacion
|
int cant
android.content.Context context
private com.github.mikephil.charting.charts.CombinedChart mChart
private com.github.mikephil.charting.charts.PieChart pieChart
protected java.lang.String[] mMonths
protected java.lang.String[] mTurno
protected java.lang.String[] mDia
private DatosDeUso mDatosDeUso
private com.github.mikephil.charting.charts.CombinedChart bubbleChart
private android.content.SharedPreferences mSharedPrefsDefault
public DibujarGraficoEstadisticos(android.content.Context context, DatosDeUso datosDeUso)
context
- contexto de donde viene para crear el mDatosDeUsodatosDeUso
- datos de donde voy a tomar la informacionprivate void dibujarCombinedChart(com.github.mikephil.charting.charts.CombinedChart mCombineChart, int posd)
mCombineChart
- parametro encargado de recibir el grafico a dibujarposd
- metodo encargado de dibujar el tipo de graficoprivate void setCombineChart(com.github.mikephil.charting.charts.CombinedChart mCombineChart)
mCombineChart
- grafico combinado a modificarpublic void setLegend(com.github.mikephil.charting.charts.CombinedChart mCombineChart)
mCombineChart
- grafico combinado donde se van a poner las etiquetaspublic void ejesYCombinedChart(com.github.mikephil.charting.charts.CombinedChart mCombineChart, com.github.mikephil.charting.data.CombinedData data, float mAxisminimum, boolean isbubbleChart)
mCombineChart
- grafico combinadodata
- datos con los que se va a llenar el graficomAxisminimum
- eje de las abcisas minimoisbubbleChart
- pregunto si es grafico de burbuja o nopublic void ejesXCombinedChart(com.github.mikephil.charting.charts.CombinedChart mCombineChart, com.github.mikephil.charting.data.CombinedData data, float mAxisMinimun, int tipo)
private com.github.mikephil.charting.data.LineData generateLineData()
private java.util.ArrayList<com.github.mikephil.charting.data.Entry> getLineEntriesData(java.util.ArrayList<com.github.mikephil.charting.data.Entry> entries)
entries
- private com.github.mikephil.charting.data.BarData generateBarData()
private java.util.ArrayList<com.github.mikephil.charting.data.BarEntry> getBarEnteries(java.util.ArrayList<com.github.mikephil.charting.data.BarEntry> entries)
entries
- public com.github.mikephil.charting.charts.CombinedChart getCombinedChart(int tipo)
protected com.github.mikephil.charting.data.BubbleData generateBubbleData()
private java.util.ArrayList<com.github.mikephil.charting.data.BubbleEntry> setBubbleEntries()
private void dibujarPieChar()
public java.util.ArrayList<com.github.mikephil.charting.data.PieEntry> devolverDatos()
public com.github.mikephil.charting.charts.PieChart getPieChart()
private void cargarGrupos(int size)
private void cargarDias()
private java.util.ArrayList<java.lang.Integer> colores()
private int[] getColors()
public void mostrarLegend(com.github.mikephil.charting.charts.CombinedChart combinedChart, java.lang.String[] mArray)