rrdService.util
Class HRuleGraphicObject

java.lang.Object
  |
  +--rrdService.util.GraphicObject
        |
        +--rrdService.util.HRuleGraphicObject
All Implemented Interfaces:
java.io.Serializable

public class HRuleGraphicObject
extends GraphicObject
implements java.io.Serializable

The class HRuleGraphicObject Like GraphicPrint but the text is simply printed into the graph. Draw a horizontal rule into the graph and optionally add a legend

Version:
1.0 date : 15/07/2001
Author:
Damien Pellier
See Also:
HRuleGraphicObject, Comment, Serialized Form

Field Summary
private  double value
          value to print
 
Fields inherited from class rrdService.util.GraphicObject
color, legend
 
Constructor Summary
HRuleGraphicObject(double value, java.awt.Color color)
          Constructor of HRuleGraphicObject
HRuleGraphicObject(double value, java.awt.Color color, java.lang.String legend)
          Constructor of HRuleGraphicObject
 
Method Summary
 double getValue()
          Returns the value to print
 void setValue(double value)
          Replaces the value to print
 java.lang.String toString()
          Returns a string representation of this HRuleGraphicObject
 
Methods inherited from class rrdService.util.GraphicObject
getColor, getLegend, setColor, setLegend
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait
 

Field Detail

value

private double value
value to print
Constructor Detail

HRuleGraphicObject

public HRuleGraphicObject(double value,
                          java.awt.Color color)
Constructor of HRuleGraphicObject
Parameters:
value - the value to print
color - the color of the text on graphic

HRuleGraphicObject

public HRuleGraphicObject(double value,
                          java.awt.Color color,
                          java.lang.String legend)
Constructor of HRuleGraphicObject
Parameters:
value - the value to print
color - the color of the text on graphic
legend - the legend of the text on graphic
Method Detail

getValue

public double getValue()
Returns the value to print

setValue

public void setValue(double value)
Replaces the value to print
Parameters:
value - the value to print

toString

public java.lang.String toString()
Returns a string representation of this HRuleGraphicObject
Overrides:
toString in class java.lang.Object

Copyright 1885-2001 FIRMENICH SA, Geneva

Submit a bug or feature
Copyright 1885-2001 FIRMENICH SA, Geneva,
All Rights Reserved.