- 使用 Spring Initializr 创建 Spring Boot 应用程序
- 在Spring Boot中配置Cassandra
- 在 Spring Boot 上配置 Tomcat 连接池
- 将Camel消息路由到嵌入WildFly的Artemis上
本文整理了Java中org.jfree.chart.renderer.xy.XYStepRenderer
类的一些代码示例,展示了XYStepRenderer
类的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XYStepRenderer
类的具体详情如下:
包路径:org.jfree.chart.renderer.xy.XYStepRenderer
类名称:XYStepRenderer
[英]Line/Step item renderer for an XYPlot. This class draws lines between data points, only allowing horizontal or vertical lines (steps). The example shown here is generated by the XYStepRendererDemo1.java program included in the JFreeChart demo collection:
[中]XYPlot的行/步项目渲染器。此类在数据点之间绘制线,只允许水平线或垂直线(步)。这里显示的示例是由XYStepRenderDemo1生成的。JFreeChart演示集合中包含的java程序:
代码示例来源:origin: kiegroup/optaplanner
XYPlot plot = createPlot(benchmarkReport, scoreLevelIndex);
XYItemRenderer renderer = new XYStepRenderer();
plot.setRenderer(renderer);
XYSeriesCollection seriesCollection = new XYSeriesCollection();
for (XYSeries series : constraintIdToWeightSeriesMapList.get(scoreLevelIndex).values()) {
seriesCollection.addSeries(series);
plot.setDataset(seriesCollection);
String scoreLevelLabel = subSingleBenchmarkResult.getSingleBenchmarkResult().getProblemBenchmarkResult()
.findScoreLevelLabel(scoreLevelIndex);
代码示例来源:origin: infiniteautomation/ma-core-public
((DateAxis) plot.getDomainAxis()).setTimeZone(pointTimeSeriesCollection.getTimeZone());
plot.setBackgroundPaint(SystemSettingsDao.instance.getColour(SystemSettingsDao.PLOT_BACKGROUND_COLOUR));
Color gridlines = SystemSettingsDao.instance.getColour(SystemSettingsDao.PLOT_GRIDLINE_COLOUR);
plot.setDomainGridlinePaint(gridlines);
plot.setRangeGridlinePaint(gridlines);
((NumberAxis) plot.getRangeAxis()).setAutoRangeStickyZero(false);
AbstractXYItemRenderer renderer;
if (nts.getPlotType() == DataPointVO.PlotTypes.STEP)
renderer = new XYStepRenderer();
else if (nts.getPlotType() == DataPointVO.PlotTypes.LINE)
renderer = new XYLineAndShapeRenderer(true, false);
for (int i = 0; i < pointTimeSeriesCollection.getDiscreteSeriesCount(); i++) {
DiscreteTimeSeries dts = pointTimeSeriesCollection.getDiscreteTimeSeries(i);
XYStepRenderer renderer = new XYStepRenderer();
renderer.setSeriesPaint(0, dts.getPaint(), false);
if (dts.getStroke() != null)
renderer.setSeriesStroke(0, dts.getStroke(), false);
plot.setDataset(numericSeriesCount + i,
代码示例来源:origin: org.codehaus.jtstand/jtstand-chart
urlGenerator = new StandardXYURLGenerator();
XYItemRenderer renderer = new XYStepRenderer(toolTipGenerator,
urlGenerator);
XYPlot plot = new XYPlot(dataset, xAxis, yAxis, null);
plot.setRenderer(renderer);
plot.setOrientation(orientation);
plot.setDomainCrosshairVisible(false);
plot.setRangeCrosshairVisible(false);
代码示例来源:origin: dynamicreports/dynamicreports
/**
* {@inheritDoc}
*/
@Override
public void customize(JFreeChart chart, ReportParameters reportParameters) {
XYLineAndShapeRenderer lineRenderer = (XYLineAndShapeRenderer) chart.getXYPlot().getRenderer();
XYStepRenderer renderer = new XYStepRenderer();
renderer.setBaseItemLabelsVisible(lineRenderer.getBaseItemLabelsVisible());
renderer.setBaseItemLabelFont(lineRenderer.getBaseItemLabelFont());
renderer.setBaseItemLabelPaint(lineRenderer.getBaseItemLabelPaint());
renderer.setBaseItemLabelGenerator(lineRenderer.getBaseItemLabelGenerator());
renderer.setBaseShapesVisible(lineRenderer.getBaseShapesVisible());
renderer.setBaseLinesVisible(lineRenderer.getBaseLinesVisible());
if (stepPoint != null) {
renderer.setStepPoint(stepPoint);
}
chart.getXYPlot().setRenderer(renderer);
}
}
代码示例来源:origin: stackoverflow.com
);
XYPlot plot = (XYPlot) chart.getPlot();
plot.setDomainPannable(true);
plot.setRangePannable(true);
XYStepRenderer renderer = new XYStepRenderer();
renderer.setBaseShapesVisible(true);
renderer.setSeriesStroke(0, new BasicStroke(2.0f));
renderer.setSeriesStroke(1, new BasicStroke(2.0f));
renderer.setBaseToolTipGenerator(new StandardXYToolTipGenerator());
renderer.setDefaultEntityRadius(6);
plot.setRenderer(renderer);
代码示例来源:origin: com.atlassian.confluence.extra.chart/chart-plugin
/**
* Utility method to set the default style of the XY Step Charts
*
* @param chart {@link JFreeChart} to style
*/
private static void setXYStepChartDefaults(JFreeChart chart)
{
ChartUtil.setDefaults(chart);
XYPlot plot = (XYPlot) chart.getPlot();
plot.setDomainGridlinesVisible(false);
// renderer
XYStepRenderer renderer = (XYStepRenderer) plot.getRenderer();
renderer.setBaseItemLabelFont(ChartDefaults.defaultFont);
renderer.setBaseStroke(ChartDefaults.defaultStroke);
renderer.setShapesVisible(false);
for (int j = 0; j < ChartDefaults.darkColors.length; j++)
{
renderer.setSeriesStroke(j, ChartDefaults.defaultStroke);
renderer.setSeriesPaint(j, ChartDefaults.darkColors[j]);
}
}
代码示例来源:origin: jfree/jfreechart
if (!getItemVisible(series, item)) {
return;
Paint seriesPaint = getItemPaint(series, item);
Stroke seriesStroke = getItemStroke(series, item);
g2.setPaint(seriesPaint);
g2.setStroke(seriesStroke);
drawLine(g2, state.workingLine, transY0, transX0, transY1,
transX1, dataArea);
double transXs = transX0 + (getStepPoint()
drawLine(g2, state.workingLine, transY0, transX0, transY0,
transXs, dataArea);
drawLine(g2, state.workingLine, transY0, transXs, transY1,
transXs, dataArea);
drawLine(g2, state.workingLine, transY1, transXs, transY1,
transX1, dataArea);
drawLine(g2, state.workingLine, transX0, transY0, transX1,
transY1, dataArea);
double transXs = transX0 + (getStepPoint()
drawLine(g2, state.workingLine, transX0, transY0, transXs,
transY0, dataArea);
drawLine(g2, state.workingLine, transXs, transY0, transXs,
transY1, dataArea);
代码示例来源:origin: pentaho/pentaho-platform
break;
case STEP_CHART_TYPE:
renderer = new XYStepRenderer();
break;
case STEP_AREA_CHART_TYPE:
.getLineWidth() ) );
XYPlot plot = new XYPlot( chartDefinition, domainAxis, rangeAxis, renderer );
JFreeChartEngine.updatePlot( plot, chartDefinition );
代码示例来源:origin: stackoverflow.com
XYStepRenderer renderer = new XYStepRenderer();
renderer.setBaseShapesVisible(true);
renderer.setSeriesStroke(0, new BasicStroke(2.0f));
renderer.setSeriesStroke(1, new BasicStroke(2.0f));
renderer.setBaseToolTipGenerator(new StandardXYToolTipGenerator());
renderer.setDefaultEntityRadius(6);
plot.setRenderer(renderer);
代码示例来源:origin: org.codehaus.jtstand/jtstand-chart
/**
* Constructs a new renderer with the specified tool tip and URL
* generators.
*
* @param toolTipGenerator the item label generator (<code>null</code>
* permitted).
* @param urlGenerator the URL generator (<code>null</code> permitted).
*/
public XYStepRenderer(XYToolTipGenerator toolTipGenerator,
XYURLGenerator urlGenerator) {
super();
setBaseToolTipGenerator(toolTipGenerator);
setURLGenerator(urlGenerator);
setBaseShapesVisible(false);
}
代码示例来源:origin: jfree/jfreechart
/**
* Sets the step point and sends a {@link RendererChangeEvent} to all
* registered listeners.
*
* @param stepPoint the step point (in the range 0.0 to 1.0)
*
* @see #getStepPoint()
*
* @since 1.0.10
*/
public void setStepPoint(double stepPoint) {
if (stepPoint < 0.0d || stepPoint > 1.0d) {
throw new IllegalArgumentException(
"Requires stepPoint in [0.0;1.0]");
}
this.stepPoint = stepPoint;
fireChangeEvent();
}
代码示例来源:origin: jfree/jfreechart
urlGenerator = new StandardXYURLGenerator();
XYItemRenderer renderer = new XYStepRenderer(toolTipGenerator,
urlGenerator);
XYPlot plot = new XYPlot(dataset, xAxis, yAxis, null);
plot.setRenderer(renderer);
plot.setOrientation(orientation);
plot.setDomainCrosshairVisible(false);
plot.setRangeCrosshairVisible(false);
代码示例来源:origin: org.codehaus.jtstand/jtstand-chart
if (!getItemVisible(series, item)) {
return;
Paint seriesPaint = getItemPaint(series, item);
Stroke seriesStroke = getItemStroke(series, item);
g2.setPaint(seriesPaint);
g2.setStroke(seriesStroke);
drawLine(g2, state.workingLine, transY0, transX0, transY1,
transX1);
double transXs = transX0 + (getStepPoint()
drawLine(g2, state.workingLine, transY0, transX0, transY0,
transXs);
drawLine(g2, state.workingLine, transY0, transXs, transY1,
transXs);
drawLine(g2, state.workingLine, transY1, transXs, transY1,
transX1);
drawLine(g2, state.workingLine, transX0, transY0, transX1,
transY1);
double transXs = transX0 + (getStepPoint()
drawLine(g2, state.workingLine, transX0, transY0, transXs,
transY0);
drawLine(g2, state.workingLine, transXs, transY0, transXs,
transY1);
代码示例来源:origin: pentaho/pentaho-platform
break;
case STEP_CHART_TYPE:
renderer = new XYStepRenderer();
break;
case STEP_AREA_CHART_TYPE:
.getLineWidth() ) );
XYPlot plot = new XYPlot( chartDefinition, domainAxis, rangeAxis, renderer );
JFreeChartEngine.updatePlot( plot, chartDefinition );
代码示例来源:origin: org.codehaus.jtstand/jtstand-chart
/**
* Sets the step point and sends a {@link RendererChangeEvent} to all
* registered listeners.
*
* @param stepPoint the step point (in the range 0.0 to 1.0)
*
* @see #getStepPoint()
*
* @since 1.0.10
*/
public void setStepPoint(double stepPoint) {
if (stepPoint < 0.0d || stepPoint > 1.0d) {
throw new IllegalArgumentException(
"Requires stepPoint in [0.0;1.0]");
}
this.stepPoint = stepPoint;
fireChangeEvent();
}
代码示例来源:origin: kiegroup/optaplanner
XYPlot plot = createPlot(benchmarkReport, scoreLevelIndex);
XYItemRenderer renderer = new XYStepRenderer();
plot.setRenderer(renderer);
XYSeriesCollection seriesCollection = new XYSeriesCollection();
for (XYSeries series : constraintIdToWeightSeriesMapList.get(scoreLevelIndex).values()) {
seriesCollection.addSeries(series);
plot.setDataset(seriesCollection);
String scoreLevelLabel = subSingleBenchmarkResult.getSingleBenchmarkResult().getProblemBenchmarkResult()
.findScoreLevelLabel(scoreLevelIndex);
代码示例来源:origin: kiegroup/optaplanner
List<XYSeries> seriesList = new ArrayList<>(BenchmarkReport.CHARTED_SCORE_LEVEL_SIZE);
XYItemRenderer renderer = new XYStepRenderer();
if (singleBenchmarkResult.hasAllSuccess()) {
StepScoreSubSingleStatistic subSingleStatistic = (StepScoreSubSingleStatistic)
plotList.add(createPlot(benchmarkReport, i));
plotList.get(i).setDataset(seriesIndex, new XYSeriesCollection(seriesList.get(i)));
plotList.get(i).setRenderer(seriesIndex, renderer);
代码示例来源:origin: kiegroup/optaplanner
List<XYSeries> seriesList = new ArrayList<>(BenchmarkReport.CHARTED_SCORE_LEVEL_SIZE);
XYItemRenderer renderer = new XYStepRenderer();
if (singleBenchmarkResult.hasAllSuccess()) {
BestScoreSubSingleStatistic subSingleStatistic = (BestScoreSubSingleStatistic)
plotList.add(createPlot(benchmarkReport, i));
plotList.get(i).setDataset(seriesIndex, new XYSeriesCollection(seriesList.get(i)));
plotList.get(i).setRenderer(seriesIndex, renderer);
我正在尝试使用 (X,Y) 形式的 XY 点数组中的三个 XY 点找到最大面积。 我目前收到错误 called object type 'double' is not a function or fu
我在屏幕上设定的 XY 位置(例如 x=100,y=200)有一个点 (A),在屏幕上随机的 XY 位置(例如 x=50)有另一个点 (B) , y = 50)。 我想沿直线将点 B 移向点 A。 如
在我的项目中,每次打开 JSP 时我都必须分配一个变量。我用小脚本试过了 在 JSP 和 EL 中 ${}返回变量。 但是好像不行。 korrekteAntwort=${}后出现错误, 难道不
这个问题在这里已经有了答案: Bind and Destructure block arguments (3 个答案) 关闭 4 年前。 鉴于以下内容目前在 Ruby 中的工作方式类似于 Haske
#include int main(double x, double y, double x1, double y1, double x2, double y2) { // First co
我有一个函数可以根据任意数量的字典(每个字典代表图表上的一条线)生成 XY 散点图,每个字典都包含一个日期键和一个数值。到目前为止,这些值似乎在 Y 轴上有效,但日期轴 (X) 似乎已损坏。每次我从字
尝试绘制一个 xy 散点图,其中 z 值由 xy 点的颜色表示。 数据: 1.1, 32.27, 19.4 1.2, 21.34, 18 1.4, 47.45, 19.4 R代码: inp <-
我有以下代码: var favourites = JSON.parse(localStorage.getItem("favourites")); Service.all().then(function
我确实在对齐 rec 标签中的文本时遇到问题。遵循代码和两张描述案例的图片。 HTML: DACH 我确实想将文本左对齐到 rect-tag 的开头。附件是来自 Debug模式的图片,
我在 MATLAB 中有一个 x-y 散点图,想在每个点上放置一个数据标签。我似乎无法在文档中找到它。可能吗? 最佳答案 例子: p = rand(10,2); scatter(p(:,1), p(:
本文整理了Java中com.androidplot.xy.YValueMarker类的一些代码示例,展示了YValueMarker类的具体用法。这些代码示例主要来源于Github/Stackoverf
本文整理了Java中com.androidplot.xy.ZoomEstimator类的一些代码示例,展示了ZoomEstimator类的具体用法。这些代码示例主要来源于Github/Stackove
我花了很多时间寻找它,但找不到。如果这是一个基本问题,请不要轰炸我:) 我想用以下向量生成散点图 > x [1] "a" "b" "c" "d" > y [1] 5 6 3 4 我使用了 xyplot
这似乎微不足道 R问题,但我没有找到任何令人信服的解决方案。我想翻转 X 轴变为 Y 的图,反之亦然。在箱线图中有一个 horiz="T"选项,但不在 plot() 中. 这是我的情节: plot(r
This问题解释了如何在特定位置添加网格 点阵图(即相当于 两个 abline() 用于正常绘图)。我的问题是当 我尝试添加一个常规网格(相当于调用 grid() 对于正常情节)......情节的内容
我正在寻找创建 xy 图的 GWT api/示例。这是我在 powerpoint 中制作的示例图片。将有另外两个图,如下例所示,每个点都可以点击,然后在另一个图上突出显示。有没有办法在 GWT 中使用
我想将两个时间序列图表放置在彼此之上共享相同的时域轴,都具有多个数据集。 chart1 = ChartFactory.createTimeSeriesChart("", "", "", tsc1, t
我绘制了以下内容: t = data.frame(Sample=c('1','1','1','2','2','2'), X=c(12,13,14,12,11,15), Y=c(4,3,5,1,2,3)
我有一个 CAD 应用程序,我正在尝试为其构建插件,并且我需要能够选择直线和圆弧。我不能直接从应用程序中执行此操作。在我的代码中,我想开始用鼠标徒手绘制一个窗口矩形。通过 API,我可以确定刚刚绘制的
我想将 2 个变量的函数值显示为“位图”图像,例如 x+y。所以我尝试了这个,基于 http://gnuplot.sourceforge.net/demo/heatmaps.html : # Colo
我是一名优秀的程序员,十分优秀!