- 使用 Spring Initializr 创建 Spring Boot 应用程序
- 在Spring Boot中配置Cassandra
- 在 Spring Boot 上配置 Tomcat 连接池
- 将Camel消息路由到嵌入WildFly的Artemis上
本文整理了Java中org.jfree.data.xy.YIntervalSeriesCollection.addSeries()
方法的一些代码示例,展示了YIntervalSeriesCollection.addSeries()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。YIntervalSeriesCollection.addSeries()
方法的具体详情如下:
包路径:org.jfree.data.xy.YIntervalSeriesCollection
类名称:YIntervalSeriesCollection
方法名:addSeries
[英]Adds a series to the collection and sends a DatasetChangeEventto all registered listeners.
[中]向集合中添加一个系列,并向所有注册的侦听器发送DataSetChangeEvent。
代码示例来源:origin: kiegroup/optaplanner
for (Project project : schedule.getProjectList()) {
YIntervalSeries projectSeries = new YIntervalSeries(project.getLabel());
seriesCollection.addSeries(projectSeries);
projectSeriesMap.put(project, projectSeries);
renderer.setSeriesShape(seriesIndex, new Rectangle());
代码示例来源:origin: inspectIT/inspectIT
/**
* Initializes the upper plot.
*
* @return An instance of {@link XYPlot}.
*/
private XYPlot initializePlot() {
jmxChart = new YIntervalSeriesImproved("jmx value");
YIntervalSeriesCollection yintervalseriescollection = new YIntervalSeriesCollection();
yintervalseriescollection.addSeries(jmxChart);
DeviationRenderer renderer = new DeviationRenderer(true, false);
renderer.setBaseShapesVisible(true);
renderer.setSeriesStroke(0, new BasicStroke(3.0f, BasicStroke.CAP_ROUND, BasicStroke.JOIN_ROUND));
renderer.setSeriesFillPaint(0, new Color(255, 200, 200));
renderer.setSeriesOutlineStroke(0, new BasicStroke(2.0f));
renderer.setSeriesShape(0, new Ellipse2D.Double(-2.5, -2.5, 5.0, 5.0));
renderer.setBaseToolTipGenerator(new StandardXYToolTipGenerator(StandardXYToolTipGenerator.DEFAULT_TOOL_TIP_FORMAT, DateFormat.getDateTimeInstance(), NumberFormat.getNumberInstance()));
NumberAxis rangeAxis = plotDataSolver.getAxis();
subplot = new XYPlot(yintervalseriescollection, null, rangeAxis, renderer);
subplot.setAxisOffset(new RectangleInsets(5.0, 5.0, 5.0, 5.0));
subplot.setRangeAxisLocation(AxisLocation.TOP_OR_LEFT);
subplot.setRangeCrosshairVisible(true);
return subplot;
}
代码示例来源:origin: jmacglashan/burlap
colCSRAvg.addSeries(this.csrAvgSeries);
colCERAvg.addSeries(this.cerAvgSeries);
colAERAvg.addSeries(this.aerAvgSeries);
colMERAvg.addSeries(this.merAvgSeries);
colCSEAvg.addSeries(this.cseAvgSeries);
colSEAvg.addSeries(this.seAvgSeries);
代码示例来源:origin: jmacglashan/burlap
colCSRAvg.addSeries(this.csrAvgSeries);
colCERAvg.addSeries(this.cerAvgSeries);
colAERAvg.addSeries(this.aerAvgSeries);
colMERAvg.addSeries(this.merAvgSeries);
colCSEAvg.addSeries(this.cseAvgSeries);
colSEAvg.addSeries(this.seAvgSeries);
代码示例来源:origin: inspectIT/inspectIT
/**
* Initializes the upper plot.
*
* @return An instance of {@link XYPlot}.
*/
private XYPlot initializeUpperPlot() {
loadedClasses = new YIntervalSeriesImproved("loaded classes");
totalLoadedClasses = new YIntervalSeriesImproved("total loaded classes");
YIntervalSeriesCollection yintervalseriescollection = new YIntervalSeriesCollection();
yintervalseriescollection.addSeries(loadedClasses);
yintervalseriescollection.addSeries(totalLoadedClasses);
DeviationRenderer renderer = new DeviationRenderer(true, false);
renderer.setBaseShapesVisible(true);
renderer.setSeriesStroke(0, new BasicStroke(3.0f, BasicStroke.CAP_ROUND, BasicStroke.JOIN_ROUND));
renderer.setSeriesFillPaint(0, new Color(255, 200, 200));
renderer.setSeriesOutlineStroke(0, new BasicStroke(2.0f));
renderer.setSeriesShape(0, new Ellipse2D.Double(-2.5, -2.5, 5.0, 5.0));
renderer.setBaseToolTipGenerator(new StandardXYToolTipGenerator(StandardXYToolTipGenerator.DEFAULT_TOOL_TIP_FORMAT, DateFormat.getDateTimeInstance(), NumberFormat.getNumberInstance()));
final NumberAxis rangeAxis = new NumberAxis("Classes");
rangeAxis.setStandardTickUnits(NumberAxis.createIntegerTickUnits());
rangeAxis.setAutoRangeMinimumSize(2000.0d);
rangeAxis.setRangeType(RangeType.POSITIVE);
rangeAxis.setAutoRangeIncludesZero(true);
final XYPlot subplot = new XYPlot(yintervalseriescollection, null, rangeAxis, renderer);
subplot.setAxisOffset(new RectangleInsets(5.0, 5.0, 5.0, 5.0));
subplot.setRangeAxisLocation(AxisLocation.TOP_OR_LEFT);
subplot.setRangeCrosshairVisible(true);
return subplot;
}
代码示例来源:origin: inspectIT/inspectIT
/**
* Initializes the upper plot with the given input data.
*
* @return An instance of {@link XYPlot}
*/
private XYPlot initializeUpperPlot() {
liveThreads = new YIntervalSeriesImproved("live");
peakThreads = new YIntervalSeriesImproved("peak");
YIntervalSeriesCollection yIntervalSeriesCollection = new YIntervalSeriesCollection();
yIntervalSeriesCollection.addSeries(liveThreads);
yIntervalSeriesCollection.addSeries(peakThreads);
DeviationRenderer renderer = new DeviationRenderer(true, false);
renderer.setBaseShapesVisible(true);
renderer.setSeriesStroke(0, new BasicStroke(3.0f, BasicStroke.CAP_ROUND, BasicStroke.JOIN_ROUND));
renderer.setSeriesFillPaint(0, new Color(255, 200, 200));
renderer.setSeriesOutlineStroke(0, new BasicStroke(2.0f));
renderer.setSeriesShape(0, new Ellipse2D.Double(-2.5, -2.5, 5.0, 5.0));
renderer.setBaseToolTipGenerator(new StandardXYToolTipGenerator(StandardXYToolTipGenerator.DEFAULT_TOOL_TIP_FORMAT, DateFormat.getDateTimeInstance(), NumberFormat.getNumberInstance()));
final NumberAxis rangeAxis = new NumberAxis("Threads");
rangeAxis.setStandardTickUnits(NumberAxis.createIntegerTickUnits());
rangeAxis.setAutoRangeMinimumSize(10.0d, false);
rangeAxis.setRangeType(RangeType.POSITIVE);
final XYPlot subplot = new XYPlot(yIntervalSeriesCollection, null, rangeAxis, renderer);
subplot.setAxisOffset(new RectangleInsets(5.0, 5.0, 5.0, 5.0));
subplot.setRangeAxisLocation(AxisLocation.TOP_OR_LEFT);
subplot.setRangeCrosshairVisible(true);
return subplot;
}
代码示例来源:origin: inspectIT/inspectIT
/**
* Initializes the upper plot.
*
* @return An instance of {@link XYPlot}.
*/
private XYPlot initializeUpperPlot() {
cpuUsage = new YIntervalSeriesImproved("cpu usage");
YIntervalSeriesCollection yintervalseriescollection = new YIntervalSeriesCollection();
yintervalseriescollection.addSeries(cpuUsage);
DeviationRenderer renderer = new DeviationRenderer(true, false);
renderer.setBaseShapesVisible(true);
renderer.setSeriesStroke(0, new BasicStroke(3.0f, BasicStroke.CAP_ROUND, BasicStroke.JOIN_ROUND));
renderer.setSeriesFillPaint(0, new Color(255, 200, 200));
renderer.setSeriesOutlineStroke(0, new BasicStroke(2.0f));
renderer.setSeriesShape(0, new Ellipse2D.Double(-2.5, -2.5, 5.0, 5.0));
renderer.setBaseToolTipGenerator(new StandardXYToolTipGenerator(StandardXYToolTipGenerator.DEFAULT_TOOL_TIP_FORMAT, DateFormat.getDateTimeInstance(), NumberFormat.getNumberInstance()));
final NumberAxis rangeAxis = new NumberAxis("CPU usage of the VM");
rangeAxis.setRange(new Range(0, 100), true, false);
rangeAxis.setAutoRangeMinimumSize(100.0d, false);
rangeAxis.setTickUnit(new NumberTickUnit(10.0d, new DecimalFormat("0")));
rangeAxis.setRangeType(RangeType.POSITIVE);
final XYPlot subplot = new XYPlot(yintervalseriescollection, null, rangeAxis, renderer);
subplot.setAxisOffset(new RectangleInsets(5.0, 5.0, 5.0, 5.0));
subplot.setRangeAxisLocation(AxisLocation.TOP_OR_LEFT);
subplot.setRangeCrosshairVisible(true);
return subplot;
}
代码示例来源:origin: inspectIT/inspectIT
if (keys.add(seriesKey)) {
YIntervalSeriesImproved yIntervalSeries = new YIntervalSeriesImproved(seriesKey);
yintervalseriescollection.addSeries(yIntervalSeries);
durationSeries.add(yIntervalSeries);
代码示例来源:origin: inspectIT/inspectIT
/**
* Initializes the lower plot with the given input data.
*
* @return An instance of {@link XYPlot}.
*/
private XYPlot initializeLowerPlot() {
daemonThreads = new YIntervalSeriesImproved("daemon");
YIntervalSeriesCollection yIntervalSeriesCollection = new YIntervalSeriesCollection();
yIntervalSeriesCollection.addSeries(daemonThreads);
DeviationRenderer renderer = new DeviationRenderer(true, false);
renderer.setBaseShapesVisible(true);
renderer.setSeriesStroke(0, new BasicStroke(3.0f));
renderer.setSeriesOutlineStroke(0, new BasicStroke(2.0f));
renderer.setSeriesShape(0, new Ellipse2D.Double(-2.5, -2.5, 5.0, 5.0));
renderer.setBaseToolTipGenerator(new StandardXYToolTipGenerator(StandardXYToolTipGenerator.DEFAULT_TOOL_TIP_FORMAT, DateFormat.getDateTimeInstance(), NumberFormat.getNumberInstance()));
final NumberAxis rangeAxis = new NumberAxis("Daemon threads");
rangeAxis.setStandardTickUnits(NumberAxis.createIntegerTickUnits());
rangeAxis.setAutoRangeMinimumSize(10.0d, false);
rangeAxis.setRangeType(RangeType.POSITIVE);
final XYPlot subplot = new XYPlot(yIntervalSeriesCollection, null, rangeAxis, renderer);
subplot.setAxisOffset(new RectangleInsets(5.0, 5.0, 5.0, 5.0));
subplot.setRangeAxisLocation(AxisLocation.TOP_OR_LEFT);
subplot.setRangeCrosshairVisible(true);
return subplot;
}
代码示例来源:origin: org.optaplanner/optaplanner-examples
for (Project project : schedule.getProjectList()) {
YIntervalSeries projectSeries = new YIntervalSeries(project.getLabel());
seriesCollection.addSeries(projectSeries);
projectSeriesMap.put(project, projectSeries);
renderer.setSeriesShape(seriesIndex, new Rectangle());
代码示例来源:origin: inspectIT/inspectIT
yintervalseriescollection.addSeries(heapMemory);
代码示例来源:origin: inspectIT/inspectIT
yIntervalSeriesCollection.addSeries(nonHeapMemory);
好的, 我知道以前有人问过这个问题,但我仍然无法弄清楚。该图确实呈现,但在第二个事件中它不会更新。 我在highcharts中使用chart.addSeries。图表更新,但没有绘制新数据。使困惑。
我正在创建一个动态创建的图表,如果没有,则添加一个系列,如果有,则添加一个点。我收到未捕获的类型错误:无法调用未定义的方法“addSeries”。我环顾四周,找不到为什么它说该方法未定义。 $(d
例如我有一个这样的图表: $(function () { $('#KeywordTrend').highcharts({ chart:{ width:500 },
我正在使用 javascript (addSeries) 添加一个系列,当我使用较大的值执行此操作时,yaxis 不会重新缩放。 http://jsfiddle.net/7YhYT/11/ 要重现我们
本文整理了Java中org.jfree.data.xy.XYIntervalSeriesCollection.addSeries()方法的一些代码示例,展示了XYIntervalSeriesColle
本文整理了Java中org.jfree.data.xy.YIntervalSeriesCollection.addSeries()方法的一些代码示例,展示了YIntervalSeriesCollect
尝试将系列添加到 Highcharts 饼图时,仅显示系列的名称,而不显示图形本身。 如果我手动输入系列,图表会正确显示,但当它通过 .each 循环完成时,它只显示添加的系列名称。 这是我的代码:
这个问题已经有答案了: How to convert array of floats to array of doubles in Java? (3 个回答) 已关闭10 年前。 dataset.ad
本文整理了Java中org.matsim.core.utils.charts.XYLineChart.addSeries()方法的一些代码示例,展示了XYLineChart.addSeries()的具
我正在使用 afterSetExtremes 事件来检索最小和最大 x 和 y 坐标。然后,我在范围选择时添加该系列。问题是该系列在加载时不显示。最简单的解决方案是模拟范围选择在图表加载时。这可能吗?
我是一名优秀的程序员,十分优秀!