本文整理汇总了Java中com.androidplot.xy.XYSeriesFormatter类的典型用法代码示例。如果您正苦于以下问题:Java XYSeriesFormatter类的具体用法?Java XYSeriesFormatter怎么用?Java XYSeriesFormatter使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
XYSeriesFormatter类属于com.androidplot.xy包,在下文中一共展示了XYSeriesFormatter类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: addSeries
import com.androidplot.xy.XYSeriesFormatter; //导入依赖的package包/类
public String addSeries(AbstractSeries series, XYSeriesFormatter<?> formatter) {
Pair<AbstractSeries, XYSeriesFormatter<?>> pair
= new Pair<AbstractSeries, XYSeriesFormatter<?>>(series, formatter);
allSeries.add(pair);
visibleSeries.put(series.getTitle(), pair);
return series.getTitle();
}
示例2: getVisibleSeries
import com.androidplot.xy.XYSeriesFormatter; //导入依赖的package包/类
public Collection<Pair<AbstractSeries, XYSeriesFormatter<?>>> getVisibleSeries() {
List<Pair<AbstractSeries, XYSeriesFormatter<?>>> ret
= new ArrayList<Pair<AbstractSeries, XYSeriesFormatter<?>>>();
for (Pair<AbstractSeries, XYSeriesFormatter<?>> p : allSeries)
if (visibleSeries.containsValue(p)) ret.add(p);
return ret;
}
示例3: updateGraph
import com.androidplot.xy.XYSeriesFormatter; //导入依赖的package包/类
private void updateGraph() {
graph.clear();
for (Pair<AbstractSeries, XYSeriesFormatter<?>> p : manager.getVisibleSeries())
graph.addSeries(p.first, p.second);
graph.redraw();
}
示例4: makeSeriesVisible
import com.androidplot.xy.XYSeriesFormatter; //导入依赖的package包/类
public void makeSeriesVisible(String seriesKey) {
Pair<AbstractSeries, XYSeriesFormatter<?>> series = hiddenSeries.remove(seriesKey);
if (series == null) return;
visibleSeries.put(seriesKey, series);
}
示例5: makeSeriesHidden
import com.androidplot.xy.XYSeriesFormatter; //导入依赖的package包/类
public void makeSeriesHidden(String seriesKey) {
Pair<AbstractSeries, XYSeriesFormatter<?>> series = visibleSeries.remove(seriesKey);
if (series == null) return;
hiddenSeries.put(seriesKey, series);
}