org.apache.batik.css.svg
Class SVGCSSNumber

java.lang.Object
  |
  +--org.apache.batik.css.svg.SVGCSSNumber
All Implemented Interfaces:
SVGNumber
Direct Known Subclasses:
SVGCSSReadOnlyNumber

public class SVGCSSNumber
extends java.lang.Object
implements SVGNumber

This class provides an implementation of SVGNumber.


Field Summary
protected  float value
          The value of this number.
 
Constructor Summary
SVGCSSNumber(float f)
          Creates a new SVGCSSNumber.
 
Method Summary
 boolean equals(java.lang.Object obj)
          Indicates whether some other object is "equal to" this one.
 float getValue()
          Returns the value of this float.
 void setValue(float f)
          Sets the value of this number.
 java.lang.String toString()
          Returns a printable representation of this object.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

value

protected float value
The value of this number.
Constructor Detail

SVGCSSNumber

public SVGCSSNumber(float f)
Creates a new SVGCSSNumber.
Method Detail

getValue

public float getValue()
Returns the value of this float.
Specified by:
getValue in interface SVGNumber

setValue

public void setValue(float f)
Sets the value of this number.
Specified by:
setValue in interface SVGNumber

equals

public boolean equals(java.lang.Object obj)
Indicates whether some other object is "equal to" this one.
Overrides:
equals in class java.lang.Object
Parameters:
obj - the reference object with which to compare.

toString

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


Copyright © 2001 Apache Software Foundation. All Rights Reserved.