📄 xyitemrenderer.java
字号:
* @param series the series (zero-based index).
*
* @return the stroke (never <code>null</code>).
*/
public Stroke getSeriesOutlineStroke(int series);
/**
* Sets the outline stroke for ALL series and sends a {@link RendererChangeEvent} to
* all registered listeners.
*
* @param stroke the stroke (<code>null</code> permitted).
*/
public void setOutlineStroke(Stroke stroke);
/**
* Sets the outline stroke used for a series and sends a {@link RendererChangeEvent}
* to all registered listeners.
*
* @param series the series index (zero-based).
* @param stroke the stroke (<code>null</code> permitted).
*/
public void setSeriesOutlineStroke(int series, Stroke stroke);
/**
* Returns the base outline stroke.
*
* @return the stroke (never <code>null</code>).
*/
public Stroke getBaseOutlineStroke();
/**
* Sets the base outline stroke and sends a {@link RendererChangeEvent} to all
* registered listeners.
*
* @param stroke the stroke (<code>null</code> not permitted).
*/
public void setBaseOutlineStroke(Stroke stroke);
// SHAPE
/**
* Returns a shape used to represent a data item.
*
* @param row the row (or series) index (zero-based).
* @param column the column (or category) index (zero-based).
*
* @return the shape (never <code>null</code>).
*/
public Shape getItemShape(int row, int column);
/**
* Returns a shape used to represent the items in a series.
*
* @param series the series (zero-based index).
*
* @return the shape (never <code>null</code>).
*/
public Shape getSeriesShape(int series);
/**
* Sets the shape for ALL series (optional) and sends a {@link RendererChangeEvent}
* to all registered listeners.
*
* @param shape the shape (<code>null</code> permitted).
*/
public void setShape(Shape shape);
/**
* Sets the shape used for a series and sends a {@link RendererChangeEvent} to all
* registered listeners.
*
* @param series the series index (zero-based).
* @param shape the shape (<code>null</code> permitted).
*/
public void setSeriesShape(int series, Shape shape);
/**
* Returns the base shape.
*
* @return the shape (never <code>null</code>).
*/
public Shape getBaseShape();
/**
* Sets the base shape and sends a {@link RendererChangeEvent} to all
* registered listeners.
*
* @param shape the shape (<code>null</code> not permitted).
*/
public void setBaseShape(Shape shape);
// ITEM LABELS VISIBLE
/**
* Returns <code>true</code> if an item label is visible, and <code>false</code> otherwise.
*
* @param row the row index (zero-based).
* @param column the column index (zero-based).
*
* @return a boolean.
*/
public boolean isItemLabelVisible(int row, int column);
/**
* Returns <code>true</code> if the item labels for a series are visible, and
* <code>false</code> otherwise.
*
* @param series the series index (zero-based).
*
* @return a boolean.
*/
public boolean isSeriesItemLabelsVisible(int series);
/**
* Sets a flag that controls whether or not the item labels for ALL series are visible.
*
* @param visible the flag.
*/
public void setItemLabelsVisible(boolean visible);
/**
* Sets a flag that controls whether or not the item labels for ALL series are visible.
*
* @param visible the flag (<code>null</code> permitted).
*/
public void setItemLabelsVisible(Boolean visible);
/**
* Sets the visibility of item labels for ALL series and, if requested, sends a
* {@link RendererChangeEvent} to all registered listeners.
*
* @param visible a flag that controls whether or not the item labels are visible
* (<code>null</code> permitted).
* @param notify a flag that controls whether or not listeners are notified.
*/
public void setItemLabelsVisible(Boolean visible, boolean notify);
/**
* Sets a flag that controls the visibility of the item labels for a series.
*
* @param series the series index (zero-based).
* @param visible the flag.
*/
public void setSeriesItemLabelsVisible(int series, boolean visible);
/**
* Sets a flag that controls the visibility of the item labels for a series.
*
* @param series the series index (zero-based).
* @param visible the flag (<code>null</code> permitted).
*/
public void setSeriesItemLabelsVisible(int series, Boolean visible);
/**
* Sets the visibility of item labels for a series and, if requested, sends a
* {@link RendererChangeEvent} to all registered listeners.
*
* @param series the series index (zero-based).
* @param visible the visible flag.
* @param notify a flag that controls whether or not listeners are notified.
*/
public void setSeriesItemLabelsVisible(int series, Boolean visible, boolean notify);
/**
* Returns the base setting for item label visibility.
*
* @return A flag (possibly <code>null</code>).
*/
public Boolean getBaseItemLabelsVisible();
/**
* Sets the base flag that controls whether or not item labels are visible.
*
* @param visible the flag.
*/
public void setBaseItemLabelsVisible(boolean visible);
/**
* Sets the base setting for item label visibility.
*
* @param visible the flag (<code>null</code> permitted).
*/
public void setBaseItemLabelsVisible(Boolean visible);
/**
* Sets the base visibility for item labels and, if requested, sends a
* {@link RendererChangeEvent} to all registered listeners.
*
* @param visible the visibility flag.
* @param notify a flag that controls whether or not listeners are notified.
*/
public void setBaseItemLabelsVisible(Boolean visible, boolean notify);
// LABEL GENERATOR
/**
* Returns the label generator for a data item.
*
* @param row the row index (zero based).
* @param column the column index (zero based).
*
* @return the generator (possibly <code>null</code>).
*/
public XYLabelGenerator getLabelGenerator(int row, int column);
/**
* Returns the label generator for a series.
*
* @param series the series index (zero based).
*
* @return the generator (possibly <code>null</code>).
*/
public XYLabelGenerator getSeriesLabelGenerator(int series);
/**
* Sets the item label generator for ALL series and sends a {@link RendererChangeEvent}
* to all registered listeners.
*
* @param generator the generator (<code>null</code> permitted).
*/
public void setLabelGenerator(XYLabelGenerator generator);
/**
* Sets the label generator for a series and sends a {@link RendererChangeEvent}
* to all registered listeners.
*
* @param series the series index (zero based).
* @param generator the generator (<code>null</code> permitted).
*/
public void setSeriesLabelGenerator(int series, XYLabelGenerator generator);
/**
* Returns the base item label generator.
*
* @return the generator (possibly <code>null</code>).
*/
public XYLabelGenerator getBaseLabelGenerator();
/**
* Sets the base item label generator and sends a {@link RendererChangeEvent}
* to all registered listeners.
*
* @param generator the generator (<code>null</code> permitted).
*/
public void setBaseLabelGenerator(XYLabelGenerator generator);
// TOOL TIP GENERATOR
/**
* Returns the tool tip generator for a data item.
*
* @param row the row index (zero based).
* @param column the column index (zero based).
*
* @return The generator (possibly <code>null</code>).
*/
public XYToolTipGenerator getToolTipGenerator(int row, int column);
/**
* Returns the tool tip generator for a series.
*
* @param series the series index (zero based).
*
* @return The generator (possibly <code>null</code>).
*/
public XYToolTipGenerator getSeriesToolTipGenerator(int series);
/**
* Sets the tool tip generator for ALL series and sends a {@link RendererChangeEvent}
* to all registered listeners.
*
* @param generator the generator (<code>null</code> permitted).
*/
public void setToolTipGenerator(XYToolTipGenerator generator);
/**
* Sets the tool tip generator for a series and sends a {@link RendererChangeEvent}
* to all registered listeners.
*
* @param series the series index (zero based).
* @param generator the generator (<code>null</code> permitted).
*/
public void setSeriesToolTipGenerator(int series, XYToolTipGenerator generator);
/**
* Returns the base tool tip generator.
*
* @return the generator (possibly <code>null</code>).
*/
public XYToolTipGenerator getBaseToolTipGenerator();
/**
* Sets the base tool tip generator and sends a {@link RendererChangeEvent}
* to all registered listeners.
*
* @param generator the generator (<code>null</code> permitted).
*/
public void setBaseToolTipGenerator(XYToolTipGenerator generator);
// URL GENERATOR
/**
* Returns the URL generator for HTML image maps.
*
* @return the URL generator (possibly null).
*/
public XYURLGenerator getURLGenerator();
/**
* Sets the URL generator for HTML image maps.
*
* @param urlGenerator the URL generator (null permitted).
*/
public void setURLGenerator(XYURLGenerator urlGenerator);
//// ITEM LABEL FONT /////////////////////////////////////////////////////////////////////////
/**
* Returns the font for an item label.
*
* @param row the row index (zero-based).
* @param column the column index (zero-based).
*
* @return The font (never <code>null</code>).
*/
public Font getItemLabelFont(int row, int column);
/**
* Returns the font used for all item labels. This may be <code>null</code>, in which case
* the per series font settings will apply.
*
* @return The font (possibly <code>null</code>).
*/
public Font getItemLabelFont();
/**
* Sets the item label font for ALL series and sends a {@link RendererChangeEvent} to all
* registered listeners. You can set this to <code>null</code> if you prefer to set the font
* on a per series basis.
*
* @param font the font (<code>null</code> permitted).
*/
public void setItemLabelFont(Font font);
/**
* Returns the font for all the item labels in a series.
*
* @param series the series index (zero-based).
*
* @return The font (possibly <code>null</code>).
*/
public Font getSeriesItemLabelFont(int series);
/**
* Sets the item label font for a series and sends a {@link RendererChangeEvent} to all
* registered listeners.
*
* @param series the series index (zero-based).
* @param font the font (<code>null</code> permitted).
*/
public void setSeriesItemLabelFont(int series, Font font);
/**
* Returns the base item label font (this is used when no other font setting is available).
*
* @return The font (<code>never</code> null).
*/
public Font getBaseItemLabelFont();
/**
* Sets the base item label font and sends a {@link RendererChangeEvent} to all
* registered listeners.
*
* @param font the font (<code>null</code> not permitted).
*/
public void setBaseItemLabelFont(Font font);
//// ITEM LABEL PAINT ///////////////////////////////////////////////////////////////////////
/**
* Returns the paint used to draw an item label.
*
* @param row the row index (zero based).
* @param column the column index (zero based).
*
* @return The paint (never <code>null</code>).
*/
public Paint getItemLabelPaint(int row, int column);
/**
* Returns the paint used for all item labels. This may be <code>null</code>, in which case
* the per series paint settings will apply.
*
* @return The paint (possibly <code>null</code>).
*/
public Paint getItemLabelPaint();
/**
* Sets the item label paint for ALL series and sends a {@link RendererChangeEvent} to all
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -