public class IlvScaleAnnotation extends Object implements Serializable
IlvScale.computeLabel(double) method
 is used to format the value into a string.| Constructor and Description | 
|---|
| IlvScaleAnnotation(double value)Creates a new  IlvScaleAnnotationfor the specified value. | 
| IlvScaleAnnotation(double value,
                  String text)Creates a new  IlvScaleAnnotationfor the specified value
 with the specified text. | 
| IlvScaleAnnotation(double value,
                  String text,
                  IlvLabelRenderer renderer)Creates a new  IlvScaleAnnotationfor the specified value
 with the specified text and the specified label rendering style. | 
| Modifier and Type | Method and Description | 
|---|---|
| protected void | draw(Graphics g)Draws the annotation. | 
| Rectangle2D | getBounds(Rectangle2D bounds)Returns the annotation bounds. | 
| String | getLabel()Returns the label displayed by this annotation. | 
| IlvLabelRenderer | getLabelRenderer()Returns the label renderer used to draw the annotation text. | 
| IlvScale | getScale()Returns the scale displaying this annotation. | 
| double | getValue()Returns the value of the annotation. | 
| void | setLabel(String label)Sets the label displayed by this annotation. | 
| void | setValue(double value)Sets the value of the annotation. | 
public IlvScaleAnnotation(double value)
IlvScaleAnnotation for the specified value.public IlvScaleAnnotation(double value,
                          String text)
IlvScaleAnnotation for the specified value
 with the specified text.public IlvScaleAnnotation(double value,
                          String text,
                          IlvLabelRenderer renderer)
IlvScaleAnnotation for the specified value
 with the specified text and the specified label rendering style.public final IlvScale getScale()
null until the annotation is
 added to a scale with the IlvScale.addAnnotation(ilog.views.chart.IlvScaleAnnotation) method.public String getLabel()
public void setLabel(String label)
null, the annotation displays
 its value.public final double getValue()
setValue(double)public void setValue(double value)
getValue()public IlvLabelRenderer getLabelRenderer()
protected void draw(Graphics g)
g - The destination graphics.public Rectangle2D getBounds(Rectangle2D bounds)
bounds - A rectangle optionally used to store the result.© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.