Java Code Examples for org.jfree.chart.axis.Axis#setAxisLineStroke()
The following examples show how to use
org.jfree.chart.axis.Axis#setAxisLineStroke() .
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: GenericChartTheme.java From jasperreports with GNU Lesser General Public License v3.0 | 6 votes |
protected void setAxisLine(Axis axis, Paint lineColor) { Boolean defaultAxisLineVisible = (Boolean)getDefaultValue(defaultAxisPropertiesMap, ChartThemesConstants.AXIS_LINE_VISIBLE); if (defaultAxisLineVisible != null && defaultAxisLineVisible) { Paint linePaint = lineColor != null ? lineColor : (Paint)getDefaultValue(defaultAxisPropertiesMap, ChartThemesConstants.AXIS_LINE_PAINT); if (linePaint != null) { axis.setAxisLinePaint(linePaint); } Stroke defaultAxisLineStroke = (Stroke)getDefaultValue(defaultAxisPropertiesMap, ChartThemesConstants.AXIS_LINE_STROKE); if (defaultAxisLineStroke != null) axis.setAxisLineStroke(defaultAxisLineStroke); } }
Example 2
Source File: SimpleChartTheme.java From jasperreports with GNU Lesser General Public License v3.0 | 6 votes |
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); } }
Example 3
Source File: ChartAxisFactory.java From rapidminer-studio with GNU Affero General Public License v3.0 | 5 votes |
public static void formatAxis(PlotConfiguration plotConfiguration, Axis axis) { Color axisColor = plotConfiguration.getAxisLineColor(); if (axis != null) { axis.setAxisLinePaint(axisColor); axis.setAxisLineStroke(new BasicStroke(plotConfiguration.getAxisLineWidth())); axis.setLabelPaint(axisColor); axis.setTickLabelPaint(axisColor); } }