Java Code Examples for com.github.mikephil.charting.utils.ColorTemplate#createColors()

The following examples show how to use com.github.mikephil.charting.utils.ColorTemplate#createColors() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: BaseDataSet.java    From Stayfit with Apache License 2.0 2 votes vote down vote up
/**
 * Sets the colors that should be used fore this DataSet. Colors are reused
 * as soon as the number of Entries the DataSet represents is higher than
 * the size of the colors array. If you are using colors from the resources,
 * make sure that the colors are already prepared (by calling
 * getResources().getColor(...)) before adding them to the DataSet.
 *
 * @param colors
 */
public void setColors(int[] colors) {
    this.mColors = ColorTemplate.createColors(colors);
}
 
Example 2
Source File: DataSet.java    From Notification-Analyser with MIT License 2 votes vote down vote up
/**
 * Sets the colors that should be used fore this DataSet. Colors are reused
 * as soon as the number of Entries the DataSet represents is higher than
 * the size of the colors array. If you are using colors from the resources,
 * make sure that the colors are already prepared (by calling
 * getResources().getColor(...)) before adding them to the DataSet.
 * 
 * @param colors
 */
public void setColors(int[] colors) {
    this.mColors = ColorTemplate.createColors(colors);
}
 
Example 3
Source File: LineDataSet.java    From Notification-Analyser with MIT License 2 votes vote down vote up
/**
 * Sets the colors that should be used for the circles of this DataSet.
 * Colors are reused as soon as the number of Entries the DataSet represents
 * is higher than the size of the colors array. Make sure that the colors
 * are already prepared (by calling getResources().getColor(...)) before
 * adding them to the DataSet.
 * 
 * @param colors
 */
public void setCircleColors(int[] colors) {
    this.mCircleColors = ColorTemplate.createColors(colors);
}
 
Example 4
Source File: RealmLineDataSet.java    From MPAndroidChart-Realm with Apache License 2.0 2 votes vote down vote up
/**
 * Sets the colors that should be used for the circles of this DataSet.
 * Colors are reused as soon as the number of Entries the DataSet represents
 * is higher than the size of the colors array. Make sure that the colors
 * are already prepared (by calling getResources().getColor(...)) before
 * adding them to the DataSet.
 *
 * @param colors
 */
public void setCircleColors(int[] colors) {
    this.mCircleColors = ColorTemplate.createColors(colors);
}
 
Example 5
Source File: LineDataSet.java    From NetKnight with Apache License 2.0 2 votes vote down vote up
/**
 * Sets the colors that should be used for the circles of this DataSet.
 * Colors are reused as soon as the number of Entries the DataSet represents
 * is higher than the size of the colors array. Make sure that the colors
 * are already prepared (by calling getResources().getColor(...)) before
 * adding them to the DataSet.
 * 
 * @param colors
 */
public void setCircleColors(int[] colors) {
    this.mCircleColors = ColorTemplate.createColors(colors);
}
 
Example 6
Source File: RealmLineDataSet.java    From NetKnight with Apache License 2.0 2 votes vote down vote up
/**
 * Sets the colors that should be used for the circles of this DataSet.
 * Colors are reused as soon as the number of Entries the DataSet represents
 * is higher than the size of the colors array. Make sure that the colors
 * are already prepared (by calling getResources().getColor(...)) before
 * adding them to the DataSet.
 *
 * @param colors
 */
public void setCircleColors(int[] colors) {
    this.mCircleColors = ColorTemplate.createColors(colors);
}
 
Example 7
Source File: BaseDataSet.java    From NetKnight with Apache License 2.0 2 votes vote down vote up
/**
 * Sets the colors that should be used fore this DataSet. Colors are reused
 * as soon as the number of Entries the DataSet represents is higher than
 * the size of the colors array. If you are using colors from the resources,
 * make sure that the colors are already prepared (by calling
 * getResources().getColor(...)) before adding them to the DataSet.
 *
 * @param colors
 */
public void setColors(int[] colors) {
    this.mColors = ColorTemplate.createColors(colors);
}
 
Example 8
Source File: LineDataSet.java    From Stayfit with Apache License 2.0 2 votes vote down vote up
/**
 * Sets the colors that should be used for the circles of this DataSet.
 * Colors are reused as soon as the number of Entries the DataSet represents
 * is higher than the size of the colors array. Make sure that the colors
 * are already prepared (by calling getResources().getColor(...)) before
 * adding them to the DataSet.
 * 
 * @param colors
 */
public void setCircleColors(int[] colors) {
    this.mCircleColors = ColorTemplate.createColors(colors);
}
 
