public class StackRenderer extends Renderer2D
SeriesRenderer for stacked graphics.| Modifier and Type | Class and Description |
|---|---|
protected static interface |
StackRenderer.ProcessStackPoint
Defines the signature of delegates called to process a data point one element at a time.
|
protected static interface |
StackRenderer.ProcessStackRange
Defines the signature of delegates called to process all points from current data range at once.
|
Renderer2D.ProcessPoint, Renderer2D.ProcessRange| Constructor and Description |
|---|
StackRenderer(com.mindfusion.common.ObservableList<Series> series)
Initializes a new instance of the
StackRenderer class. |
| Modifier and Type | Method and Description |
|---|---|
protected void |
enumVisibleStackPoints(RenderContext context,
StackRenderer.ProcessStackPoint process)
Enumerates the data values of rendered series mapped to plot 2D coordinates.
|
protected void |
enumVisibleStackPointsRelativeTo(RenderContext context,
java.lang.Double origin,
StackRenderer.ProcessStackPoint process) |
protected java.awt.geom.Point2D |
getPixel(int seriesIndex,
int dataIndex,
Axis xAxis,
Axis yAxis,
Component component)
Gets the coordinates of specified data item when mapped to a Plot2D pixel.
|
HitResult |
hitTest(RenderContext context,
java.awt.geom.Point2D location)
Renderer2D.hitTest override.
|
protected void |
measureDataRange(RenderContext context)
Renderer2D.measureDataRange override.
|
protected void |
measureDataRangeRelativeTo(RenderContext context,
double origin) |
domainAxis, domainData, domainSorted, drawHighlight, enumSeries, enumVisiblePointPairs, enumVisiblePoints, enumVisibleRanges, getFirstInRange, getFirstInRange, getLastInRange, getLastInRange, getMaxXSum, getMaxXSumPositive, getMaxYSum, getMaxYSumPositive, getMinXSumNegative, getMinYSumNegative, getPixel, getSeries, getXAxis, getYAxis, imageData, setSeries, setXAxis, setYAxis, startMeasureData, xData, xSorted, yData, ySortedaddPropertyChangeListener, createTextRenderer, dataChanged, domainDimension, effectiveFill, effectiveLabelBackground, effectiveLabelBorderPen, effectiveStroke, getLabelBrush, getLabelFontName, getLabelFontSize, getLabelFontStyle, getSeriesStyle, getShowDataLabels, getShowHighlight, getShowToolTips, onPropertyChanged, onSeriesDataChanged, removePropertyChangeListener, searchStyle, setLabelBrush, setLabelFontName, setLabelFontSize, setLabelFontStyle, setSeriesStyle, setShowDataLabels, setShowHighlight, setShowToolTips, setToolTippublic StackRenderer(com.mindfusion.common.ObservableList<Series> series)
StackRenderer class.protected void enumVisibleStackPoints(RenderContext context, StackRenderer.ProcessStackPoint process)
context - A RenderContext instance.process - A ProcessStackPoint callback.protected void enumVisibleStackPointsRelativeTo(RenderContext context, java.lang.Double origin, StackRenderer.ProcessStackPoint process)
protected java.awt.geom.Point2D getPixel(int seriesIndex,
int dataIndex,
Axis xAxis,
Axis yAxis,
Component component)
getPixel in class Renderer2DseriesIndex - An integer index of a Series within the list of series rendered by this Renderer2D.dataIndex - An integer index of the data item in specified series.xAxis - An Axis reference specifying the X axis.yAxis - An Axis reference specifying the Y axis.component - An instance of Plot2D or derived class.protected void measureDataRange(RenderContext context)
measureDataRange in class Renderer2Dcontext - A RenderContext instance.protected void measureDataRangeRelativeTo(RenderContext context, double origin)
public HitResult hitTest(RenderContext context, java.awt.geom.Point2D location)
hitTest in class Renderer2Dcontext - A RenderContext instance.location - A Point2D specifying where to look for a data point.