public class FunnelRenderer extends SeriesRenderer
Modifier and Type | Class and Description |
---|---|
protected static interface |
FunnelRenderer.ProcessSegment |
Constructor and Description |
---|
FunnelRenderer(Series series)
Initializes a new instance of the FunnelRenderer class.
|
FunnelRenderer(Series series,
int dimension)
Initializes a new instance of the FunnelRenderer class.
|
Modifier and Type | Method and Description |
---|---|
protected void |
draw(RenderContext context)
Draws the series data in specified RenderContext.
|
protected void |
drawHighlight(RenderContext context,
HitResult hitResult)
SeriesRenderer.drawHighlight override.
|
protected void |
enumSegments(RenderContext context,
FunnelRenderer.ProcessSegment process) |
java.util.stream.Stream<Series> |
enumSeries()
Implements the SeriesContainer interface.
|
int |
getDimension()
Gets the dimension index that should be used to read data from the Series.
|
double |
getSegmentSpacing()
Gets the spacing between segments.
|
Series |
getSeries()
Gets the Series drawn by this FunnelRenderer.
|
double |
getStemWidth()
Gets the width of the funnel stem.
|
HitResult |
hitTest(RenderContext context,
java.awt.geom.Point2D location)
SeriesRenderer.hitTest override.
|
void |
setDimension(int value)
Sets the dimension index that should be used to read data from the Series.
|
void |
setSegmentSpacing(double value)
Sets the spacing between segments.
|
void |
setSeries(Series value)
Sets the Series drawn by this FunnelRenderer.
|
void |
setStemWidth(double value)
Sets the width of the funnel stem.
|
addPropertyChangeListener, 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, setToolTip, startMeasureData
public FunnelRenderer(Series series)
series
- The Series that should be rendered as a funnel.public FunnelRenderer(Series series, int dimension)
series
- The Series that should be rendered as a funnel.dimension
- Specifies the Series dimension index that should be used to access data.public Series getSeries()
public void setSeries(Series value)
value
- The Series that should be rendered as a funnel.public int getDimension()
public void setDimension(int value)
value
- Dimension index passed to Series.getValue.public double getSegmentSpacing()
public void setSegmentSpacing(double value)
value
- The distance between segments.public double getStemWidth()
public void setStemWidth(double value)
value
- A double value specifying the stem width.protected void enumSegments(RenderContext context, FunnelRenderer.ProcessSegment process)
protected void draw(RenderContext context)
SeriesRenderer
context
- A RenderContext instance.public HitResult hitTest(RenderContext context, java.awt.geom.Point2D location)
hitTest
in class SeriesRenderer
context
- A RenderContext instance.location
- A Point2D specifying where to look for data items.protected void drawHighlight(RenderContext context, HitResult hitResult)
context
- A RenderContext instance.hitResult
- A HitResult instance identifying highlighted data item.public java.util.stream.Stream<Series> enumSeries()
enumSeries
in interface SeriesContainer
enumSeries
in class SeriesRenderer