|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.
Fields inherited from interface org.w3c.dom.css.CSSValue |
CSS_CUSTOM, CSS_INHERIT, CSS_PRIMITIVE_VALUE, CSS_VALUE_LIST |
Method Summary | |
float |
getAngleValue(short uType)
Used to retrieved the float value of the azimuth property. |
short |
getAzimuthType()
A code defining the type of the value as defined in CSSValue . |
boolean |
getBehind()
behind indicates whether the behind identifier has been
set. |
java.lang.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. |
void |
setAngleValue(short uType,
float fValue)
A method to set the angle value with a specified unit. |
void |
setIdentifier(java.lang.String ident,
boolean b)
Setting the identifier for the azimuth property will unset any previously set angle value. |
Methods inherited from interface org.w3c.dom.css.CSSValue |
getCssText, getCssValueType, setCssText |
Method Detail |
public short getAzimuthType()
CSSValue
. It would be one of CSS_DEG
,
CSS_RAD
, CSS_GRAD
or CSS_IDENT
.public java.lang.String getIdentifier()
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.public boolean getBehind()
behind
indicates whether the behind identifier has been
set.public void setAngleValue(short uType, float fValue) throws DOMException
uType
- The unitType could only be one of CSS_DEG
,
CSS_RAD
or CSS_GRAD
).fValue
- The new float value of the angle.DOMException
- INVALID_ACCESS_ERR: Raised if the unit type is invalid.
public float getAngleValue(short uType) throws DOMException
uType
- The unit type can be only an angle unit type (
CSS_DEG
, CSS_RAD
or CSS_GRAD
).DOMException
- INVALID_ACCESS_ERR: Raised if the unit type is invalid.public void setIdentifier(java.lang.String ident, boolean b) throws DOMException
azimuthType
is
set to CSS_IDENT
ident
- The new identifier. If the identifier is "leftwards" or
"rightward", the behind attribute is ignored.b
- The new value for behind.DOMException
- SYNTAX_ERR: Raised if the specified identifier
has a
syntax error and is unparsable.
|
Source code is GPL'd at http://xmlconf.sourceforge.net. |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |