ilog.views.chart.graphic
Class IlvDataLabelAnnotation

ilog.views.chart.graphic.IlvDataLabelAnnotation

public class IlvDataLabelAnnotation

An annotation used for data point labeling. This annotation lets you display the data value, or data label associated with a display point. This annotation uses the ilog.views.chart.IlvChartRenderer.computeDataLabel method to compute the displayed string if no explicit text has been set, and the ilog.views.chart.IlvChartRenderer.computeDataLabelLocation to compute the label location.

Here is a picture showing a data label annotation set individually on a data point of a Pie chart:



CSS example:

ilvDataLabelAnnotation {
    class : "ilog.views.chart.graphic.IlvDataLabelAnnotation(labelRenderer)";
    labelRenderer : "@#ilvLabelRenderer";
    text : "<value>";
}


Property Summary
 java.lang.String class
          
Creates a new label information using the specified label renderer.
 IlvLabelRenderer labelRenderer
          
Sets the renderer that displays the label.
 java.lang.String text
          
Sets the text of this annotation.
 

Property Detail

class

public java.lang.String class

Creates a new label information using the specified label renderer.

CSS example:     class : "ilog.views.chart.graphic.IlvDataLabelAnnotation(labelRenderer)";


labelRenderer

public IlvLabelRenderer labelRenderer

Sets the renderer that displays the label.

CSS example:     labelRenderer : "@#ilvLabelRenderer";

See implementing class IlvLabelRenderer for an example of implementing a labelRenderer.


text

public java.lang.String text

Sets the text of this annotation. By calling this method, you disable the label dynamic computation.

CSS example:     text : "<value>";



Copyright © 1996-2007 ILOG S.A. All rights reserved.   Documentation homepage.