Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions CircleDisplay/src/com/philjay/circledisplay/CircleDisplay.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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
*
Expand Down Expand Up @@ -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)
Expand Down