Java Code Examples for org.jfree.chart.plot.SpiderWebPlot#setLabelPaint()

The following examples show how to use org.jfree.chart.plot.SpiderWebPlot#setLabelPaint() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: StandardChartTheme.java    From openstock with GNU General Public License v3.0 4 votes vote down vote up
/**
 * Applies the attributes of this theme to a {@link SpiderWebPlot}.
 *
 * @param plot  the plot (<code>null</code> not permitted).
 */
protected void applyToSpiderWebPlot(SpiderWebPlot plot) {
    plot.setLabelFont(this.regularFont);
    plot.setLabelPaint(this.axisLabelPaint);
    plot.setAxisLinePaint(this.axisLabelPaint);
}
 
Example 2
Source File: StandardChartTheme.java    From ccu-historian with GNU General Public License v3.0 4 votes vote down vote up
/**
 * Applies the attributes of this theme to a {@link SpiderWebPlot}.
 *
 * @param plot  the plot (<code>null</code> not permitted).
 */
protected void applyToSpiderWebPlot(SpiderWebPlot plot) {
    plot.setLabelFont(this.regularFont);
    plot.setLabelPaint(this.axisLabelPaint);
    plot.setAxisLinePaint(this.axisLabelPaint);
}
 
Example 3
Source File: StandardChartTheme.java    From SIMVA-SoS with Apache License 2.0 4 votes vote down vote up
/**
 * Applies the attributes of this theme to a {@link SpiderWebPlot}.
 *
 * @param plot  the plot (<code>null</code> not permitted).
 */
protected void applyToSpiderWebPlot(SpiderWebPlot plot) {
    plot.setLabelFont(this.regularFont);
    plot.setLabelPaint(this.axisLabelPaint);
    plot.setAxisLinePaint(this.axisLabelPaint);
}
 
Example 4
Source File: ChartJFreeChartOutputRadar.java    From gama with GNU General Public License v3.0 4 votes vote down vote up
@Override
public void initChart_post_data_init(final IScope scope) {
	// TODO Auto-generated method stub
	super.initChart_post_data_init(scope);
	final SpiderWebPlot pp = (SpiderWebPlot) chart.getPlot();

	// final String sty = getStyle();
	// this.useSubAxis=false;
	// switch (sty) {
	// default: {
	if (this.series_label_position.equals("default")) {
		this.series_label_position = "legend";
	}
	// break;
	// }
	// }
	if (this.series_label_position.equals("xaxis")) {
		// this.useSubAxis=true;
	}

	if (!this.series_label_position.equals("legend")) {
		chart.getLegend().setVisible(false);
		// legend is useless, but I find it nice anyway... Could put back...
	}
	this.resetDomainAxis(scope);

	pp.setAxisLinePaint(axesColor);

	pp.setLabelFont(getLabelFont());
	if (textColor != null) {
		pp.setLabelPaint(textColor);
	}

	// if (ylabel != null && ylabel != "") {}
	if (this.series_label_position.equals("yaxis")) {
		// pp.getRangeAxis().setLabel(this.getChartdataset().getDataSeriesIds(scope).iterator().next());
		chart.getLegend().setVisible(false);
	}
	chart.getLegend().setVisible(true);

	if (xlabel != null && xlabel != "") {
		// pp.getDomainAxis().setLabel(xlabel);
	}

	if (this.series_label_position.equals("none")) {
		pp.setLabelPaint(this.backgroundColor);
	}

}
 
Example 5
Source File: StandardChartTheme.java    From ECG-Viewer with GNU General Public License v2.0 4 votes vote down vote up
/**
 * Applies the attributes of this theme to a {@link SpiderWebPlot}.
 *
 * @param plot  the plot (<code>null</code> not permitted).
 */
protected void applyToSpiderWebPlot(SpiderWebPlot plot) {
    plot.setLabelFont(this.regularFont);
    plot.setLabelPaint(this.axisLabelPaint);
    plot.setAxisLinePaint(this.axisLabelPaint);
}
 
Example 6
Source File: StandardChartTheme.java    From astor with GNU General Public License v2.0 4 votes vote down vote up
/**
 * Applies the attributes of this theme to a {@link SpiderWebPlot}.
 *
 * @param plot  the plot (<code>null</code> not permitted).
 */
protected void applyToSpiderWebPlot(SpiderWebPlot plot) {
    plot.setLabelFont(this.regularFont);
    plot.setLabelPaint(this.axisLabelPaint);
    plot.setAxisLinePaint(this.axisLabelPaint);
}
 
Example 7
Source File: StandardChartTheme.java    From buffer_bci with GNU General Public License v3.0 4 votes vote down vote up
/**
 * Applies the attributes of this theme to a {@link SpiderWebPlot}.
 *
 * @param plot  the plot (<code>null</code> not permitted).
 */
protected void applyToSpiderWebPlot(SpiderWebPlot plot) {
    plot.setLabelFont(this.regularFont);
    plot.setLabelPaint(this.axisLabelPaint);
    plot.setAxisLinePaint(this.axisLabelPaint);
}
 
Example 8
Source File: StandardChartTheme.java    From buffer_bci with GNU General Public License v3.0 4 votes vote down vote up
/**
 * Applies the attributes of this theme to a {@link SpiderWebPlot}.
 *
 * @param plot  the plot (<code>null</code> not permitted).
 */
protected void applyToSpiderWebPlot(SpiderWebPlot plot) {
    plot.setLabelFont(this.regularFont);
    plot.setLabelPaint(this.axisLabelPaint);
    plot.setAxisLinePaint(this.axisLabelPaint);
}