Skip to content

Commit

Permalink
Remove redundant format color
Browse files Browse the repository at this point in the history
  • Loading branch information
ntvinhdev committed Sep 13, 2019
1 parent ca2710f commit ba7bdc5
Show file tree
Hide file tree
Showing 12 changed files with 1 addition and 66 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -101,11 +101,6 @@ public String getFormattedValue(float value) {
long millis = TimeUnit.HOURS.toMillis((long) value);
return mFormat.format(new Date(millis));
}

@Override
public int getFormattedColor(float value, AxisBase axis) {
return 0;
}
});

YAxis leftAxis = chart.getAxisLeft();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,6 @@ protected void onCreate(Bundle savedInstanceState) {
public String getFormattedValue(float value) {
return format.format(value) + "-" + format.format(value + 10);
}

@Override
public int getFormattedColor(float value, AxisBase axis) {
return 0;
}
});

Legend l = chart.getLegend();
Expand Down Expand Up @@ -256,10 +251,5 @@ private class CustomFormatter extends ValueFormatter {
public String getFormattedValue(float value) {
return mFormat.format(Math.abs(value)) + "m";
}

@Override
public int getFormattedColor(float value, AxisBase axis) {
return 0;
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,6 @@ public String getFormattedValue(float value) {
}
}

@Override
public int getFormattedColor(float value, AxisBase axis) {
return 0;
}

private int getDaysForMonth(int month, int year) {

// month is 0-based
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,4 @@ else if (xScale > 1)
else
return mFormat.format(value);
}

@Override
public int getFormattedColor(float value, AxisBase axis) {
return 0;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,6 @@ public String getFormattedValue(float value) {
return mFormat.format(value) + suffix;
}

@Override
public int getFormattedColor(float value, AxisBase axis) {
return 0;
}

@Override
public String getAxisLabel(float value, AxisBase axis) {
if (axis instanceof XAxis) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,4 @@ public String getAxisLabel(float value, AxisBase axis) {
float percent = value / axis.mAxisRange;
return mMonths[(int) (mMonths.length * percent)];
}

@Override
public int getFormattedColor(float value, AxisBase axis) {
return 0;
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,6 @@ public String getFormattedValue(float value) {
return mFormat.format(value);
}

@Override
public int getFormattedColor(float value, AxisBase axis) {
return 0;
}

/**
* Returns the number of decimal digits this formatter uses or -1, if unspecified.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,6 @@ public String getFormattedValue(float value) {
return mFormat.format(value);
}

@Override
public int getFormattedColor(float value, AxisBase axis) {
return 0;
}

/**
* Returns the number of decimal digits this formatter uses.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,6 @@ public String getFormattedValue(float value, AxisBase axis) {
return mValues[index];
}

@Override
public int getFormattedColor(float value, AxisBase axis) {
return 0;
}

public String[] getValues() {
return mValues;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,6 @@ public String getFormattedValue(float value) {
return makePretty(value) + mText;
}

@Override
public int getFormattedColor(float value, AxisBase axis) {
return 0;
}

/**
* Set an appendix text to be added at the end of the formatted value.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,6 @@ public String getFormattedValue(float value, AxisBase axis) {
return mFormat.format(value) + " %";
}

@Override
public int getFormattedColor(float value, AxisBase axis) {
return 0;
}

public int getDecimalDigits() {
return 1;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,4 @@ public String getBarStackedLabel(float value, BarEntry entry) {
// return the "proposed" value
return mFormat.format(value) + mSuffix;
}

@Override
public int getFormattedColor(float value, AxisBase axis) {
return 0;
}
}

0 comments on commit ba7bdc5

Please sign in to comment.