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:

For example, 200Hz is a bass sound, and 6kHz is a treble sound.


Constructor Index

 o CssFrequency()
Create a new CssFrequency
 o CssFrequency(Float)
Create a new CssFrequency with a float number.

Method Index

 o equals(Object)
Compares two values for equality.
 o get()
Returns the current value
 o getUnit()
Returns the current value
 o set(String, Frame)
Set the value of this frequency.
 o toString()
Returns a string representation of the object.

Constructors

 o CssFrequency
 public CssFrequency()
Create a new CssFrequency

 o CssFrequency
 public CssFrequency(Float value)
Create a new CssFrequency with a float number.

Parameters:
value - the float number.

Methods

 o 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
 o get
 public Object get()
Returns the current value

Overrides:
get in class CssValue
 o getUnit
 public String getUnit()
Returns the current value

 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