public class IlvChartHitmapAccumulator extends IlvChartHitmap
An instance of this class is created at the beginning of the processing of a hitmap request, and is used to accumulate the tooltip and extensions for interactive effects.
You are not supposed to invoke the methods in this class directly.
IlvChartServletSupport.HITMAP_REQUESTJViewsExtensions, JViewsToolTips| Modifier and Type | Method and Description |
|---|---|
void |
addHitmapAttribute(IlvChartAreaAccessible element,
IlvIMapAttributes attribute)
Add a hitmap
IlvIMapAttributes attribute into the hitmap
accumulator. |
void |
addRegionToGroup(int subRegion)
Adds a given region to the current region, turning it into a group.
|
void |
addRegionToGroup(int region,
int subRegion)
Adds a given region to another region, turning it into a group.
|
void |
addToolTip(IlvIMapAttributes tooltip)
Deprecated.
|
IlvChartAreaAccessible |
getElementOfRegion(int region)
Returns the chart area element that is associated to a given region.
|
Graphics2D |
getGraphics()
Returns a graphic context.
|
int[] |
getGroupedRegions(int region)
For a group region, returns the regions that are part of the group.
|
IlvIMapAttributes |
getRegionAttributes(int region)
Returns the interactive effects that are associated to a given region.
|
int |
getRegionOfElement(IlvChartAreaAccessible element)
Returns the index denoting the region that is associated with a given chart
area element.
|
int |
getRegionsCount()
Returns the number of hitmap regions stored in this accumulator.
|
void |
nextRegion()
Starts a new region in the hitmap, with unchanged coordinate
system.
|
void |
nextRegion(IlvChart chart)
Starts a new region in the hitmap, with an offset that
corresponds to the chart's drawing rectangle.
|
void |
nextRegion(int xOffset,
int yOffset)
Starts a new region in the hitmap, with an offset in the
coordinate system compared to the origin of the hitmap.
|
void |
setGraphics(Graphics2D gc)
Sets the
Graphic2D object. |
getExtensions, getToolTipspublic final Graphics2D getGraphics()
public void setGraphics(Graphics2D gc)
Graphic2D object.public void nextRegion()
public void nextRegion(int xOffset,
int yOffset)
public void nextRegion(IlvChart chart)
public void addRegionToGroup(int subRegion)
addRegionToGroup for each.subRegion - The index of the region that is to be added to the current
region.public void addRegionToGroup(int region,
int subRegion)
addRegionToGroup for each.region - The index of the region that becomes a group.subRegion - The index of the region that is to be added to
region.@Deprecated public void addToolTip(IlvIMapAttributes tooltip)
addHitmapAttribute(ilog.views.chart.accessibility.IlvChartAreaAccessible, ilog.views.chart.servlet.IlvIMapAttributes) method.IlvIMapAttributes object into the tooltip vector.tooltip - An IlvIMapAttributes attribute that specifies
a tooltip.public void addHitmapAttribute(IlvChartAreaAccessible element, IlvIMapAttributes attribute)
IlvIMapAttributes attribute into the hitmap
accumulator.element - An element of the chart area, or null.attribute - An IlvIMapAttributes attribute that specifies
interactions, or null.public int getRegionsCount()
getRegionsCount in class IlvChartHitmappublic int[] getGroupedRegions(int region)
getGroupedRegions in class IlvChartHitmapregion - The index denoting a region, an integer in the range
1 .. getRegionsCount().null for none.public IlvChartAreaAccessible getElementOfRegion(int region)
getElementOfRegion in class IlvChartHitmapregion - The index denoting a region, an integer in the range
1 .. getRegionsCount().null.public int getRegionOfElement(IlvChartAreaAccessible element)
getRegionOfElement in class IlvChartHitmapelement - A chart area element.public IlvIMapAttributes getRegionAttributes(int region)
getRegionAttributes in class IlvChartHitmapregion - The index denoting a region, an integer in the range
1 .. getRegionsCount().© Copyright Rogue Wave Software, Inc. 1997, 2017. All Rights Reserved.