All Packages Class Hierarchy This Package Previous Next Index
Class org.w3c.css.values.CssFrequency
java.lang.Object
|
+----org.w3c.css.values.CssValue
|
+----org.w3c.css.values.CssFrequency
- public class CssFrequency
- extends CssValue
Frequencies
Frequency units are used with aural cascading style sheets.
There are two legal frequency units:
- Hz: Hertz
- kHz: kilo Hertz
For example, 200Hz is a bass sound, and 6kHz is a treble sound.
-
CssFrequency()
- Create a new CssFrequency
-
CssFrequency(Float)
- Create a new CssFrequency with a float number.
-
equals(Object)
- Compares two values for equality.
-
get()
- Returns the current value
-
getUnit()
- Returns the current value
-
set(String, Frame)
- Set the value of this frequency.
-
toString()
- Returns a string representation of the object.
CssFrequency
public CssFrequency()
- Create a new CssFrequency
CssFrequency
public CssFrequency(Float value)
- Create a new CssFrequency with a float number.
- Parameters:
- value - the float number.
set
public void set(String s,
Frame frame) throws InvalidParamException
- Set the value of this frequency.
- Parameters:
- s - the string representation of the frequency.
- frame - For errors and warnings reports.
- Throws: InvalidParamException
- The unit is incorrect
- Overrides:
- set in class CssValue
get
public Object get()
- Returns the current value
- Overrides:
- get in class CssValue
getUnit
public String getUnit()
- Returns the current value
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