Java Code Examples for org.jfree.chart.axis.Axis#setAxisLineVisible()

The following examples show how to use org.jfree.chart.axis.Axis#setAxisLineVisible() . 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: SimpleChartTheme.java    From jasperreports with GNU Lesser General Public License v3.0 6 votes vote down vote up
protected void setAxisLine(Axis axis, Paint lineColor, AxisSettings axisSettings)
{
	Boolean axisLineVisible = axisSettings.getLineVisible();
	if (axisLineVisible == null || axisLineVisible)
	{
		Paint linePaint = lineColor;
		if (linePaint == null && axisSettings.getLinePaint() != null)
		{
			linePaint = axisSettings.getLinePaint().getPaint();
		}
		if (linePaint != null)
		{
			axis.setAxisLinePaint(linePaint);
		}
		Stroke axisLineStroke = axisSettings.getLineStroke();
		if (axisLineStroke != null)
			axis.setAxisLineStroke(axisLineStroke);
	}
	else
	{
		axis.setAxisLineVisible(false);
	}
}