// LINES VISIBLE
/**
* Returns the flag used to control whether or not the shape for an item is
* visible.
*
* @param series the series index (zero-based).
* @param item the item index (zero-based).
*
* @return A boolean.
*/
/**
* Returns the flag used to control whether or not the line for an item is
* visible.
*
* @param series the series index (zero-based).
* @param item the item index (zero-based).
*
* @return A boolean.
*/
public boolean getItemLineVisible(int series, int item) {
Boolean flag = this.linesVisible;
if (flag == null) {
flag = getSeriesLinesVisible(series);
}
if (flag != null) {
return flag.booleanValue();
}
else {
return this.baseLinesVisible;
}
}
/**
* Returns a flag that controls whether or not lines are drawn for ALL
* series. If this flag is <code>null</code>, then the "per series"
* settings will apply.
*
* @return A flag (possibly <code>null</code>).
*
* @see #setLinesVisible(Boolean)
*
* @deprecated As of 1.0.7, use the per-series and base level settings.
*/
/**
* Returns a flag that controls whether or not lines are drawn for ALL
* series. If this flag is <code>null</code>, then the "per series"
* settings will apply.
*
* @return A flag (possibly <code>null</code>).
*
* @see #setLinesVisible(Boolean)
*
* @deprecated As of 1.0.7 (the override facility is unnecessary, just
* use the per-series and base (default) settings).
*/
public Boolean getLinesVisible() {
return this.linesVisible;
}
/**
* Sets a flag that controls whether or not lines are drawn between the
* items in ALL series, and sends a {@link RendererChangeEvent} to all
* registered listeners. You need to set this to <code>null</code> if you
* want the "per series" settings to apply.
*
* @param visible the flag (<code>null</code> permitted).
*
* @see #getLinesVisible()
*
* @deprecated As of 1.0.7, use the per-series and base level settings.
*/
/**
* Sets a flag that controls whether or not lines are drawn between the
* items in ALL series, and sends a {@link RendererChangeEvent} to all
* registered listeners. You need to set this to <code>null</code> if you
* want the "per series" settings to apply.
*
* @param visible the flag (<code>null</code> permitted).
*
* @see #getLinesVisible()
*
* @deprecated As of 1.0.7 (the override facility is unnecessary, just
* use the per-series and base (default) settings).
*/
public void setLinesVisible(Boolean visible) {
this.linesVisible = visible;
fireChangeEvent();
}
/**
* Sets a flag that controls whether or not lines are drawn between the
* items in ALL series, and sends a {@link RendererChangeEvent} to all
* registered listeners.
*
* @param visible the flag.
*
* @see #getLinesVisible()
*
* @deprecated As of 1.0.7, use the per-series and base level settings.
*/
/**
* Sets a flag that controls whether or not lines are drawn between the
* items in ALL series, and sends a {@link RendererChangeEvent} to all
* registered listeners.
*
* @param visible the flag.
*
* @see #getLinesVisible()
*
* @deprecated As of 1.0.7 (the override facility is unnecessary, just
* use the per-series and base (default) settings).
*/
public void setLinesVisible(boolean visible) {
// we use BooleanUtilities here to preserve JRE 1.3.1 compatibility
setLinesVisible(BooleanUtilities.valueOf(visible));
}
/**
* Returns the flag used to control whether or not the lines for a series
* are visible.
*
* @param series the series index (zero-based).
*
* @return The flag (possibly <code>null</code>).
*
* @see #setSeriesLinesVisible(int, Boolean)
*/
public Boolean getSeriesLinesVisible(int series) {
return this.seriesLinesVisible.getBoolean(series);
}
/**
* Sets the 'lines visible' flag for a series and sends a
* {@link RendererChangeEvent} to all registered listeners.
*
* @param series the series index (zero-based).
* @param flag the flag (<code>null</code> permitted).
*
* @see #getSeriesLinesVisible(int)
*/
public void setSeriesLinesVisible(int series, Boolean flag) {
this.seriesLinesVisible.setBoolean(series, flag);
fireChangeEvent();
}
/**
* Sets the 'lines visible' flag for a series and sends a
* {@link RendererChangeEvent} to all registered listeners.
*
* @param series the series index (zero-based).
* @param visible the flag.
*
* @see #getSeriesLinesVisible(int)
*/
public void setSeriesLinesVisible(int series, boolean visible) {
setSeriesLinesVisible(series, BooleanUtilities.valueOf(visible));
}
/**
* Returns the base 'lines visible' attribute.
*
* @return The base flag.
*
* @see #setBaseLinesVisible(boolean)
*/
/**
* Returns the base 'lines visible' attribute.
*
* @return The base flag.
*
* @see #getBaseLinesVisible()
*/
public boolean getBaseLinesVisible() {
return this.baseLinesVisible;
}
/**
* Sets the base 'lines visible' flag and sends a
* {@link RendererChangeEvent} to all registered listeners.
*
* @param flag the flag.
*
* @see #getBaseLinesVisible()
*/
public void setBaseLinesVisible(boolean flag) {
this.baseLinesVisible = flag;
fireChangeEvent();
}
|