/**
* Returns the position within each time period that is used for the X
* value when the collection is used as an
* {@link org.jfree.data.xy.XYDataset}.
*
* @return The anchor position (never <code>null</code>).
*/
/**
* Returns the position within each time period that is used for the X
* value.
*
* @return The anchor position (never <code>null</code>).
*
* @see #setXPosition(TimePeriodAnchor)
*/
public TimePeriodAnchor getXPosition() {
return this.xPosition;
}
/**
* Sets the position within each time period that is used for the X values
* when the collection is used as an {@link XYDataset}, then sends a
* {@link DatasetChangeEvent} is sent to all registered listeners.
*
* @param anchor the anchor position (<code>null</code> not permitted).
*/
/**
* Sets the position within each time period that is used for the X values,
* then sends a {@link DatasetChangeEvent} to all registered listeners.
*
* @param anchor the anchor position (<code>null</code> not permitted).
*
* @see #getXPosition()
*/
public void setXPosition(TimePeriodAnchor anchor) {
if (anchor == null) {
throw new IllegalArgumentException("Null \'anchor\' argument.");
}
this.xPosition = anchor;
notifyListeners(new DatasetChangeEvent(this, this ));
}
|