public abstract class SeriesRenderer extends java.lang.Object implements SeriesContainer, DataChangedListener
| Constructor and Description |
|---|
SeriesRenderer()
Initializes a new instance of the
SeriesRenderer class. |
| Modifier and Type | Method and Description |
|---|---|
void |
addPropertyChangeListener(java.beans.PropertyChangeListener listener) |
protected TextRenderer |
createTextRenderer(RenderContext context)
Creates a TextRenderer configured to draw the labels of associated series.
|
void |
dataChanged() |
int |
domainDimension(Series series)
Implements the SeriesContainer interface.
|
Brush |
effectiveFill(int seriesIndex,
int dataIndex,
RenderContext context)
Gets the brush that should be used to fill the representation of specified data item.
|
protected Brush |
effectiveLabelBackground(RenderContext context)
Gets the brush that should be used to render labels' background.
|
protected Pen |
effectiveLabelBorderPen(RenderContext context)
Gets the pen that should be used to render labels' borders.
|
Brush |
effectiveStroke(int seriesIndex,
int dataIndex,
RenderContext context)
Gets the brush that should be used to stroke the representation of specified data item.
|
abstract java.util.stream.Stream<Series> |
enumSeries()
Implements the SeriesContainer interface.
|
Brush |
getLabelBrush()
Gets the Brush that should be used to draw labels of data items.
|
java.lang.String |
getLabelFontName()
Gets the name of font that should be used to draw labels of data items.
|
java.lang.Double |
getLabelFontSize()
Gets the size of font that should be used to draw labels of data items.
|
java.util.EnumSet<FontStyle> |
getLabelFontStyle()
Gets the style of font that should be used to draw labels of data items.
|
SeriesStyle |
getSeriesStyle()
A SeriesStyle instance specifying the appearance of series associated with this renderer.
|
java.util.EnumSet<LabelKinds> |
getShowDataLabels()
Gets the kind of data labels to draw.
|
boolean |
getShowHighlight()
Gets a value indicating whether to highlight hovered data items.
|
boolean |
getShowToolTips()
Gets a value indicating whether to show tooltips.
|
HitResult |
hitTest(RenderContext context,
java.awt.geom.Point2D location)
Hit-tests the visual representation of the series for a data item.
|
protected void |
onPropertyChanged(java.lang.String propertyName,
java.lang.Object oldValue,
java.lang.Object newValue)
Raises the PropertyChanged event.
|
protected void |
onSeriesDataChanged() |
void |
removePropertyChangeListener(java.beans.PropertyChangeListener listener) |
SeriesStyle |
searchStyle(com.mindfusion.charting.StyleCheck check,
RenderContext context)
Returns a SeriesStyle object that meets specified criteria.
|
void |
setLabelBrush(Brush value)
Sets the Brush that should be used to draw labels of data items.
|
void |
setLabelFontName(java.lang.String value)
Sets the name of font that should be used to draw labels of data items.
|
void |
setLabelFontSize(java.lang.Double value)
Sets the size of font that should be used to draw labels of data items.
|
void |
setLabelFontStyle(java.util.EnumSet<FontStyle> value)
Sets the style of font that should be used to draw labels of data items.
|
void |
setSeriesStyle(SeriesStyle value)
A SeriesStyle instance specifying the appearance of series associated with this renderer.
|
void |
setShowDataLabels(java.util.EnumSet<LabelKinds> value)
Sets the kind of data labels to draw.
|
void |
setShowHighlight(boolean value)
Sets a value indicating whether to highlight hovered data items.
|
void |
setShowToolTips(boolean value)
Sets a value indicating whether to show tooltips.
|
protected void |
setToolTip(java.lang.String text,
java.awt.geom.Point2D location)
Sets tooltip text and location.
|
void |
startMeasureData(RenderContext context)
Called to reset measure accumulators at the beginning of a measure pass.
|
public SeriesRenderer()
SeriesRenderer class.public Brush effectiveFill(int seriesIndex, int dataIndex, RenderContext context)
seriesIndex - An integer index of a Series within the list of series rendered by this SeriesRenderer.dataIndex - An integer index of the data item in specified series.context - A RenderContext instance.public Brush effectiveStroke(int seriesIndex, int dataIndex, RenderContext context)
seriesIndex - An integer index of a Series within the list of series rendered by this SeriesRenderer.dataIndex - An integer index of the data item in specified series.context - A RenderContext instance.public SeriesStyle getSeriesStyle()
public void setSeriesStyle(SeriesStyle value)
public SeriesStyle searchStyle(com.mindfusion.charting.StyleCheck check, RenderContext context)
check - A StyleCheck delegate that tests SeriesStyle for some criteria.context - A RenderContext instance used to access styles and theme from the dashboard hierarchy.protected Brush effectiveLabelBackground(RenderContext context)
context - A RenderContext instance.Brush -derived class.protected Pen effectiveLabelBorderPen(RenderContext context)
context - A RenderContext instance.Pen instance.protected TextRenderer createTextRenderer(RenderContext context)
context - A RenderContext instance.TextRenderer instance.protected void setToolTip(java.lang.String text,
java.awt.geom.Point2D location)
text - A string specifying tooltip text.location - A Point2D specifying tooltip location.public HitResult hitTest(RenderContext context, java.awt.geom.Point2D location)
context - A RenderContext instance.location - A Point2D specifying where to look for data items.public void startMeasureData(RenderContext context)
context - A RenderContext instance.public java.lang.String getLabelFontName()
public void setLabelFontName(java.lang.String value)
public java.lang.Double getLabelFontSize()
public void setLabelFontSize(java.lang.Double value)
public java.util.EnumSet<FontStyle> getLabelFontStyle()
public void setLabelFontStyle(java.util.EnumSet<FontStyle> value)
public Brush getLabelBrush()
public void setLabelBrush(Brush value)
public java.util.EnumSet<LabelKinds> getShowDataLabels()
public void setShowDataLabels(java.util.EnumSet<LabelKinds> value)
public boolean getShowHighlight()
public void setShowHighlight(boolean value)
value - true to highlight hovered data items, or false otherwise.public boolean getShowToolTips()
public void setShowToolTips(boolean value)
value - true to show tooltips, or false otherwise.protected void onPropertyChanged(java.lang.String propertyName,
java.lang.Object oldValue,
java.lang.Object newValue)
propertyName - public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
public void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
public abstract java.util.stream.Stream<Series> enumSeries()
enumSeries in interface SeriesContainerpublic int domainDimension(Series series)
domainDimension in interface SeriesContainerseries - A Series in this container.public void dataChanged()
dataChanged in interface DataChangedListenerprotected void onSeriesDataChanged()