/** * 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
/** * 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
chart.getPlot().setOutlinePaint(Color.WHITE); } else { chart.getPlot().setOutlinePaint(Color.DARK_GRAY);
/** * 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 ); }
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)); } }
plot.setOutlinePaint(TRANSPARENT_PAINT);
plot.setBackgroundPaint(this.plotBackgroundPaint); plot.setOutlinePaint(this.plotOutlinePaint);
plot.setOutlinePaint(getOutlinePaint()); plot.setOutlineStroke(getOutlineStroke()); plot.setBackgroundPaint(getBackgroundPaint());
plot.setOutlinePaint(getOutlinePaint()); plot.setOutlineStroke(getOutlineStroke()); plot.setBackgroundPaint(getBackgroundPaint());
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())); } }
plot.setBackgroundPaint(this.plotBackgroundPaint); plot.setOutlinePaint(this.plotOutlinePaint);
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);