Example 9
Source File: RealmLineDataSet.java    From Stayfit with Apache License 2.0 2 votes vote down vote up
/**
 * Sets the colors that should be used for the circles of this DataSet.
 * Colors are reused as soon as the number of Entries the DataSet represents
 * is higher than the size of the colors array. Make sure that the colors
 * are already prepared (by calling getResources().getColor(...)) before
 * adding them to the DataSet.
 *
 * @param colors
 */
public void setCircleColors(int[] colors) {
    this.mCircleColors = ColorTemplate.createColors(colors);
}
 
Example 10
Source File: BaseDataSet.java    From StockChart-MPAndroidChart with MIT License 2 votes vote down vote up
/**
 * Sets the colors that should be used fore this DataSet. Colors are reused
 * as soon as the number of Entries the DataSet represents is higher than
 * the size of the colors array. If you are using colors from the resources,
 * make sure that the colors are already prepared (by calling
 * getResources().getColor(...)) before adding them to the DataSet.
 *
 * @param colors
 */
public void setColors(int... colors) {
    this.mColors = ColorTemplate.createColors(colors);
}
 
Example 11
Source File: DataSet.java    From iMoney with Apache License 2.0 2 votes vote down vote up
/**
 * Sets the colors that should be used fore this DataSet. Colors are reused
 * as soon as the number of Entries the DataSet represents is higher than
 * the size of the colors array. If you are using colors from the resources,
 * make sure that the colors are already prepared (by calling
 * getResources().getColor(...)) before adding them to the DataSet.
 *
 * @param colors
 */
public void setColors(int[] colors) {
    this.mColors = ColorTemplate.createColors(colors);
}
 
Example 12
Source File: LineDataSet.java    From iMoney with Apache License 2.0 2 votes vote down vote up
/**
 * Sets the colors that should be used for the circles of this DataSet.
 * Colors are reused as soon as the number of Entries the DataSet represents
 * is higher than the size of the colors array. Make sure that the colors
 * are already prepared (by calling getResources().getColor(...)) before
 * adding them to the DataSet.
 * 
 * @param colors
 */
public void setCircleColors(int[] colors) {
    this.mCircleColors = ColorTemplate.createColors(colors);
}
 
Example 13
Source File: LineDataSet.java    From android-kline with Apache License 2.0 2 votes vote down vote up
/**
 * Sets the colors that should be used for the circles of this DataSet.
 * Colors are reused as soon as the number of Entries the DataSet represents
 * is higher than the size of the colors array. Make sure that the colors
 * are already prepared (by calling getResources().getColor(...)) before
 * adding them to the DataSet.
 *
 * @param colors
 */
public void setCircleColors(int... colors) {
    this.mCircleColors = ColorTemplate.createColors(colors);
}
 
Example 14
Source File: BaseDataSet.java    From android-kline with Apache License 2.0 2 votes vote down vote up
/**
 * Sets the colors that should be used fore this DataSet. Colors are reused
 * as soon as the number of Entries the DataSet represents is higher than
 * the size of the colors array. If you are using colors from the resources,
 * make sure that the colors are already prepared (by calling
 * getResources().getColor(...)) before adding them to the DataSet.
 *
 * @param colors
 */
public void setColors(int... colors) {
    this.mColors = ColorTemplate.createColors(colors);
}
 
Example 15
Source File: LineDataSet.java    From Ticket-Analysis with MIT License 2 votes vote down vote up
/**
 * Sets the colors that should be used for the circles of this DataSet.
 * Colors are reused as soon as the number of Entries the DataSet represents
 * is higher than the size of the colors array. Make sure that the colors
 * are already prepared (by calling getResources().getColor(...)) before
 * adding them to the DataSet.
 *
 * @param colors
 */
public void setCircleColors(int... colors) {
    this.mCircleColors = ColorTemplate.createColors(colors);
}
 
Example 16
Source File: BaseDataSet.java    From Ticket-Analysis with MIT License 2 votes vote down vote up
/**
 * Sets the colors that should be used fore this DataSet. Colors are reused
 * as soon as the number of Entries the DataSet represents is higher than
 * the size of the colors array. If you are using colors from the resources,
 * make sure that the colors are already prepared (by calling
 * getResources().getColor(...)) before adding them to the DataSet.
 *
 * @param colors
 */
public void setColors(int... colors) {
    this.mColors = ColorTemplate.createColors(colors);
}
 
Example 17
Source File: LineDataSet.java    From StockChart-MPAndroidChart with MIT License 2 votes vote down vote up
/**
 * Sets the colors that should be used for the circles of this DataSet.
 * Colors are reused as soon as the number of Entries the DataSet represents
 * is higher than the size of the colors array. Make sure that the colors
 * are already prepared (by calling getResources().getColor(...)) before
 * adding them to the DataSet.
 *
 * @param colors
 */
public void setCircleColors(int... colors) {
    this.mCircleColors = ColorTemplate.createColors(colors);
}