public abstract class IlvAbstractChartHitmapInfoGenerator extends Object implements IlvHitmapInfoGenerator
To create new types of information to regions in the hitmap, create a
subclass of this class, extend the
IlvChartHitmapDefinition.createHitmapInfoGenerator(String, IlvChartHitmap)
method, and include the new info type in the IlvHitmapConstants.HIT_INFO
parameter of a request.
Constructor and Description |
---|
IlvAbstractChartHitmapInfoGenerator(IlvChartHitmap hitmap)
Creates an instance, bound to a given hitmap.
|
Modifier and Type | Method and Description |
---|---|
String |
buildInformation(String infoType)
Builds the hitmap information as a string in JSON format.
|
protected IlvChartHitmap |
getHitmap()
Returns the already filled
IlvChartHitmap . |
protected abstract String |
getRegionInfo(int region,
String infoType)
Gets the individual information for a region.
|
public IlvAbstractChartHitmapInfoGenerator(IlvChartHitmap hitmap)
hitmap
- An already filled IlvChartHitmap
.protected IlvChartHitmap getHitmap()
IlvChartHitmap
.public String buildInformation(String infoType)
String
object will be returned to client side through
the http response.buildInformation
in interface IlvHitmapInfoGenerator
protected abstract String getRegionInfo(int region, String infoType)
region
- The index denoting a region, an integer in the range
1 .. hitmap.getRegionsCount()
.infoType
- the hitmap information type.© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.