public class IlvSingleBubbleRenderer extends IlvSingleScatterRenderer
min
and max
be the limits of the y-values
stored in the size data set, and let yValue
be the y-value
of a point in this data set, the actual size of the bubble
displaying this point will be:
(maxSize-minSize) * (yValue-min)/(max-min) + minSizeWhere
maxSize
and minSize
are specified by
the setMaxSize(int)
and setMinSize(int)
methods respectively.IlvBubbleChartRenderer
,
Serialized FormAREA, 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
Constructor and Description |
---|
IlvSingleBubbleRenderer()
Creates a new
IlvSingleBubbleRenderer with a default bubble
width and style. |
IlvSingleBubbleRenderer(IlvMarker marker,
int minSize,
int maxSize,
IlvStyle style)
Creates a new
IlvSingleBubbleRenderer with the specified
bubble shape, size, and style. |
IlvSingleBubbleRenderer(IlvStyle style)
Creates a new
IlvSingleBubbleRenderer with the specified
style. |
Modifier and Type | Method and Description |
---|---|
void |
dataSetContentsChanged(DataSetContentsEvent event)
Called when the contents of the associated data sets is modified.
|
protected void |
dataSetsAdded(int firstIdx,
int lastIdx,
IlvDataSet[] oldDataSets)
Called when data sets are connected to this renderer.
|
Rectangle2D |
getBounds(IlvDataSet dataSet,
int iMin,
int iMax,
Rectangle2D bounds,
boolean includeAnnotations)
Returns the bounds of the graphical representation for the
specified data.
|
int |
getMaxSize()
Returns the maximum size of a bubble.
|
int |
getMinSize()
Returns the minimum size of a bubble.
|
protected boolean |
isClipped()
Indicates whether the drawing of this renderer is clipped by the plotting
rectangle.
|
void |
setMaxSize(int size)
Sets the maximum size of a bubble.
|
void |
setMinSize(int size)
Sets the minimum size of a bubble.
|
computeDataLabelLocation, drawLegendSymbol, getClipRect, getMarker, getMarkerSize, getPreferredMargins, setMarker, setMarkerSize
addImageMapAreas, applyDataSetStyle, applyStyles, chartConnected, createLegendItems, dataSetPropertyChanged, dataSetsRemoved, draw, draw, drawAnnotations, drawIntoHitmap, drawSelectionHandles, drawSelectionHandles, getAnnotation, getBounds, getDefaultLegendText, getDisplayItem, getDisplayPoint, getDisplayStyle, getLegendText, getNearestItem, getNearestPoint, getRenderingHint, getRenderingHint, getStyle, getStyle, getStyles, getXRange, getYRange, getYRange, getZAnnotationText, holdsAnnotations, isFilled, makeDefaultStyle, set3D, setAnnotation, setAnnotation, setDataPoint, setDisplayPoint, setRenderingHint, setRenderingHint, setStyle, setStyles, toDisplay, toDisplay
applyStyles, applyStyles, collectDisplayItems, computeDataLabel, create, createRenderer, dataSetsChangesBatchEnding, dataSetsChangesBatchStarting, dispose, drawSelectionHandles, drawSelectionHandles, endRendererChanges, findAppropriateColor, fireTreemapFocusEvent, getAnnotation, getBounds, getChart, getChild, getChildCount, getChildIterator, getChildren, getCoordinateSystem, getDataLabeling, getDataLabelLayout, getDataLabelling, getDataSetIndex, getDataSetMainIndex, getDataSetMainRenderer, getDataSource, getDefaultColors, getDefaultLegendTitle, getDepths, getDisplayItem, getDisplayItems, getLegendStyle, getMinDataSetCount, getName, getNearestItem, getNearestPoint, getParent, getPlotRect, getRenderingHint, getStyle, getVirtualDataSet, getXShift, getYAxisIdx, has3DSupport, isDisplayingDataSet, isViewable, isVisible, isVisibleInLegend, reDraw, register, setAnnotation, setDataLabeling, setDataLabelLayout, setDataLabelling, setDataSource, setName, setParent, setRenderingHint, setRenderingHintWithNoDraw, setStyle, setVisible, setVisibleInLegend, setXShift, setYAxisIdx, startRendererChanges, toData, triggerChange
public IlvSingleBubbleRenderer()
IlvSingleBubbleRenderer
with a default bubble
width and style.public IlvSingleBubbleRenderer(IlvStyle style)
IlvSingleBubbleRenderer
with the specified
style.public IlvSingleBubbleRenderer(IlvMarker marker, int minSize, int maxSize, IlvStyle style)
IlvSingleBubbleRenderer
with the specified
bubble shape, size, and style.marker
- Specifies the shape of the bubbles.minSize
- The minimum size of a bubble.maxSize
- The maximum size of a bubble.style
- The rendering style.public final int getMinSize()
setMinSize(int)
public void setMinSize(int size)
getMinSize()
,
setMaxSize(int)
public final int getMaxSize()
getMaxSize
in class IlvSingleScatterRenderer
setMaxSize(int)
public void setMaxSize(int size)
getMaxSize()
,
setMinSize(int)
protected boolean isClipped()
This method returns true
.
isClipped
in class IlvSingleScatterRenderer
protected void dataSetsAdded(int firstIdx, int lastIdx, IlvDataSet[] oldDataSets)
dataSetsAdded
in class IlvSingleChartRenderer
firstIdx
- The index of the first data set.lastIdx
- The index of the last data set.oldDataSets
- The data sets previously connected to this renderer.public void dataSetContentsChanged(DataSetContentsEvent event)
dataSetContentsChanged
in class IlvSingleChartRenderer
DataSetContentsEvent
public Rectangle2D getBounds(IlvDataSet dataSet, int iMin, int iMax, Rectangle2D bounds, boolean includeAnnotations)
null
, a new
Rectangle2D
is allocated.
Note that the bounds may be larger than necessary. There is no guarantee that the bounds returned are tight.
Note about multi-threading: This method must not take the Swing
tree lock, and must not access IlvChart
API that is
not multithread-safe.
getBounds
in class IlvSingleChartRenderer
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.© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.