本文整理汇总了Java中org.jfree.chart.labels.CustomXYToolTipGenerator类的典型用法代码示例。如果您正苦于以下问题:Java CustomXYToolTipGenerator类的具体用法?Java CustomXYToolTipGenerator怎么用?Java CustomXYToolTipGenerator使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
CustomXYToolTipGenerator类属于org.jfree.chart.labels包,在下文中一共展示了CustomXYToolTipGenerator类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: resetUI
import org.jfree.chart.labels.CustomXYToolTipGenerator; //导入依赖的package包/类
/**
* Resets the display.
*/
@Override
void resetUI() {
super.resetUI();
XYPlot xyPlot = mChart.getXYPlot();
xyPlot.getRangeAxis().setVisible(false);
mTooltipGenerator = new CustomXYToolTipGenerator();
@SuppressWarnings("unchecked")
List<String>[] mTooltipsTmp = new List[NUM_SERIES];
mTooltips = mTooltipsTmp;
XYBarRenderer br = new XYBarRenderer();
br.setUseYInterval(true);
mDatasets = new TimePeriodValues[NUM_SERIES];
TimePeriodValuesCollection tpvc = new YIntervalTimePeriodValuesCollection(1);
xyPlot.setDataset(tpvc);
xyPlot.setRenderer(br);
for (int i = 0; i < NUM_SERIES; i++) {
br.setSeriesPaint(i, SERIES_COLORS[i]);
mDatasets[i] = new TimePeriodValues(SERIES_NAMES[i]);
tpvc.addSeries(mDatasets[i]);
mTooltips[i] = new ArrayList<String>();
mTooltipGenerator.addToolTipSeries(mTooltips[i]);
br.setSeriesToolTipGenerator(i, mTooltipGenerator);
}
}
开发者ID:utds3lab,项目名称:SMVHunter,代码行数:32,代码来源:DisplaySyncPerf.java
示例2: resetUI
import org.jfree.chart.labels.CustomXYToolTipGenerator; //导入依赖的package包/类
/**
* Resets the display.
*/
@Override
void resetUI() {
super.resetUI();
XYPlot xyPlot = mChart.getXYPlot();
XYBarRenderer br = new XYBarRenderer();
mDatasetsSync = new TimePeriodValues[NUM_AUTHS];
@SuppressWarnings("unchecked")
List<String> mTooltipsSyncTmp[] = new List[NUM_AUTHS];
mTooltipsSync = mTooltipsSyncTmp;
mTooltipGenerators = new CustomXYToolTipGenerator[NUM_AUTHS];
TimePeriodValuesCollection tpvc = new TimePeriodValuesCollection();
xyPlot.setDataset(tpvc);
xyPlot.setRenderer(0, br);
XYLineAndShapeRenderer ls = new XYLineAndShapeRenderer();
ls.setBaseLinesVisible(false);
mDatasetsSyncTickle = new TimeSeries[NUM_AUTHS];
TimeSeriesCollection tsc = new TimeSeriesCollection();
xyPlot.setDataset(1, tsc);
xyPlot.setRenderer(1, ls);
mDatasetError = new TimeSeries("Errors", FixedMillisecond.class);
xyPlot.setDataset(2, new TimeSeriesCollection(mDatasetError));
XYLineAndShapeRenderer errls = new XYLineAndShapeRenderer();
errls.setBaseLinesVisible(false);
errls.setSeriesPaint(0, Color.RED);
xyPlot.setRenderer(2, errls);
for (int i = 0; i < NUM_AUTHS; i++) {
br.setSeriesPaint(i, AUTH_COLORS[i]);
ls.setSeriesPaint(i, AUTH_COLORS[i]);
mDatasetsSync[i] = new TimePeriodValues(AUTH_NAMES[i]);
tpvc.addSeries(mDatasetsSync[i]);
mTooltipsSync[i] = new ArrayList<String>();
mTooltipGenerators[i] = new CustomXYToolTipGenerator();
br.setSeriesToolTipGenerator(i, mTooltipGenerators[i]);
mTooltipGenerators[i].addToolTipSeries(mTooltipsSync[i]);
mDatasetsSyncTickle[i] = new TimeSeries(AUTH_NAMES[i] + " tickle",
FixedMillisecond.class);
tsc.addSeries(mDatasetsSyncTickle[i]);
ls.setSeriesShape(i, ShapeUtilities.createUpTriangle(2.5f));
}
}
开发者ID:utds3lab,项目名称:SMVHunter,代码行数:52,代码来源:DisplaySync.java
示例3: testPublicCloneable
import org.jfree.chart.labels.CustomXYToolTipGenerator; //导入依赖的package包/类
/**
* Check to ensure that this class implements PublicCloneable.
*/
public void testPublicCloneable() {
CustomXYToolTipGenerator g1 = new CustomXYToolTipGenerator();
assertTrue(g1 instanceof PublicCloneable);
}
开发者ID:SpoonLabs,项目名称:astor,代码行数:8,代码来源:CustomXYItemLabelGeneratorTests.java
注:本文中的org.jfree.chart.labels.CustomXYToolTipGenerator类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论