- 使用 Spring Initializr 创建 Spring Boot 应用程序
- 在Spring Boot中配置Cassandra
- 在 Spring Boot 上配置 Tomcat 连接池
- 将Camel消息路由到嵌入WildFly的Artemis上
本文整理了Java中org.jfree.data.xy.YIntervalSeriesCollection
类的一些代码示例,展示了YIntervalSeriesCollection
类的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。YIntervalSeriesCollection
类的具体详情如下:
包路径:org.jfree.data.xy.YIntervalSeriesCollection
类名称:YIntervalSeriesCollection
[英]A collection of YIntervalSeries objects.
[中]YIntervalSeries对象的集合。
代码示例来源:origin: kiegroup/optaplanner
private JFreeChart createChart(Schedule schedule) {
YIntervalSeriesCollection seriesCollection = new YIntervalSeriesCollection();
Map<Project, YIntervalSeries> projectSeriesMap = new LinkedHashMap<>(
schedule.getProjectList().size());
for (Project project : schedule.getProjectList()) {
YIntervalSeries projectSeries = new YIntervalSeries(project.getLabel());
seriesCollection.addSeries(projectSeries);
projectSeriesMap.put(project, projectSeries);
renderer.setSeriesShape(seriesIndex, new Rectangle());
代码示例来源:origin: org.codehaus.jtstand/jtstand-chart
/**
* Returns the end x-value for an item within a series. This method
* maps directly to {@link #getX(int, int)}.
*
* @param series the series index.
* @param item the item index.
*
* @return The x-value.
*/
public Number getEndX(int series, int item) {
return getX(series, item);
}
代码示例来源:origin: jfree/jfreechart
/**
* Removes a series from the collection and sends a
* {@link DatasetChangeEvent} to all registered listeners.
*
* @param series the series index (zero-based).
*
* @since 1.0.10
*/
public void removeSeries(int series) {
if ((series < 0) || (series >= getSeriesCount())) {
throw new IllegalArgumentException("Series index out of bounds.");
}
YIntervalSeries ts = (YIntervalSeries) this.data.get(series);
ts.removeChangeListener(this);
this.data.remove(series);
fireDatasetChanged();
}
代码示例来源:origin: org.codehaus.jtstand/jtstand-chart
/**
* Adds a series to the collection and sends a {@link DatasetChangeEvent}
* to all registered listeners.
*
* @param series the series (<code>null</code> not permitted).
*/
public void addSeries(YIntervalSeries series) {
if (series == null) {
throw new IllegalArgumentException("Null 'series' argument.");
}
this.data.add(series);
series.addChangeListener(this);
fireDatasetChanged();
}
代码示例来源: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
colSE = new XYSeriesCollection();
colCSRAvg = new YIntervalSeriesCollection();
colCERAvg = new YIntervalSeriesCollection();
colAERAvg = new YIntervalSeriesCollection();
colMERAvg = new YIntervalSeriesCollection();
colCSEAvg = new YIntervalSeriesCollection();
colSEAvg = new YIntervalSeriesCollection();
代码示例来源:origin: org.codehaus.jtstand/jtstand-chart
/**
* Returns the number of items in the specified series.
*
* @param series the series (zero-based index).
*
* @return The item count.
*
* @throws IllegalArgumentException if <code>series</code> is not in the
* range <code>0</code> to <code>getSeriesCount() - 1</code>.
*/
public int getItemCount(int series) {
// defer argument checking
return getSeries(series).getItemCount();
}
代码示例来源:origin: jfree/jfreechart
/**
* Returns a series from the collection.
*
* @param series the series index (zero-based).
*
* @return The series.
*
* @throws IllegalArgumentException if {@code series} is not in the
* range {@code 0} to {@code getSeriesCount() - 1}.
*/
public YIntervalSeries getSeries(int series) {
if ((series < 0) || (series >= getSeriesCount())) {
throw new IllegalArgumentException("Series index out of bounds");
}
return (YIntervalSeries) this.data.get(series);
}
代码示例来源:origin: org.codehaus.jtstand/jtstand-chart
/**
* Removes a series from the collection and sends a
* {@link DatasetChangeEvent} to all registered listeners.
*
* @param series the series index (zero-based).
*
* @since 1.0.10
*/
public void removeSeries(int series) {
if ((series < 0) || (series >= getSeriesCount())) {
throw new IllegalArgumentException("Series index out of bounds.");
}
YIntervalSeries ts = (YIntervalSeries) this.data.get(series);
ts.removeChangeListener(this);
this.data.remove(series);
fireDatasetChanged();
}
代码示例来源:origin: jfree/jfreechart
/**
* Removes all the series from the collection and sends a
* {@link DatasetChangeEvent} to all registered listeners.
*
* @since 1.0.10
*/
public void removeAllSeries() {
// Unregister the collection as a change listener to each series in
// the collection.
for (int i = 0; i < this.data.size(); i++) {
YIntervalSeries series = (YIntervalSeries) this.data.get(i);
series.removeChangeListener(this);
}
this.data.clear();
fireDatasetChanged();
}
代码示例来源: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
colSE = new XYSeriesCollection();
colCSRAvg = new YIntervalSeriesCollection();
colCERAvg = new YIntervalSeriesCollection();
colAERAvg = new YIntervalSeriesCollection();
colMERAvg = new YIntervalSeriesCollection();
colCSEAvg = new YIntervalSeriesCollection();
colSEAvg = new YIntervalSeriesCollection();
代码示例来源:origin: jfree/jfreechart
/**
* Returns the number of items in the specified series.
*
* @param series the series (zero-based index).
*
* @return The item count.
*
* @throws IllegalArgumentException if {@code series} is not in the
* range {@code 0} to {@code getSeriesCount() - 1}.
*/
@Override
public int getItemCount(int series) {
// defer argument checking
return getSeries(series).getItemCount();
}
代码示例来源:origin: org.codehaus.jtstand/jtstand-chart
/**
* Returns a series from the collection.
*
* @param series the series index (zero-based).
*
* @return The series.
*
* @throws IllegalArgumentException if <code>series</code> is not in the
* range <code>0</code> to <code>getSeriesCount() - 1</code>.
*/
public YIntervalSeries getSeries(int series) {
if ((series < 0) || (series >= getSeriesCount())) {
throw new IllegalArgumentException("Series index out of bounds");
}
return (YIntervalSeries) this.data.get(series);
}
代码示例来源: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: org.codehaus.jtstand/jtstand-chart
/**
* Removes all the series from the collection and sends a
* {@link DatasetChangeEvent} to all registered listeners.
*
* @since 1.0.10
*/
public void removeAllSeries() {
// Unregister the collection as a change listener to each series in
// the collection.
for (int i = 0; i < this.data.size(); i++) {
YIntervalSeries series = (YIntervalSeries) this.data.get(i);
series.removeChangeListener(this);
}
this.data.clear();
fireDatasetChanged();
}
代码示例来源:origin: jfree/jfreechart
/**
* Returns the start x-value for an item within a series. This method
* maps directly to {@link #getX(int, int)}.
*
* @param series the series index.
* @param item the item index.
*
* @return The x-value.
*/
@Override
public Number getStartX(int series, int item) {
return getX(series, item);
}
代码示例来源:origin: jfree/jfreechart
/**
* Returns the key for a series.
*
* @param series the series index (in the range {@code 0} to
* {@code getSeriesCount() - 1}).
*
* @return The key for a series.
*
* @throws IllegalArgumentException if {@code series} is not in the
* specified range.
*/
@Override
public Comparable getSeriesKey(int series) {
// defer argument checking
return getSeries(series).getKey();
}
代码示例来源: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: org.codehaus.jtstand/jtstand-chart
/**
* Removes a series from the collection and sends a
* {@link DatasetChangeEvent} to all registered listeners.
*
* @param series the series (<code>null</code> not permitted).
*
* @since 1.0.10
*/
public void removeSeries(YIntervalSeries series) {
if (series == null) {
throw new IllegalArgumentException("Null 'series' argument.");
}
if (this.data.contains(series)) {
series.removeChangeListener(this);
this.data.remove(series);
fireDatasetChanged();
}
}
我正在使用 Studio 创建 JasperReports 的报告。我需要增加折线图的宽度(默认值太细)。据我所知,JasperReports 使用 Jfeechart 作为图表,我用谷歌搜索了这段代
我正在尝试创建一个新的 JFreeChart,我的项目构建路径中有 JCommon (1.0.22) 和 JFreeChart (1.0.17-demo); 但是,当我尝试创建代码时,在这种情况下;
如何修改 ChartPanel 的 mouseDragged 事件,以便在缩放完成之前/之后进行一些处理? 我有以下图表面板, JFreeChart chart = new JFreeChart(
已关闭。此问题需要 debugging details 。目前不接受答案。 编辑问题以包含 desired behavior, a specific problem or error, and the
我在这里有一个简单的甘特图,它由许多任务组成,就像这样: TaskSeries s1 = new TaskSeries("Planned Tasks"); Task newTask = new Tas
我想在我的饼图中个性化我的数据标签,因为在我的图例中我看到数据=值,在标签中我看到数据=值。我如何才能只看到图例中的名称数据和标签中的值?我绘制图表的代码是这样的: public JfreeC
我想在我的 JFree charts 中使用我的 Axis变成 % 而不是普通数字 有谁知道我如何修改我的代码以实现这种情况。 应该说我的表格已经是百分比了,但它自己的图表不是! 更新 这是我到目前为
我正在尝试使用 jfree 图表库创建一个折线图,我需要显示与折线图中每个索引关联的值,我不能为此使用工具提示,因为我正在将图表转换为图像,是吗一种在每个索引顶部显示值的方法? 谢谢,巴维亚 最佳答案
有没有我们可以找到示例源代码/教程/帮助使用 jfreecharts 的链接?? 谢谢。 最佳答案 如果你仔细观察的话,它们有很多。 http://www.vogella.de/articles/JF
我对java不太了解,但希望以下代码作为小程序运行。请求对此真诚的帮助。 任何人都可以帮助我将此代码作为小程序运行吗?这是 Jfree 图表,我想将它作为小程序运行。请提出建议。 package or
我正在寻找一种在 JFree Chart 创建的图像中插入特定评论/注释的方法。注释可以位于图像 (png) 上的任意位置、图表上方或下方。 有办法做到这一点吗? 最佳答案 要添加文本,addSubt
通过使用 StandardCategoryItemLabelGenerator() 我能够在条形图上显示精确的范围轴值,现在我的问题是我不想显示范围轴值而是我想显示该条形图的其他一些值我该如何实现?
我在我的应用程序中使用 Jfree 图表。国际化非常适合德语、俄语、法语...但在中文、日语中,x 轴和 y 轴文本看起来像方框。如何解决这个问题? 谢谢。 最佳答案 检查下面的链接,它似乎在讨论完全
我正在尝试使用 jfree 图表显示散点图和 XYline 图表。我可以一次展示它们。我有一个组合框,可让您选择要绘制的绘图类型。在此基础上,我必须使用 jfree 图表绘制相应的图。 我有以下代码来
我正在使用 jfree Chart 绘制一些点进行定位。 问题是图表是在灰色表面上绘制的,而不是在我的平面图上绘制的。所以我尝试使用背景图像,但这将图像放在背景中并且无法使用,因为我需要它。 我想用图
我想使用 JFree 在多系列图表中的条形顶部显示标签。请告诉我如何做到这一点? 最佳答案 由于这是一个条形图,添加一个 StandardCategoryItemLabelGenerator 的实例到
如何增加显示颜色的图例键的大小。字体大小由 chart.getLegend().setItemFont(new Font("SansSerif", Font.PLAIN, 12)); 调整 但我找不到
谁能告诉我如何减小 jcommon-1.0.16.jar 和 jfreechart-1.0.13.jar(主要是 jfreechart-1.0.13.jar )可执行文件的大小。我需要减小我的嵌入式产
我是 JFree 的新手。我想知道如何创建数据集,使特定作业的所有操作都具有相同的颜色(例如,O111、O122、O133、O144 具有相同的颜色,机器排列如图 2 所示)。 我尝试使用 TaskS
我在报告中使用 jfree 图表。我想从饼图中删除切片部分: 另外,我想让它以切片值为中心,并在我当前使用的脚本下面提到: import java.awt.Color; import org.jfre
我是一名优秀的程序员,十分优秀!