| org.w3c.dom.css.CSS2Azimuth
CSS2Azimuth | public interface CSS2Azimuth extends CSSValue(Code) | | The CSS2Azimuth interface represents the azimuth CSS Level 2
property.
For this extension of the CSSValue interface, the
valueType attribute of the underlying CSSValue
interface shall be CSS_CUSTOM .
See also the Document Object Model (DOM) Level 2 Specification.
since: DOM Level 2 |
Method Summary | |
public float | getAngleValue(short uType) Used to retrieved the float value of the azimuth property.
Parameters: uType - The unit type can be only an angle unit type (CSS_DEG , CSS_RAD or CSS_GRAD ). | public short | getAzimuthType() A code defining the type of the value as defined in
CSSValue . | public boolean | getBehind() behind indicates whether the behind identifier has been
set. | public String | getIdentifier() If azimuthType is CSS_IDENT ,
identifier contains one of left-side, far-left, left,
center-left, center, center-right, right, far-right, right-side,
leftwards, rightwards. | public void | setAngleValue(short uType, float fValue) A method to set the angle value with a specified unit. | public void | setIdentifier(String ident, boolean b) Setting the identifier for the azimuth property will unset any
previously set angle value. |
getAngleValue | public float getAngleValue(short uType) throws DOMException(Code) | | Used to retrieved the float value of the azimuth property.
Parameters: uType - The unit type can be only an angle unit type (CSS_DEG , CSS_RAD or CSS_GRAD ). The float value. exception: DOMException - INVALID_ACCESS_ERR: Raised if the unit type is invalid. |
getAzimuthType | public short getAzimuthType()(Code) | | A code defining the type of the value as defined in
CSSValue . It would be one of CSS_DEG ,
CSS_RAD , CSS_GRAD or CSS_IDENT
.
|
getBehind | public boolean getBehind()(Code) | | behind indicates whether the behind identifier has been
set.
|
getIdentifier | public String getIdentifier()(Code) | | If azimuthType is CSS_IDENT ,
identifier contains one of left-side, far-left, left,
center-left, center, center-right, right, far-right, right-side,
leftwards, rightwards. The empty string if none is set.
|
setAngleValue | public void setAngleValue(short uType, float fValue) throws DOMException(Code) | | A method to set the angle value with a specified unit. This method
will unset any previously set identifier value.
Parameters: uType - The unitType could only be one of CSS_DEG , CSS_RAD or CSS_GRAD ). Parameters: fValue - The new float value of the angle. exception: DOMException - INVALID_ACCESS_ERR: Raised if the unit type is invalid. NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. |
setIdentifier | public void setIdentifier(String ident, boolean b) throws DOMException(Code) | | Setting the identifier for the azimuth property will unset any
previously set angle value. The value of azimuthType is
set to CSS_IDENT
Parameters: ident - The new identifier. If the identifier is "leftwards" or "rightward", the behind attribute is ignored. Parameters: b - The new value for behind. exception: DOMException - SYNTAX_ERR: Raised if the specified identifier has a syntax error and is unparsable. NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. |
|
|