All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class org.w3c.css.values.CssNumber

java.lang.Object
   |
   +----org.w3c.css.values.CssValue
           |
           +----org.w3c.css.values.CssNumber

public class CssNumber
extends CssValue
implements CssValueFloat
A CSS float number.


Constructor Index

 o CssNumber()
Create a new CssNumber
 o CssNumber(float)
Create a new CssNumber

Method Index

 o equals(Object)
Compares two values for equality.
 o get()
Returns the value
 o getAngle()
Returns a angle.
 o getFrequency()
Returns a frequency.
 o getLength()
Returns a length.
 o getPercentage()
Returns a percentage.
 o getTime()
Returns a time.
 o getValue()
Return the float value
 o isInteger()
 o set(String, Frame)
Set the value of this frequency.
 o toString()
Returns a string representation of the object.

Constructors

 o CssNumber
 public CssNumber()
Create a new CssNumber

 o CssNumber
 public CssNumber(float value)
Create a new CssNumber

Methods

 o set
 public void set(String s,
                 Frame frame)
Set the value of this frequency.

Parameters:
s - the string representation of the frequency.
frame - For errors and warnings reports.
Overrides:
set in class CssValue
 o get
 public Object get()
Returns the value

Overrides:
get in class CssValue
 o getValue
 public float getValue()
Return the float value

 o isInteger
 public boolean isInteger()
 o getLength
 public CssLength getLength() throws InvalidParamException
Returns a length. Only zero can be a length.

Throws: InvalidParamException
The value is not zero
 o getPercentage
 public CssPercentage getPercentage() throws InvalidParamException
Returns a percentage. Only zero can be a length.

Throws: InvalidParamException
The value is not zero
 o getTime
 public CssTime getTime() throws InvalidParamException
Returns a time. Only zero can be a length.

Throws: InvalidParamException
The value is not zero
 o getAngle
 public CssAngle getAngle() throws InvalidParamException
Returns a angle. Only zero can be a length.

Throws: InvalidParamException
The value is not zero
 o getFrequency
 public CssFrequency getFrequency() throws InvalidParamException
Returns a frequency. Only zero can be a length.

Throws: InvalidParamException
The value is not zero
 o toString
 public String toString()
Returns a string representation of the object.

Overrides:
toString in class Object
 o equals
 public boolean equals(Object value)
Compares two values for equality.

Parameters:
value - The other value.
Overrides:
equals in class CssValue

All Packages  Class Hierarchy  This Package  Previous  Next  Index