|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectinfo.informatica.doc.style.css.property.AbstractCSSValue
info.informatica.doc.style.css.property.AbstractCSSPrimitiveValue
info.informatica.doc.style.css.property.CSSNumberValue
public class CSSNumberValue
Float-specific CSSPrimitiveValue.
| Field Summary | |
|---|---|
protected float |
realvalue
|
| Fields inherited from interface org.w3c.dom.css.CSSPrimitiveValue |
|---|
CSS_ATTR, CSS_CM, CSS_COUNTER, CSS_DEG, CSS_DIMENSION, CSS_EMS, CSS_EXS, CSS_GRAD, CSS_HZ, CSS_IDENT, CSS_IN, CSS_KHZ, CSS_MM, CSS_MS, CSS_NUMBER, CSS_PC, CSS_PERCENTAGE, CSS_PT, CSS_PX, CSS_RAD, CSS_RECT, CSS_RGBCOLOR, CSS_S, CSS_STRING, CSS_UNKNOWN, CSS_URI |
| Fields inherited from interface org.w3c.dom.css.CSSValue |
|---|
CSS_CUSTOM, CSS_INHERIT, CSS_PRIMITIVE_VALUE, CSS_VALUE_LIST |
| Method Summary | |
|---|---|
String |
getCssText()
|
float |
getFloatValue()
Gets a float value in the device's natural unit, as defined by the style database. |
float |
getFloatValue(short unitType)
Gets a float value in a specified unit. |
void |
setFloatValue(short unitType,
float floatValue)
|
| Methods inherited from class info.informatica.doc.style.css.property.AbstractCSSPrimitiveValue |
|---|
domPrimitiveType, getCounterValue, getLexicalUnit, getPrimitiveType, getRectValue, getRGBColorValue, getStringValue, getStyleDatabase, isSubproperty, nextPrimitiveValue, setCSSUnitType, setStringValue, setStyleDatabase, setSubproperty |
| Methods inherited from class info.informatica.doc.style.css.property.AbstractCSSValue |
|---|
createCSSValue, createCSSValue, getCssValueType, setCssText |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.w3c.dom.css.CSSValue |
|---|
getCssValueType, setCssText |
| Field Detail |
|---|
protected float realvalue
| Method Detail |
|---|
public String getCssText()
getCssText in interface org.w3c.dom.css.CSSValuegetCssText in class AbstractCSSValue
public void setFloatValue(short unitType,
float floatValue)
throws DOMException
setFloatValue in interface org.w3c.dom.css.CSSPrimitiveValuesetFloatValue in class AbstractCSSPrimitiveValueDOMException
public float getFloatValue(short unitType)
throws DOMException
DOMException is raised.
getFloatValue in interface org.w3c.dom.css.CSSPrimitiveValuegetFloatValue in class AbstractCSSPrimitiveValueunitType - A unit code to get the float value. The unit code can
only be a float unit type (i.e. CSS_NUMBER,
CSS_PERCENTAGE, CSS_EMS,
CSS_EXS, CSS_PX, CSS_CM,
CSS_MM, CSS_IN, CSS_PT,
CSS_PC, CSS_DEG, CSS_RAD,
CSS_GRAD, CSS_MS, CSS_S,
CSS_HZ, CSS_KHZ,
CSS_DIMENSION).
DOMException - INVALID_ACCESS_ERR if the CSS value can't be converted into
the specified unit.
public float getFloatValue()
throws DOMException
DOMException - INVALID_ACCESS_ERR if the CSS value can't be converted into
the natural unit.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||