ilog.views.chart
Class IlvScaleAnnotation

ilog.views.chart.IlvScaleAnnotation

public class IlvScaleAnnotation

Draws an annotation on a scale. A scale annotation lets you indicate a data value on a scale. It displays the annotation label if it is defined, or the data value. In the latter case, the IlvScale.computeLabel method is used to format the value into a string.

CSS example:

ilvScaleAnnotation {
    class : "ilog.views.chart.IlvScaleAnnotation(value,text,renderer)";
    label : "<value>";
    labelRenderer : "@#ilvLabelRenderer";
    value : "3.0";
}


Property Summary
 java.lang.String class
          
Creates a new IlvScaleAnnotation for the specified value with the specified text and the specified label rendering style.
 java.lang.String label
          
Sets the label displayed by this annotation.
 IlvLabelRenderer labelRenderer
          
Sets the label renderer used to draw the annotation text.
 double value
          
Sets the value of the annotation.
 

Property Detail

class

public java.lang.String class

Creates a new IlvScaleAnnotation for the specified value with the specified text and the specified label rendering style.

CSS example:     class : "ilog.views.chart.IlvScaleAnnotation(value,text,renderer)";


label

public java.lang.String label

Sets the label displayed by this annotation. If the label is set to null, the annotation displays its value.

CSS example:     label : "<value>";


labelRenderer

public IlvLabelRenderer labelRenderer

Sets the label renderer used to draw the annotation text.

CSS example:     labelRenderer : "@#ilvLabelRenderer";

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


value

public double value

Sets the value of the annotation.

CSS example:     value : "3.0";



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