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.
-
CssNumber()
- Create a new CssNumber
-
CssNumber(float)
- Create a new CssNumber
-
equals(Object)
- Compares two values for equality.
-
get()
- Returns the value
-
getAngle()
- Returns a angle.
-
getFrequency()
- Returns a frequency.
-
getLength()
- Returns a length.
-
getPercentage()
- Returns a percentage.
-
getTime()
- Returns a time.
-
getValue()
- Return the float value
-
isInteger()
-
-
set(String, Frame)
- Set the value of this frequency.
-
toString()
- Returns a string representation of the object.
CssNumber
public CssNumber()
- Create a new CssNumber
CssNumber
public CssNumber(float value)
- Create a new CssNumber
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
get
public Object get()
- Returns the value
- Overrides:
- get in class CssValue
getValue
public float getValue()
- Return the float value
isInteger
public boolean isInteger()
getLength
public CssLength getLength() throws InvalidParamException
- Returns a length.
Only zero can be a length.
- Throws: InvalidParamException
- The value is not zero
getPercentage
public CssPercentage getPercentage() throws InvalidParamException
- Returns a percentage.
Only zero can be a length.
- Throws: InvalidParamException
- The value is not zero
getTime
public CssTime getTime() throws InvalidParamException
- Returns a time.
Only zero can be a length.
- Throws: InvalidParamException
- The value is not zero
getAngle
public CssAngle getAngle() throws InvalidParamException
- Returns a angle.
Only zero can be a length.
- Throws: InvalidParamException
- The value is not zero
getFrequency
public CssFrequency getFrequency() throws InvalidParamException
- Returns a frequency.
Only zero can be a length.
- Throws: InvalidParamException
- The value is not zero
toString
public String toString()
- Returns a string representation of the object.
- Overrides:
- toString in class Object
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