diff --git a/CircleDisplay/src/com/philjay/circledisplay/CircleDisplay.java b/CircleDisplay/src/com/philjay/circledisplay/CircleDisplay.java index b76a3bf..403323f 100644 --- a/CircleDisplay/src/com/philjay/circledisplay/CircleDisplay.java +++ b/CircleDisplay/src/com/philjay/circledisplay/CircleDisplay.java @@ -76,6 +76,7 @@ public class CircleDisplay extends View implements OnGestureListener { /** the decimalformat responsible for formatting the values in the view */ private DecimalFormat mFormatValue = new DecimalFormat("###,###,###,##0.0"); + /** array that contains values for the custom-text */ private String[] mCustomText = null; @@ -398,6 +399,24 @@ public void setColor(int color) { mArcPaint.setColor(color); } + /** + * set the color of the Inner circle + * + * @param color + */ + public void setInnerCircleColor(int color) { + mInnerCirclePaint.setColor(color); + } + + /** + * set the color of the inner text + * + * @param color + */ + public void setTextColor(int color) { + mTextPaint.setColor(color); + } + /** * set the size of the center text in dp * @@ -444,6 +463,14 @@ public void setFormatDigits(int digits) { mFormatValue = new DecimalFormat("###,###,###,##0" + b.toString()); } + /** + * sets the decimal format to be used + * + * @param decimalFormat + */ + + public void setDecimalFormat (DecimalFormat decimalFormat) {mFormatValue = decimalFormat;} + /** * set the aplha value to be used for the remainder of the arc, default 80 * (use value between 0 and 255)