public class TowerRenderer extends SeriesRenderer
Modifier and Type | Class and Description |
---|---|
protected static interface |
TowerRenderer.ProcessSegment
Defines the signature of delegates called to process tower chart segments.
|
protected static interface |
TowerRenderer.ProcessSegmentPlot |
Constructor and Description |
---|
TowerRenderer(Series leftSeries,
Series rightSeries)
Initializes a new instance of the TowerRenderer class.
|
Modifier and Type | Method and Description |
---|---|
protected void |
draw(RenderContext context)
SeriesRenderer.draw override.
|
protected void |
drawHighlight(RenderContext context,
HitResult hitResult)
Renderer2D.drawHighlight override.
|
java.util.stream.Stream<Series> |
enumSeries()
Implements the SeriesContainer interface.
|
TowerLayout |
getLayout()
Gets the layout of tower segments.
|
Series |
getLeftSeries()
Gets the left-side Series drawn by this TowerRenderer.
|
Margins |
getMargins()
Gets the size of margins around chart graphics.
|
java.lang.Double |
getRange()
Gets fixed data range size.
|
Series |
getRightSeries()
Gets the right-side Series drawn by this TowerRenderer.
|
TowerSegmentShape |
getSegmentShape()
Gets the shape of tower segments.
|
int |
getSeriesPadding()
Gets the padding distance between series.
|
HitResult |
hitTest(RenderContext context,
java.awt.geom.Point2D location)
SeriesRenderer.HitTest override.
|
void |
setLayout(TowerLayout value)
Sets the layout of tower segments.
|
void |
setLeftSeries(Series value)
Sets the left-side Series drawn by this TowerRenderer.
|
void |
setMargins(Margins value)
Sets the size of margins around chart graphics.
|
void |
setRange(java.lang.Double value)
Sets fixed data range size.
|
void |
setRightSeries(Series value)
Sets the right-side Series drawn by this TowerRenderer.
|
void |
setSegmentShape(TowerSegmentShape value)
Sets the shape of tower segments.
|
void |
setSeriesPadding(int value)
Sets the padding distance between series.
|
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 Series getLeftSeries()
public void setLeftSeries(Series value)
value
- A Series instance.public Series getRightSeries()
public void setRightSeries(Series value)
value
- A Series instance.protected void draw(RenderContext context)
context
- A RenderContext instance.protected void drawHighlight(RenderContext context, HitResult hitResult)
context
- A RenderContext instance.hitResult
- A HitResult instance identifying highlighted data item.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.public java.util.stream.Stream<Series> enumSeries()
enumSeries
in interface SeriesContainer
enumSeries
in class SeriesRenderer
public TowerLayout getLayout()
public void setLayout(TowerLayout value)
value
- A member of the TowerLayout enumeration.public TowerSegmentShape getSegmentShape()
public void setSegmentShape(TowerSegmentShape value)
value
- A member of the TowerSegmentShape enumeration.public java.lang.Double getRange()
public void setRange(java.lang.Double value)
value
- An optional Double specifying range size.public int getSeriesPadding()
public void setSeriesPadding(int value)
value
- The distance between LeftSeries and RightSeries graphics.public Margins getMargins()
public void setMargins(Margins value)
value
- A Margins instance specifying margin size on each side of the plot.