com.github.mikephil.charting.utils.Utils.convertIntegers()方法的使用及代码示例

x33g5p2x  于2022-02-01 转载在 其他  
字(2.3k)|赞(0)|评价(0)|浏览(81)

本文整理了Java中com.github.mikephil.charting.utils.Utils.convertIntegers()方法的一些代码示例,展示了Utils.convertIntegers()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Utils.convertIntegers()方法的具体详情如下:
包路径:com.github.mikephil.charting.utils.Utils
类名称:Utils
方法名:convertIntegers

Utils.convertIntegers介绍

[英]Converts the provided Integer List to an int array.
[中]将提供的整数列表转换为整数数组。

代码示例

代码示例来源:origin: WallaceXiao/StockChart-MPAndroidChart

public void setDescriptionCustom(List<Integer> colors, List<String> labels) {
  if (colors.size() != labels.size()) {
    throw new IllegalArgumentException(
        "colors array and labels array need to be of same size");
  }
  mDescriptionColors = Utils.convertIntegers(colors);
  mDescriptionLabels = Utils.convertStrings(labels);
  mIsDescriptionCustom = true;
}

代码示例来源:origin: WenWangAndroid/ChartManager

@Deprecated
public Legend(List<Integer> colors, List<String> labels) {
  this(Utils.convertIntegers(colors), Utils.convertStrings(labels));
}

代码示例来源:origin: com.github.PhilJay/MPAndroidChart

@Deprecated
public Legend(List<Integer> colors, List<String> labels) {
  this(Utils.convertIntegers(colors), Utils.convertStrings(labels));
}

代码示例来源:origin: WallaceXiao/StockChart-MPAndroidChart

@Deprecated
public Legend(List<Integer> colors, List<String> labels) {
  this(Utils.convertIntegers(colors), Utils.convertStrings(labels));
}

代码示例来源:origin: xiaolongonly/Ticket-Analysis

@Deprecated
public Legend(List<Integer> colors, List<String> labels) {
  this(Utils.convertIntegers(colors), Utils.convertStrings(labels));
}

代码示例来源:origin: WallaceXiao/StockChart-MPAndroidChart

@Deprecated
public void setExtra(List<Integer> colors, List<String> labels) {
  setExtra(Utils.convertIntegers(colors), Utils.convertStrings(labels));
}

代码示例来源:origin: com.github.PhilJay/MPAndroidChart

@Deprecated
public void setExtra(List<Integer> colors, List<String> labels) {
  setExtra(Utils.convertIntegers(colors), Utils.convertStrings(labels));
}

代码示例来源:origin: WenWangAndroid/ChartManager

@Deprecated
public void setExtra(List<Integer> colors, List<String> labels) {
  setExtra(Utils.convertIntegers(colors), Utils.convertStrings(labels));
}

代码示例来源:origin: xiaolongonly/Ticket-Analysis

@Deprecated
public void setExtra(List<Integer> colors, List<String> labels) {
  setExtra(Utils.convertIntegers(colors), Utils.convertStrings(labels));
}

相关文章