All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class org.w3c.css.values.CssAngle

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

public class CssAngle
extends CssValue
implements CssValueFloat

Angle

Angle units are used with aural cascading style sheets.

These are the legal angle units:

Values in these units may be negative. They should be normalized to the range 0-360deg by the UA. For example, -10deg and 350deg are equivalent.


Constructor Index

 o CssAngle()
Create a new CssAngle.
 o CssAngle(Float)
Create a new CssAngle
 o CssAngle(float)
Create a new CssAngle

Method Index

 o equals(Object)
Compares two values for equality.
 o get()
Returns the current value
 o getDegree()
 o getGradian()
 o getRadian()
 o getUnit()
Returns the current value
 o getValue()
 o isDegree()
 o isGradian()
 o isRadian()
 o set(String, Frame)
Set the value of this angle.
 o toString()
Returns a string representation of the object.

Constructors

 o CssAngle
 public CssAngle()
Create a new CssAngle.

 o CssAngle
 public CssAngle(float v)
Create a new CssAngle

 o CssAngle
 public CssAngle(Float angle)
Create a new CssAngle

Methods

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

Parameters:
s - The string representation of the angle
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 getValue
 public float getValue()
 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
 o getDegree
 public float getDegree()
 o getGradian
 public float getGradian()
 o getRadian
 public float getRadian()
 o isDegree
 public boolean isDegree()
 o isGradian
 public boolean isGradian()
 o isRadian
 public boolean isRadian()

All Packages  Class Hierarchy  This Package  Previous  Next  Index