I modified and recompiled the library...
To do so, in IAxis.java the following code was added
/**
* The property key defining the <code>color</code> property. Use in
* combination with
* {@link #addPropertyChangeListener(String, PropertyChangeListener)}.
*/
public static final String PROPERTY_COLOR = "IAxis.PROPERTY_COLOR";
/**
* Returns the color of the axis
* @return The chosen java.awt.Color or null if the decision for the color
* should be made by the corresponding <code>Chart2D</code>.
*/
public Color getColor();
/**
* Set a <code>java.awt.Color</code> for this axis.
* <p>
*
* @param color
* the <tt>Color</tt> to set.
*/
public abstract void setColor(Color color);
In AAxis.java the following code was added:
/** The color property. */
private Color m_color = Color.black;
/**
* Get the <code>Color</code> this color will be painted with.
* <p>
*
* @return the <code>Color</code> of this instance
*/
public final Color getColor() {
return this.m_color;
}
/**
* <p>
* Set the <code>Color</code> this axis will be painted with.
* </p>
*
* @param color
* the <code>Color</code> this trace will be painted with.
*/
public final void setColor(final Color color) {
final Color oldValue = this.m_color;
this.m_color = color;
if (!this.m_color.equals(oldValue)) {
this.m_propertyChangeSupport.firePropertyChange(IAxis.PROPERTY_COLOR, oldValue, this.m_color);
}
}
Finally two methods were modified in paintAxisYLeft and paintAxisYRight
add
g2d.setColor(this.getColor());
before the line:
g2d.drawLine(xAxisLine, yAxisStart, xAxisLine, yAxisEnd);
and add
g2d.setColor(this.getColor());
before the line:
tickPainter.paintYTick(xAxisLine, tmp, label.isMajorTick(), true, g2d);
Hope this can be added to the next release...