public class IlvDefaultChartHitmapDefinition extends IlvChartHitmapDefinition
You can create subclasses of this class in order to customize the interactive effects on a chart, like tooltips, highlights or other effects in the browser.
Constructor and Description |
---|
IlvDefaultChartHitmapDefinition() |
Modifier and Type | Method and Description |
---|---|
IlvHitmapInfoGenerator |
createHitmapInfoGenerator(String infoType,
IlvChartHitmap hitmap)
Creates a
IlvHitmapInfoGenerator instance according to the
hitmap information type. |
void |
drawIntoHitmap(IlvChart chart,
IlvChartHitmapAccumulator accumulator)
Draws interactive effects for the entire chart into the hitmap.
|
void |
drawIntoHitmap(IlvChart chart,
IlvChartRenderer renderer,
IlvChartHitmapAccumulator accumulator)
Draws interactive effects for a given renderer into the hitmap.
|
void |
drawIntoHitmap(IlvChart chart,
IlvScale scale,
IlvChartHitmapAccumulator accumulator)
Draws interactive effects for a given scale into the hitmap.
|
void |
drawIntoHitmap(IlvLegend legend,
IlvChartHitmapAccumulator accumulator)
Draws interactive effects for the legend into the hitmap.
|
IlvIMapAttributes |
getAttributes(IlvChart chart,
IlvScale scale)
Returns the interactive effects attributes for the given scale.
|
IlvIMapAttributes |
getAttributes(IlvChart chart,
IlvSingleChartRenderer renderer,
IlvDataSet ds)
Returns the interactive effects attributes for a series of data points in the given data set.
|
IlvIMapAttributes |
getAttributes(IlvChart chart,
IlvSingleChartRenderer renderer,
IlvDataSetPoint dp)
Returns the interactive effects attributes for the specified data point.
|
IlvIMapAttributes |
getAttributes(IlvChart chart,
IlvTreemapChartRenderer renderer,
IlvTreeListModel model,
TreePath path)
Returns the interactive effects attributes for the specified tree model
element.
|
IlvIMapAttributes |
getAttributes(IlvLegendItem item)
Returns the interactive effects attributes for the specified legend item.
|
String |
getToolTipAsHTML(IlvIMapAttributes attributes)
Formats the given attributes as a tooltip.
|
public void drawIntoHitmap(IlvChart chart, IlvChartHitmapAccumulator accumulator)
The default implementation iterates over the renderers of the given chart.
drawIntoHitmap
in class IlvChartHitmapDefinition
public void drawIntoHitmap(IlvChart chart, IlvScale scale, IlvChartHitmapAccumulator accumulator)
The default implementation invokes IlvScale.drawIntoHitmap(IlvChartHitmapDefinition, IlvChartHitmapAccumulator)
.
The default behavior is that the scale of the chart will be highlighted.
In case you do not want to highlight the scale, you can override this method.
drawIntoHitmap
in class IlvChartHitmapDefinition
chart
- A chart.scale
- A scale of this chart.accumulator
- The object that accumulates objects in the hitmap.public void drawIntoHitmap(IlvChart chart, IlvChartRenderer renderer, IlvChartHitmapAccumulator accumulator)
The default implementation invokes IlvChartRenderer.drawIntoHitmap(IlvChartHitmapDefinition, IlvChartHitmapAccumulator)
.
drawIntoHitmap
in class IlvChartHitmapDefinition
chart
- A chart.renderer
- A renderer that is attached to this chart.accumulator
- The object that accumulates objects in the hitmap.public IlvIMapAttributes getAttributes(IlvChart chart, IlvScale scale)
getAttributes
in class IlvChartHitmapDefinition
public IlvIMapAttributes getAttributes(IlvChart chart, IlvSingleChartRenderer renderer, IlvDataSet ds)
getAttributes
in class IlvChartHitmapDefinition
public IlvIMapAttributes getAttributes(IlvChart chart, IlvSingleChartRenderer renderer, IlvDataSetPoint dp)
getAttributes
in class IlvChartHitmapDefinition
public IlvIMapAttributes getAttributes(IlvChart chart, IlvTreemapChartRenderer renderer, IlvTreeListModel model, TreePath path)
getAttributes
in class IlvChartHitmapDefinition
chart
- The chartrenderer
- the tree map chart renderermodel
- Tree model.path
- A tree path starting at the tree model root and ending at
the specific tree model node.IlvIMapAttributes
instance.public void drawIntoHitmap(IlvLegend legend, IlvChartHitmapAccumulator accumulator)
The default implementation invokes IlvLegend.drawIntoHitmap(IlvChartHitmapDefinition, IlvChartHitmapAccumulator)
.
drawIntoHitmap
in class IlvChartHitmapDefinition
legend
- The legend of a chart.accumulator
- The object that accumulates objects in the hitmap.public IlvIMapAttributes getAttributes(IlvLegendItem item)
getAttributes
in class IlvChartHitmapDefinition
public String getToolTipAsHTML(IlvIMapAttributes attributes)
getToolTipAsHTML
in class IlvChartHitmapDefinition
public IlvHitmapInfoGenerator createHitmapInfoGenerator(String infoType, IlvChartHitmap hitmap)
IlvHitmapInfoGenerator
instance according to the
hitmap information type.createHitmapInfoGenerator
in class IlvChartHitmapDefinition
infoType
- The hitmap information type. One of
IlvHitmapConstants.TOOLTIP_TYPE
,
IlvHitmapConstants.NAVIGATION_TYPE
,
IlvHitmapConstants.CURSOR_TYPE
.hitmap
- the chart hitmapIlvHitmapInfo
instance.IlvAbstractChartHitmapInfoGenerator
,
IlvAbstractChartTooltipInfoGenerator
,
IlvAbstractChartNavigationInfoGenerator
© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.