- 使用 Spring Initializr 创建 Spring Boot 应用程序
- 在Spring Boot中配置Cassandra
- 在 Spring Boot 上配置 Tomcat 连接池
- 将Camel消息路由到嵌入WildFly的Artemis上
本文整理了Java中org.jfree.chart.renderer.xy.XYAreaRenderer
类的一些代码示例,展示了XYAreaRenderer
类的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XYAreaRenderer
类的具体详情如下:
包路径:org.jfree.chart.renderer.xy.XYAreaRenderer
类名称:XYAreaRenderer
[英]Area item renderer for an XYPlot. This class can draw (a) shapes at each point, or (b) lines between points, or (c) both shapes and lines, or (d) filled areas, or (e) filled areas and shapes. The example shown here is generated by the XYAreaRendererDemo1.java program included in the JFreeChart demo collection:
[中]XYPlot的区域项渲染器。这门课可以绘制(a)每个点的形状,或(b)点之间的线,或(c)形状和线,或(d)填充区域,或(e)填充区域和形状。这里显示的示例由XYAreaRenderDemo1生成。JFreeChart演示集合中包含的java程序:
代码示例来源:origin: jfree/jfreechart
/**
* Returns a clone of the renderer.
*
* @return A clone.
*
* @throws CloneNotSupportedException if the renderer cannot be cloned.
*/
@Override
public Object clone() throws CloneNotSupportedException {
return super.clone();
}
代码示例来源:origin: org.codehaus.jtstand/jtstand-chart
/**
* Sets a flag that controls whether or not outlines of the areas are drawn
* and sends a {@link RendererChangeEvent} to all registered listeners.
*
* @param show the flag.
*
* @see #isOutline()
*/
public void setOutline(boolean show) {
this.showOutline = show;
fireChangeEvent();
}
代码示例来源:origin: jfree/jfreechart
if (!getItemVisible(series, item)) {
return;
plot.getRangeAxisEdge());
if (plot.getOrientation().isVertical()) {
moveTo(areaState.area, transX1, zero);
} else if (plot.getOrientation().isHorizontal()) {
moveTo(areaState.area, zero, transX1);
lineTo(areaState.area, transX1, transY1);
} else if (plot.getOrientation().isHorizontal()) {
lineTo(areaState.area, transY1, transX1);
Paint paint = getItemPaint(series, item);
Stroke stroke = getItemStroke(series, item);
g2.setPaint(paint);
g2.setStroke(stroke);
if (getPlotShapes()) {
shape = getItemShape(series, item);
if (orientation == PlotOrientation.VERTICAL) {
shape = ShapeUtils.createTranslatedShape(shape, transX1,
if (getPlotLines()) {
if (item > 0) {
if (plot.getOrientation() == PlotOrientation.VERTICAL) {
if (getPlotArea() && item > 0 && item == (itemCount - 1)) {
代码示例来源:origin: jfree/jfreechart
public LegendItem getLegendItem(int datasetIndex, int series) {
LegendItem result = null;
XYPlot xyplot = getPlot();
if (xyplot != null) {
XYDataset dataset = xyplot.getDataset(datasetIndex);
if (dataset != null) {
XYSeriesLabelGenerator lg = getLegendItemLabelGenerator();
String label = lg.generateLabel(dataset, series);
String description = label;
String toolTipText = null;
if (getLegendItemToolTipGenerator() != null) {
toolTipText = getLegendItemToolTipGenerator().generateLabel(
dataset, series);
if (getLegendItemURLGenerator() != null) {
urlText = getLegendItemURLGenerator().generateLabel(
dataset, series);
Paint paint = lookupSeriesPaint(series);
result = new LegendItem(label, description, toolTipText,
urlText, this.legendArea, paint);
result.setLabelFont(lookupLegendTextFont(series));
Paint labelPaint = lookupLegendTextPaint(series);
if (labelPaint != null) {
result.setLabelPaint(labelPaint);
代码示例来源:origin: com.xpn.xwiki.platform/xwiki-core
renderer = new XYAreaRenderer();
代码示例来源:origin: jfree/jfreechart
/**
* Tests the renderer for equality with an arbitrary object.
*
* @param obj the object ({@code null} permitted).
*
* @return A boolean.
*/
@Override
public boolean equals(Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof StackedXYAreaRenderer) || !super.equals(obj)) {
return false;
}
StackedXYAreaRenderer that = (StackedXYAreaRenderer) obj;
if (!PaintUtils.equal(this.shapePaint, that.shapePaint)) {
return false;
}
if (!ObjectUtils.equal(this.shapeStroke, that.shapeStroke)) {
return false;
}
return true;
}
代码示例来源:origin: org.codehaus.jtstand/jtstand-chart
if (!getItemVisible(series, item)) {
return;
Paint paint = getItemPaint(series, item);
Stroke stroke = getItemStroke(series, item);
g2.setPaint(paint);
g2.setStroke(stroke);
if (getPlotShapes()) {
shape = getItemShape(series, item);
if (orientation == PlotOrientation.VERTICAL) {
shape = ShapeUtilities.createTranslatedShape(shape, transX1,
if (getPlotLines()) {
if (item > 0) {
if (plot.getOrientation() == PlotOrientation.VERTICAL) {
if (getPlotArea() && item > 0 && item == (itemCount - 1)) {
paint = lookupSeriesFillPaint(series);
if (isOutline()) {
Shape area = areaState.area;
Stroke outlineStroke = lookupSeriesOutlineStroke(series);
if (outlineStroke instanceof BasicStroke) {
BasicStroke bs = (BasicStroke) outlineStroke;
g2.setPaint(lookupSeriesOutlinePaint(series));
代码示例来源:origin: org.codehaus.jtstand/jtstand-chart
XYPlot xyplot = getPlot();
if (xyplot != null) {
XYDataset dataset = xyplot.getDataset(datasetIndex);
if (dataset != null) {
XYSeriesLabelGenerator lg = getLegendItemLabelGenerator();
String label = lg.generateLabel(dataset, series);
String description = label;
String toolTipText = null;
if (getLegendItemToolTipGenerator() != null) {
toolTipText = getLegendItemToolTipGenerator().generateLabel(
dataset, series);
if (getLegendItemURLGenerator() != null) {
urlText = getLegendItemURLGenerator().generateLabel(
dataset, series);
Paint paint = lookupSeriesPaint(series);
result = new LegendItem(label, description, toolTipText,
urlText, this.legendArea, paint);
result.setLabelFont(lookupLegendTextFont(series));
Paint labelPaint = lookupLegendTextPaint(series);
if (labelPaint != null) {
result.setLabelPaint(labelPaint);
代码示例来源:origin: pentaho/pentaho-platform
switch ( chartDefinition.getChartType() ) {
case AREA_CHART_TYPE:
renderer = chartDefinition.isStacked() ? new StackedXYAreaRenderer2() : new XYAreaRenderer();
break;
default:
代码示例来源:origin: org.codehaus.jtstand/jtstand-chart
/**
* Tests the renderer for equality with an arbitrary object.
*
* @param obj the object (<code>null</code> permitted).
*
* @return A boolean.
*/
public boolean equals(Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof StackedXYAreaRenderer) || !super.equals(obj)) {
return false;
}
StackedXYAreaRenderer that = (StackedXYAreaRenderer) obj;
if (!PaintUtilities.equal(this.shapePaint, that.shapePaint)) {
return false;
}
if (!ObjectUtilities.equal(this.shapeStroke, that.shapeStroke)) {
return false;
}
return true;
}
代码示例来源:origin: org.codehaus.jtstand/jtstand-chart
plot.setRenderer(new XYAreaRenderer(XYAreaRenderer.AREA, tipGenerator,
urlGenerator));
JFreeChart chart = new JFreeChart(title, JFreeChart.DEFAULT_TITLE_FONT,
代码示例来源:origin: jfree/jfreechart
/**
* Sets a flag that controls whether or not outlines of the areas are drawn
* and sends a {@link RendererChangeEvent} to all registered listeners.
*
* @param show the flag.
*
* @see #isOutline()
*/
public void setOutline(boolean show) {
this.showOutline = show;
fireChangeEvent();
}
代码示例来源:origin: org.codehaus.jtstand/jtstand-chart
/**
* Returns a clone of the renderer.
*
* @return A clone.
*
* @throws CloneNotSupportedException if the renderer cannot be cloned.
*/
public Object clone() throws CloneNotSupportedException {
return super.clone();
}
代码示例来源:origin: pentaho/pentaho-platform
break;
case AREA_CHART_TYPE:
renderer = new XYAreaRenderer();
break;
case STEP_CHART_TYPE:
代码示例来源:origin: jfree/jfreechart
/**
* Sets the flag that controls whether or not the series fill paint is
* used to fill the area under the line and sends a
* {@link RendererChangeEvent} to all listeners.
*
* @param use the new flag value.
*
* @since 1.0.14
*/
public void setUseFillPaint(boolean use) {
this.useFillPaint = use;
fireChangeEvent();
}
代码示例来源:origin: org.n52.sensorweb/sensorwebclient-api
plot.setRenderer(datasetIndex, new XYAreaRenderer());
代码示例来源:origin: org.codehaus.jtstand/jtstand-chart
/**
* Sets the flag that controls whether or not the series fill paint is
* used to fill the area under the line and sends a
* {@link RendererChangeEvent} to all listeners.
*
* @param use the new flag value.
*
* @since 1.0.14
*/
public void setUseFillPaint(boolean use) {
this.useFillPaint = use;
fireChangeEvent();
}
代码示例来源:origin: jfree/jfreechart
plot.setRenderer(new XYAreaRenderer(XYAreaRenderer.AREA, tipGenerator,
urlGenerator));
JFreeChart chart = new JFreeChart(title, JFreeChart.DEFAULT_TITLE_FONT,
代码示例来源:origin: org.codehaus.jtstand/jtstand-chart
/**
* Sets the shape used as an area in each legend item and sends a
* {@link RendererChangeEvent} to all registered listeners.
*
* @param area the area (<code>null</code> not permitted).
*/
public void setLegendArea(Shape area) {
if (area == null) {
throw new IllegalArgumentException("Null 'area' argument.");
}
this.legendArea = area;
fireChangeEvent();
}
代码示例来源:origin: pentaho/pentaho-platform
break;
case AREA_CHART_TYPE:
renderer = new XYAreaRenderer();
break;
case STEP_CHART_TYPE:
我需要在每个渲染帧完成后拍摄屏幕截图,但我发现某些屏幕截图是重复的,所以我想知道是否可以在渲染完成之前保存屏幕截图。因此... renderer.render() 会阻塞直到完成渲染吗? 如果没有,有
web.py 骨架代码中的“render._keywords['globals']['render'] = render”是什么意思? http://webpy.org/skeleton/0.3 最佳
所以在我的 Nuxt universal-mode 应用程序中,我有时会出现错误: vue.runtime.esm.js:620 [Vue warn]: The client-side rendere
我想创建一个 portal-like effect使用 Bevy . Unity 似乎有一个 render texture实现这一目标。 有没有办法在 Bevy 中做同样的事情?如果没有, futur
我有一个看起来像这样的组件(非常简化的版本): const component = (props: PropTypes) => { const [allResultsVisible, setA
编辑:我调整了代码,但问题仍然存在。见下文 我有这个 p:selectOneRadio : 而这个 p:radioButton : 和 AData包含其
为了渲染部分我可以使用 render 'partial_name' 或 render partial: 'partial_name' 我开始知道 render 是 render partial 的简写
我注意到文章中的一些地方使用了 React.render() 和一些地方 ReactDOM.render()。这两者有什么具体区别吗? 最佳答案 这是 0.14 中引入的最新更改。他们将 React
我的代码是这样的: function render() { renderer.render( scene, camera ); renderer.clear(); } 我想知道为什么它
我目前正在实现 useSWR 以便从我的 express 和 mongo-db 后端获取数据。我能够从数据库中成功获取数据没问题。以下是我用来实现此目的的代码: ```//SWR method for
我只有在按照 React native - "this.setState is not a function" trying to animate background color? 的建议合并了 u
所以我有一个大的纹理,被分成 64x64 block 。 我使用将其加载到 LibGDX texture = new Texture("texturemap.png"); regions = Text
我对放置 @Scripts.Render 和 @Styles.Render 的位置感到很困惑。理想情况下,我会将它们全部放在 head 部分中,但出乎意料的是,例如 @Scripts.Render("
我正在尝试使用 jamon 来收集使用 Tapestry 的网站的统计信息(呈现网页的时间)。 我怎样才能拥有 服务器收到请求时执行的方法,即渲染开始时? 响应全部发送完毕,即渲染结束时执行的方法 ?
在我的 React 应用程序中,我想要渲染一个 prop 值,但直到渲染完成后更新 props 后它才存在。 this.props.users 是一个对象,因此我使用 Object.keys() 转换
我正在使用 React 的钩子(Hook),我希望有一个从数据库中检索到的值作为初始值。但是,我收到以下错误: Invariant Violation: Invariant Violation: Re
我正在尝试按照以下代码将多个场景包含到单个 webgl 渲染器中: renderer.render(scene1, camera); renderer.render(scene2, camera);
我在我的 xhtml 页面中使用此代码,当我运行应用程序时,元描述仍在呈现。我想根据某些条件使用元描述标签。主布局: ..........
我正在使用react-native-render-html来渲染html。renderers方法允许我提供自定义函数来呈现特定标签。不过,我想使用源代码中的原始内部 HTML 将子组件替换为我的自定义
我有一个网格,可以渲染可变高度的卡片。 为了获取卡片的高度,我将卡片渲染在 ReactHeight 中。 ( https://github.com/nkbt/react-height ),这让我可以在
我是一名优秀的程序员,十分优秀!