public class IlvSingleScatterRenderer extends IlvSingleChartRenderer
IlvScatterChartRenderer
,
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 |
---|
IlvSingleScatterRenderer()
Creates an
IlvSingleScatterRenderer with a default marker
type and size. |
IlvSingleScatterRenderer(IlvMarker marker,
int size,
IlvStyle style)
Creates an
IlvSingleScatterRenderer with the specified
marker type and size, using the specified style. |
IlvSingleScatterRenderer(IlvStyle style)
Creates an
IlvSingleScatterRenderer with a default marker
type and size, using the specified style. |
Modifier and Type | Method and Description |
---|---|
Point |
computeDataLabelLocation(IlvDisplayPoint dp,
Dimension size)
Computes the location of the data label associated with the specified
point.
|
void |
drawLegendSymbol(IlvLegendItem item,
Graphics g,
int x,
int y,
int w,
int h)
Draws the symbol of the specified legend item.
|
Rectangle |
getClipRect()
Returns the rectangle that will be used to clip this renderer drawing.
|
IlvMarker |
getMarker()
Returns the marker used to render data points.
|
int |
getMarkerSize()
Returns the size of the marker.
|
int |
getMaxSize()
Returns the maximum size of a marker.
|
Insets |
getPreferredMargins()
Returns the preferred margins of this renderer for the calculation of the
plotting rectangle.
|
protected boolean |
isClipped()
Indicates whether the drawing of this renderer is clipped by the plotting
rectangle.
|
void |
setMarker(IlvMarker marker)
Sets the marker used to render data points.
|
void |
setMarkerSize(int size)
Sets the size of the marker.
|
addImageMapAreas, applyDataSetStyle, applyStyles, chartConnected, createLegendItems, dataSetContentsChanged, dataSetPropertyChanged, dataSetsAdded, dataSetsRemoved, draw, draw, drawAnnotations, drawIntoHitmap, drawSelectionHandles, drawSelectionHandles, getAnnotation, getBounds, 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 IlvSingleScatterRenderer()
IlvSingleScatterRenderer
with a default marker
type and size.public IlvSingleScatterRenderer(IlvStyle style)
IlvSingleScatterRenderer
with a default marker
type and size, using the specified style.public final IlvMarker getMarker()
public void setMarker(IlvMarker marker)
getMarker()
public final int getMarkerSize()
setMarkerSize(int)
public void setMarkerSize(int size)
size
- The new marker size. The actual size of the marker in pixel
will be 2*size+1
.getMarkerSize()
public int getMaxSize()
public Rectangle getClipRect()
getClipRect
in class IlvChartRenderer
IlvChartRenderer.getPlotRect()
public Insets getPreferredMargins()
If the isClipped()
method returns false
, the margins
take into account the size of the marker.
getPreferredMargins
in class IlvSingleChartRenderer
IlvChart.Area.getMargins()
protected boolean isClipped()
The default implementation returns false
.
public Point computeDataLabelLocation(IlvDisplayPoint dp, Dimension size)
IlvDataLabelAnnotation
class.computeDataLabelLocation
in class IlvChartRenderer
dp
- The considered display point.size
- The size of the label.IlvChartRenderer.setDataLabeling(int)
,
IlvChartRenderer.setDataLabelLayout(int)
public void drawLegendSymbol(IlvLegendItem item, Graphics g, int x, int y, int w, int h)
drawLegendSymbol
in class IlvSingleChartRenderer
item
- The legend item to draw.g
- The graphics context.x
- The symbol x-coordinate.y
- The symbol y-coordinate.w
- The symbol width.h
- The symbol height.IlvRendererLegendItem
© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.