/**
* Returns the location for a domain axis. If this hasn't been set
* explicitly, the method returns the location that is opposite to the
* primary domain axis location.
*
* @param index the axis index.
*
* @return The location (never <code>null</code>).
*
* @see #setDomainAxisLocation(int, AxisLocation)
*/
/**
* Returns the location for a range axis. If this hasn't been set
* explicitly, the method returns the location that is opposite to the
* primary range axis location.
*
* @param index the axis index.
*
* @return The location (never <code>null</code>).
*
* @see #setRangeAxisLocation(int, AxisLocation)
*/
public AxisLocation [[#variable1a89e3e0]](int index) {
AxisLocation result = null;
if (index < this. [[#variable1a89e340]].size()) {
result = (AxisLocation) this. [[#variable1a89e340]].get(index);
}
if (result == null) {
result = AxisLocation.getOpposite( [[#variable1a89e3e0]]());
}
return result;
}
/**
* Sets the location for a domain axis and sends a {@link PlotChangeEvent}
* to all registered listeners.
*
* @param index the axis index.
* @param location the location (<code>null</code> not permitted for index
* 0).
*
* @see #getDomainAxisLocation(int)
*/
/**
* Sets the location for a range axis and sends a {@link PlotChangeEvent}
* to all registered listeners.
*
* @param index the axis index.
* @param location the location (<code>null</code> permitted).
*
* @see #getRangeAxisLocation(int)
*/
public void [[#variable1a89e2c0]](int index, AxisLocation location) {
[[#variable1a89e2c0]](index, location, true);
}
/**
* Sets the axis location for a domain axis and, if requested, sends a
* {@link PlotChangeEvent} to all registered listeners.
*
* @param index the axis index.
* @param location the location (<code>null</code> not permitted for
* index 0).
* @param notify notify listeners?
*
* @since 1.0.5
*
* @see #getDomainAxisLocation(int)
* @see #setRangeAxisLocation(int, AxisLocation, boolean)
*/
/**
* Sets the axis location for a domain axis and, if requested, sends a
* {@link PlotChangeEvent} to all registered listeners.
*
* @param index the axis index.
* @param location the location (<code>null</code> not permitted for
* index 0).
* @param notify notify listeners?
*
* @since 1.0.5
*
* @see #getRangeAxisLocation(int)
* @see #setDomainAxisLocation(int, AxisLocation, boolean)
*/
public void [[#variable1a89e2c0]](int index, AxisLocation location, boolean notify) {
if (index == 0 && location == null) {
throw new IllegalArgumentException("Null \'location\' for index 0 not permitted.");
}
this. [[#variable1a89e340]].set(index, location);
if (notify) {
fireChangeEvent();
}
}
|