public abstract class IlvSimpleChartRenderer extends IlvChartRenderer
IlvSimpleChartRenderer
is the base class for all atomic
renderers of the entire data source. Such renderers implement the drawing
of the entire data source by themselves, without dispatching the
drawings of different data sets to different renderers.AREA, BAR, BUBBLE, CANDLE, CENTERED_LABEL_LAYOUT, COMBO, DATA_LABEL, DEFAULT_LABEL_LAYOUT, DEFAULT_LABELING, HILO, HILO_ARROW, HILO_STICK, HLOC, OUTSIDE_LABEL_LAYOUT, PERCENT_LABEL, PIE, POLYLINE, SCATTER, STACKED_AREA, STACKED_BAR, STACKED_DIVERGING_BAR, STACKED_POLYLINE, STACKED_STAIR, STACKED100_AREA, STACKED100_BAR, STACKED100_POLYLINE, STACKED100_STAIR, STAIR, SUMMED_STAIR, SUPERIMPOSED_BAR, TREEMAP, X_VALUE_LABEL, XY_VALUES_LABEL, Y_VALUE_LABEL
Modifier | Constructor and Description |
---|---|
protected |
IlvSimpleChartRenderer()
Creates a new
IlvSimpleChartRenderer . |
Modifier and Type | Method and Description |
---|---|
protected void |
chartConnected(IlvChart oldChart,
IlvChart newChart)
Called when the renderer is added to or removed from a chart.
|
void |
draw(Graphics g,
IlvDataSet dataSet,
int iMin,
int iMax)
Deprecated.
This method is not used by JViews.
|
void |
drawSelectionHandles(Graphics g,
IlvHandlesSelectionStyle style)
Draws this renderer with selection handles.
|
Rectangle2D |
getBounds(IlvDataSet dataSet,
int iMin,
int iMax,
Rectangle2D bounds,
boolean includeAnnotations)
Returns the bounds of the graphical representation for the
specified data.
|
IlvStyle |
getStyle()
Returns the main style used by this renderer.
|
IlvStyle |
getStyle(IlvDataSet dataSet,
int index)
This method is not supported by this renderer, because this renderer is
associated with the entire data source, not with a single data set.
|
IlvStyle[] |
getStyles()
Returns the styles used by this renderer.
|
protected IlvStyle |
makeDefaultStyle()
Creates a default style for this renderer.
|
void |
setStyle(IlvStyle style)
Sets the main style used by this renderer.
|
void |
setStyles(IlvStyle[] styles)
Sets the styles used by this renderer.
|
addImageMapAreas, applyStyles, applyStyles, applyStyles, collectDisplayItems, computeDataLabel, computeDataLabelLocation, create, createLegendItems, createRenderer, dataSetsAdded, dataSetsChangesBatchEnding, dataSetsChangesBatchStarting, dataSetsRemoved, dispose, draw, drawAnnotations, drawIntoHitmap, drawLegendSymbol, drawSelectionHandles, drawSelectionHandles, drawSelectionHandles, endRendererChanges, findAppropriateColor, fireTreemapFocusEvent, getAnnotation, getAnnotation, getBounds, getBounds, getChart, getChild, getChildCount, getChildIterator, getChildren, getClipRect, getCoordinateSystem, getDataLabeling, getDataLabelLayout, getDataLabelling, getDataSetIndex, getDataSetMainIndex, getDataSetMainRenderer, getDataSource, getDefaultColors, getDefaultLegendTitle, getDepths, getDisplayItem, getDisplayItem, getDisplayItems, getDisplayPoint, getLegendStyle, getLegendText, getMinDataSetCount, getName, getNearestItem, getNearestItem, getNearestPoint, getNearestPoint, getParent, getPlotRect, getPreferredMargins, getRenderingHint, getRenderingHint, getRenderingHint, getStyle, getVirtualDataSet, getXRange, getXShift, getYAxisIdx, getYRange, getYRange, has3DSupport, holdsAnnotations, isDisplayingDataSet, isViewable, isVisible, isVisibleInLegend, reDraw, register, set3D, setAnnotation, setAnnotation, setAnnotation, setDataLabeling, setDataLabelLayout, setDataLabelling, setDataPoint, setDataSource, setDisplayPoint, setName, setParent, setRenderingHint, setRenderingHint, setRenderingHint, setRenderingHintWithNoDraw, setStyle, setVisible, setVisibleInLegend, setXShift, setYAxisIdx, startRendererChanges, toData, toDisplay, toDisplay, triggerChange
protected IlvSimpleChartRenderer()
IlvSimpleChartRenderer
.protected void chartConnected(IlvChart oldChart, IlvChart newChart)
chartConnected
in class IlvChartRenderer
oldChart
- The chart with which this renderer was associated, or
null
if this renderer is added to a new chart.newChart
- The chart to which this renderer is added, or
null
if this renderer is removed from its current chart.protected IlvStyle makeDefaultStyle()
public IlvStyle getStyle()
setStyle(ilog.views.chart.IlvStyle)
public void setStyle(IlvStyle style)
IlvTreemapChartRenderer
class
makes use of a single style. If the parameter is null
and the renderer has been attached to a chart, sets a default style.
Note: The Bean property style
must not be specified
together with the Bean property styles
.
getStyle()
public IlvStyle[] getStyles()
getStyles
in class IlvChartRenderer
getStyle()
public void setStyles(IlvStyle[] styles)
setStyles
in class IlvChartRenderer
Note: The Bean property styles
must not be specified
together with the Bean property style
.
public IlvStyle getStyle(IlvDataSet dataSet, int index)
getStyle
in class IlvChartRenderer
dataSet
- The considered data set.index
- The index of the considered data point.null
if
this data point is not displayed by the renderer.UnsupportedOperationException
@Deprecated public void draw(Graphics g, IlvDataSet dataSet, int iMin, int iMax)
draw
in class IlvChartRenderer
UnsupportedOperationException
public Rectangle2D getBounds(IlvDataSet dataSet, int iMin, int iMax, Rectangle2D bounds, boolean includeAnnotations)
null
, a new
Rectangle2D
is allocated.
This method always returns an empty rectangle, because this renderer is associated with the entire data source, not with a single data set.
getBounds
in class IlvChartRenderer
dataSet
- The data set containing the data points.iMin
- The minimum data point index.iMax
- The maximum data point index.bounds
- An optional rectangle used to store the result.includeAnnotations
- Indicates whether annotation bounds should be included.public void drawSelectionHandles(Graphics g, IlvHandlesSelectionStyle style)
drawSelectionHandles
in interface IlvChartAreaAccessible
drawSelectionHandles
in class IlvChartRenderer
g
- A graphics context.style
- The graphic style parameters.© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.