📄 categoryitemrenderer.java
字号:
* @see #getBaseSeriesVisible()
*/
public void setBaseSeriesVisible(boolean visible, boolean notify);
// SERIES VISIBLE IN LEGEND (not yet respected by all renderers)
/**
* Returns <code>true</code> if the series should be shown in the legend,
* and <code>false</code> otherwise.
*
* @param series the series index.
*
* @return A boolean.
*/
public boolean isSeriesVisibleInLegend(int series);
/**
* Returns the flag that controls the visibility of ALL series in the
* legend. This flag overrides the per series and default settings - you
* must set it to <code>null</code> if you want the other settings to
* apply.
*
* @return The flag (possibly <code>null</code>).
*
* @see #setSeriesVisibleInLegend(Boolean)
*
* @deprecated This method should no longer be used (as of version 1.0.6).
* It is sufficient to rely on {@link #getSeriesVisibleInLegend(int)}
* and {@link #getBaseSeriesVisibleInLegend()}.
*/
public Boolean getSeriesVisibleInLegend();
/**
* Sets the flag that controls the visibility of ALL series in the legend
* and sends a {@link RendererChangeEvent} to all registered listeners.
* This flag overrides the per series and default settings - you must set
* it to <code>null</code> if you want the other settings to apply.
*
* @param visible the flag (<code>null</code> permitted).
*
* @see #getSeriesVisibleInLegend()
*
* @deprecated This method should no longer be used (as of version 1.0.6).
* It is sufficient to rely on {@link #setSeriesVisibleInLegend(int,
* Boolean)} and {@link #setBaseSeriesVisibleInLegend(boolean)}.
*/
public void setSeriesVisibleInLegend(Boolean visible);
/**
* Sets the flag that controls the visibility of ALL series in the legend
* and sends a {@link RendererChangeEvent} to all registered listeners.
* This flag overrides the per series and default settings - you must set
* it to <code>null</code> if you want the other settings to apply.
*
* @param visible the flag (<code>null</code> permitted).
* @param notify notify listeners?
*
* @see #getSeriesVisibleInLegend()
*
* @deprecated This method should no longer be used (as of version 1.0.6).
* It is sufficient to rely on {@link #setSeriesVisibleInLegend(int,
* Boolean, boolean)} and {@link #setBaseSeriesVisibleInLegend(boolean,
* boolean)}.
*/
public void setSeriesVisibleInLegend(Boolean visible, boolean notify);
/**
* Returns the flag that controls whether a series is visible in the
* legend. This method returns only the "per series" settings - to
* incorporate the override and base settings as well, you need to use the
* {@link #isSeriesVisibleInLegend(int)} method.
*
* @param series the series index (zero-based).
*
* @return The flag (possibly <code>null</code>).
*
* @see #setSeriesVisibleInLegend(int, Boolean)
*/
public Boolean getSeriesVisibleInLegend(int series);
/**
* Sets the flag that controls whether a series is visible in the legend
* and sends a {@link RendererChangeEvent} to all registered listeners.
*
* @param series the series index (zero-based).
* @param visible the flag (<code>null</code> permitted).
*
* @see #getSeriesVisibleInLegend(int)
*/
public void setSeriesVisibleInLegend(int series, Boolean visible);
/**
* Sets the flag that controls whether a series is visible in the legend
* and, if requested, sends a {@link RendererChangeEvent} to all registered
* listeners.
*
* @param series the series index.
* @param visible the flag (<code>null</code> permitted).
* @param notify notify listeners?
*
* @see #getSeriesVisibleInLegend(int)
*/
public void setSeriesVisibleInLegend(int series, Boolean visible,
boolean notify);
/**
* Returns the base visibility in the legend for all series.
*
* @return The base visibility.
*
* @see #setBaseSeriesVisibleInLegend(boolean)
*/
public boolean getBaseSeriesVisibleInLegend();
/**
* Sets the base visibility in the legend and sends a
* {@link RendererChangeEvent} to all registered listeners.
*
* @param visible the flag.
*
* @see #getBaseSeriesVisibleInLegend()
*/
public void setBaseSeriesVisibleInLegend(boolean visible);
/**
* Sets the base visibility in the legend and, if requested, sends
* a {@link RendererChangeEvent} to all registered listeners.
*
* @param visible the visibility.
* @param notify notify listeners?
*
* @see #getBaseSeriesVisibleInLegend()
*/
public void setBaseSeriesVisibleInLegend(boolean visible, boolean notify);
//// PAINT /////////////////////////////////////////////////////////////////
/**
* Returns the paint used to fill data items as they are drawn.
*
* @param row the row (or series) index (zero-based).
* @param column the column (or category) index (zero-based).
*
* @return The paint (never <code>null</code>).
*/
public Paint getItemPaint(int row, int column);
/**
* Sets the paint to be used for ALL series, and sends a
* {@link RendererChangeEvent} to all registered listeners. If this is
* <code>null</code>, the renderer will use the paint for the series.
*
* @param paint the paint (<code>null</code> permitted).
*
* @deprecated This method should no longer be used (as of version 1.0.6).
* It is sufficient to rely on {@link #setSeriesPaint(int, Paint)} and
* {@link #setBasePaint(Paint)}.
*/
public void setPaint(Paint paint);
/**
* Returns the paint used to fill an item drawn by the renderer.
*
* @param series the series index (zero-based).
*
* @return The paint (possibly <code>null</code>).
*
* @see #setSeriesPaint(int, Paint)
*/
public Paint getSeriesPaint(int series);
/**
* Sets the paint used for a series and sends a {@link RendererChangeEvent}
* to all registered listeners.
*
* @param series the series index (zero-based).
* @param paint the paint (<code>null</code> permitted).
*
* @see #getSeriesPaint(int)
*/
public void setSeriesPaint(int series, Paint paint);
// FIXME: add setSeriesPaint(int, Paint, boolean)?
/**
* Returns the base paint.
*
* @return The base paint (never <code>null</code>).
*
* @see #setBasePaint(Paint)
*/
public Paint getBasePaint();
/**
* Sets the base paint and sends a {@link RendererChangeEvent} to all
* registered listeners.
*
* @param paint the paint (<code>null</code> not permitted).
*
* @see #getBasePaint()
*/
public void setBasePaint(Paint paint);
// FIXME: add setBasePaint(int, Paint, boolean)?
//// FILL PAINT /////////////////////////////////////////////////////////
// /**
// * Returns the paint used to fill data items as they are drawn.
// *
// * @param row the row (or series) index (zero-based).
// * @param column the column (or category) index (zero-based).
// *
// * @return The paint (never <code>null</code>).
// */
// public Paint getItemFillPaint(int row, int column);
//
// /**
// * Returns the paint used to fill an item drawn by the renderer.
// *
// * @param series the series (zero-based index).
// *
// * @return The paint (possibly <code>null</code>).
// *
// * @see #setSeriesFillPaint(int, Paint)
// */
// public Paint getSeriesFillPaint(int series);
//
// /**
// * Sets the paint used for a series outline and sends a
// * {@link RendererChangeEvent} to all registered listeners.
// *
// * @param series the series index (zero-based).
// * @param paint the paint (<code>null</code> permitted).
// *
// * @see #getSeriesFillPaint(int)
// */
// public void setSeriesFillPaint(int series, Paint paint);
//
// /**
// * Returns the base outline paint.
// *
// * @return The paint (never <code>null</code>).
// *
// * @see #setBaseFillPaint(Paint)
// */
// public Paint getBaseFillPaint();
//
// /**
// * Sets the base outline paint and sends a {@link RendererChangeEvent} to
// * all registered listeners.
// *
// * @param paint the paint (<code>null</code> not permitted).
// *
// * @see #getBaseFillPaint()
// */
// public void setBaseFillPaint(Paint paint);
//// OUTLINE PAINT /////////////////////////////////////////////////////////
/**
* Returns the paint used to outline data items as they are drawn.
*
* @param row the row (or series) index (zero-based).
* @param column the column (or category) index (zero-based).
*
* @return The paint (never <code>null</code>).
*/
public Paint getItemOutlinePaint(int row, int column);
/**
* Sets the outline paint for ALL series (optional).
*
* @param paint the paint (<code>null</code> permitted).
*
* @deprecated This method should no longer be used (as of version 1.0.6).
* It is sufficient to rely on {@link #setSeriesOutlinePaint(int,
* Paint)} and {@link #setBaseOutlinePaint(Paint)}.
*/
public void setOutlinePaint(Paint paint);
/**
* Returns the paint used to outline an item drawn by the renderer.
*
* @param series the series (zero-based index).
*
* @return The paint (possibly <code>null</code>).
*
* @see #setSeriesOutlinePaint(int, Paint)
*/
public Paint getSeriesOutlinePaint(int series);
/**
* Sets the paint used for a series outline and sends a
* {@link RendererChangeEvent} to all registered listeners.
*
* @param series the series index (zero-based).
* @param paint the paint (<code>null</code> permitted).
*
* @see #getSeriesOutlinePaint(int)
*/
public void setSeriesOutlinePaint(int series, Paint paint);
// FIXME: add setSeriesOutlinePaint(int, Paint, boolean)?
/**
* Returns the base outline paint.
*
* @return The paint (never <code>null</code>).
*
* @see #setBaseOutlinePaint(Paint)
*/
public Paint getBaseOutlinePaint();
/**
* Sets the base outline paint and sends a {@link RendererChangeEvent} to
* all registered listeners.
*
* @param paint the paint (<code>null</code> not permitted).
*
* @see #getBaseOutlinePaint()
*/
public void setBaseOutlinePaint(Paint paint);
// FIXME: add setBaseOutlinePaint(Paint, boolean)?
//// STROKE ////////////////////////////////////////////////////////////////
/**
* Returns the stroke used to draw data items.
*
* @param row the row (or series) index (zero-based).
* @param column the column (or category) index (zero-based).
*
* @return The stroke (never <code>null</code>).
*/
public Stroke getItemStroke(int row, int column);
/**
* Sets the stroke for ALL series and sends a {@link RendererChangeEvent}
* to all registered listeners.
*
* @param stroke the stroke (<code>null</code> permitted).
*
* @deprecated This method should no longer be used (as of version 1.0.6).
* It is sufficient to rely on {@link #setSeriesStroke(int, Stroke)}
* and {@link #setBaseStroke(Stroke)}.
*/
public void setStroke(Stroke stroke);
/**
* Returns the stroke used to draw the items in a series.
*
* @param series the series (zero-based index).
*
* @return The stroke (never <code>null</code>).
*
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -