org.jfree.chart.plot.Plot.setOutlinePaint()方法的使用及代码示例

x33g5p2x  于2022-01-26 转载在 其他  
字(4.2k)|赞(0)|评价(0)|浏览(133)

本文整理了Java中org.jfree.chart.plot.Plot.setOutlinePaint()方法的一些代码示例,展示了Plot.setOutlinePaint()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Plot.setOutlinePaint()方法的具体详情如下:
包路径:org.jfree.chart.plot.Plot
类名称:Plot
方法名:setOutlinePaint

Plot.setOutlinePaint介绍

[英]Sets the paint used to draw the outline of the plot area and sends a PlotChangeEvent to all registered listeners. If you set this attribute to null, no outline will be drawn.
[中]设置用于绘制打印区域轮廓的绘制,并向所有注册的侦听器发送PlotChangeEvent。如果将此属性设置为null,则不会绘制轮廓。

代码示例

代码示例来源:origin: jenkinsci/analysis-core-plugin

/**
 * Sets properties common to all plots of this plug-in.
 *
 * @param plot
 *            the plot to set the properties for
 */
// CHECKSTYLE:OFF
protected void setPlotProperties(final Plot plot) {
  plot.setBackgroundPaint(Color.WHITE);
  plot.setOutlinePaint(null);
  plot.setForegroundAlpha(0.8f);
  plot.setInsets(new RectangleInsets(0, 0, 0, 5.0));
}
// CHECKSTYLE:ON

代码示例来源:origin: org.hudsonci.plugins/analysis-core

/**
 * Sets properties common to all plots of this plug-in.
 *
 * @param plot
 *            the plot to set the properties for
 */
// CHECKSTYLE:OFF
protected void setPlotProperties(final Plot plot) {
  plot.setBackgroundPaint(Color.WHITE);
  plot.setOutlinePaint(null);
  plot.setForegroundAlpha(0.8f);
  plot.setInsets(new RectangleInsets(0, 0, 0, 5.0));
}
// CHECKSTYLE:ON

代码示例来源:origin: no.uib/jsparklines

chart.getPlot().setOutlinePaint(Color.WHITE);
} else {
  chart.getPlot().setOutlinePaint(Color.DARK_GRAY);

代码示例来源:origin: dhis2/dhis2-core

/**
 * Sets basic configuration including title font, subtitle, background paint and
 * anti-alias on the given JFreeChart.
 */
private void setBasicConfig( JFreeChart jFreeChart, BaseChart chart)
{
  jFreeChart.getTitle().setFont( TITLE_FONT );
  jFreeChart.setBackgroundPaint( DEFAULT_BACKGROUND_COLOR );
  jFreeChart.setAntiAlias( true );
  if ( !chart.isHideTitle() )
  {
    jFreeChart.addSubtitle( getSubTitle( chart ) );
  }
  Plot plot = jFreeChart.getPlot();
  plot.setBackgroundPaint( DEFAULT_BACKGROUND_COLOR );
  plot.setOutlinePaint( DEFAULT_BACKGROUND_COLOR );
}

代码示例来源:origin: com.xpn.xwiki.platform/xwiki-core

public static void customizePlot(Plot plot, ChartParams params)
{
  if (params.get(ChartParams.PLOT_BACKGROUND_COLOR) != null) {
    plot.setBackgroundPaint(params.getColor(ChartParams.PLOT_BACKGROUND_COLOR));
  }
  if (params.get(ChartParams.PLOT_BACKGROUND_ALPHA) != null) {
    plot.setBackgroundAlpha(params.getFloat(ChartParams.PLOT_BACKGROUND_ALPHA).floatValue());
  }
  if (params.get(ChartParams.PLOT_FOREGROUND_ALPHA) != null) {
    plot.setForegroundAlpha(params.getFloat(ChartParams.PLOT_FOREGROUND_ALPHA).floatValue());
  }
  if (params.get(ChartParams.PLOT_INSERTS) != null) {
    plot.setInsets(params.getRectangleInsets(ChartParams.PLOT_INSERTS));
  }
  if (params.get(ChartParams.PLOT_OUTLINE_COLOR) != null) {
    plot.setOutlinePaint(params.getColor(ChartParams.PLOT_OUTLINE_COLOR));
  }
  if (params.get(ChartParams.PLOT_OUTLINE_STROKE) != null) {
    plot.setOutlineStroke(params.getStroke(ChartParams.PLOT_OUTLINE_STROKE));
  }
}

代码示例来源:origin: jasperreports/jasperreports

plot.setOutlinePaint(TRANSPARENT_PAINT);

代码示例来源:origin: org.codehaus.jtstand/jtstand-chart

plot.setBackgroundPaint(this.plotBackgroundPaint);
plot.setOutlinePaint(this.plotOutlinePaint);

代码示例来源:origin: org.codehaus.jtstand/jtstand-chart

plot.setOutlinePaint(getOutlinePaint());
plot.setOutlineStroke(getOutlineStroke());
plot.setBackgroundPaint(getBackgroundPaint());

代码示例来源:origin: jfree/jfreechart

plot.setOutlinePaint(getOutlinePaint());
plot.setOutlineStroke(getOutlineStroke());
plot.setBackgroundPaint(getBackgroundPaint());

代码示例来源:origin: org.jboss.seam/jboss-seam-pdf

public void configurePlot(Plot plot) {
  if (getPlotBackgroundAlpha() != null) {
    plot.setBackgroundAlpha(getPlotBackgroundAlpha());
  }
  if (getPlotForegroundAlpha() != null) {
    plot.setForegroundAlpha(getPlotForegroundAlpha());
  }
  if (getPlotBackgroundPaint() != null) {
    plot.setBackgroundPaint(findColor(getPlotBackgroundPaint()));
  }
  if (getPlotOutlinePaint() != null) {
    plot.setOutlinePaint(findColor(getPlotOutlinePaint()));
  }
  if (getPlotOutlineStroke() != null) {
    plot.setOutlineStroke(findStroke(getPlotOutlineStroke()));
  }
}

代码示例来源:origin: jfree/jfreechart

plot.setBackgroundPaint(this.plotBackgroundPaint);
plot.setOutlinePaint(this.plotOutlinePaint);

代码示例来源:origin: datacleaner/DataCleaner

plot.setInsets(new RectangleInsets(UnitType.ABSOLUTE, 0d, 0d, 0d, 0d));
plot.setBackgroundPaint(WidgetUtils.BG_COLOR_BRIGHTEST);
plot.setOutlinePaint(WidgetUtils.BG_COLOR_BRIGHTEST);
plot.setOutlineVisible(true);

相关文章