Interface Value
-
- All Known Subinterfaces:
SVGValue
- All Known Implementing Classes:
AbstractCIEColor,AbstractValue,CIELabColor,CIELCHColor,ComputedValue,DeviceColor,FloatValue,ICCColor,ICCNamedColor,InheritValue,LineHeightValue,ListValue,RectValue,RGBColorValue,StringValue,URIValue
public interface ValueThis interface represents a property value.- Version:
- $Id: Value.java 1733416 2016-03-03 07:07:13Z gadams $
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ValuegetBlue()The blue value of the RGB color.ValuegetBottom()The bottom value of the rect.java.lang.StringgetCssText()A string representation of the current value.shortgetCssValueType()A code defining the type of the value.floatgetFloatValue()This method is used to get the float value.ValuegetGreen()The green value of the RGB color.java.lang.StringgetIdentifier()The identifier value of the counter.ValuegetLeft()The left value of the rect.intgetLength()The number ofCSSValuesin the list.java.lang.StringgetListStyle()The listStyle value of the counter.shortgetPrimitiveType()The type of the value.ValuegetRed()The red value of the RGB color.ValuegetRight()The right value of the rect.java.lang.StringgetSeparator()The separator value of the counter.java.lang.StringgetStringValue()This method is used to get the string value.ValuegetTop()The top value of the rect.Valueitem(int index)Used to retrieve a rule by ordinal index.
-
-
-
Method Detail
-
getCssText
java.lang.String getCssText()
A string representation of the current value.
-
getCssValueType
short getCssValueType()
A code defining the type of the value.
-
getPrimitiveType
short getPrimitiveType()
The type of the value.
-
getFloatValue
float getFloatValue() throws org.w3c.dom.DOMExceptionThis method is used to get the float value.- Throws:
org.w3c.dom.DOMException- INVALID_ACCESS_ERR: Raised if the value doesn't contain a float value.
-
getStringValue
java.lang.String getStringValue() throws org.w3c.dom.DOMExceptionThis method is used to get the string value.- Throws:
org.w3c.dom.DOMException- INVALID_ACCESS_ERR: Raised if the value doesn't contain a string value.
-
getRed
Value getRed() throws org.w3c.dom.DOMException
The red value of the RGB color.- Throws:
org.w3c.dom.DOMException- INVALID_ACCESS_ERR: Raised if the value doesn't contain a RGB color value.
-
getGreen
Value getGreen() throws org.w3c.dom.DOMException
The green value of the RGB color.- Throws:
org.w3c.dom.DOMException- INVALID_ACCESS_ERR: Raised if the value doesn't contain a RGB color value.
-
getBlue
Value getBlue() throws org.w3c.dom.DOMException
The blue value of the RGB color.- Throws:
org.w3c.dom.DOMException- INVALID_ACCESS_ERR: Raised if the value doesn't contain a RGB color value.
-
getLength
int getLength() throws org.w3c.dom.DOMExceptionThe number ofCSSValuesin the list. The range of valid values of the indices is0tolength-1inclusive.- Throws:
org.w3c.dom.DOMException- INVALID_ACCESS_ERR: Raised if the value doesn't contain a list value.
-
item
Value item(int index) throws org.w3c.dom.DOMException
Used to retrieve a rule by ordinal index.- Returns:
- The style rule at the
indexposition in the list, ornullif that is not a valid index. - Throws:
org.w3c.dom.DOMException- INVALID_ACCESS_ERR: Raised if the value doesn't contain a list value.
-
getTop
Value getTop() throws org.w3c.dom.DOMException
The top value of the rect.- Throws:
org.w3c.dom.DOMException- INVALID_ACCESS_ERR: Raised if the value doesn't contain a Rect value.
-
getRight
Value getRight() throws org.w3c.dom.DOMException
The right value of the rect.- Throws:
org.w3c.dom.DOMException- INVALID_ACCESS_ERR: Raised if the value doesn't contain a Rect value.
-
getBottom
Value getBottom() throws org.w3c.dom.DOMException
The bottom value of the rect.- Throws:
org.w3c.dom.DOMException- INVALID_ACCESS_ERR: Raised if the value doesn't contain a Rect value.
-
getLeft
Value getLeft() throws org.w3c.dom.DOMException
The left value of the rect.- Throws:
org.w3c.dom.DOMException- INVALID_ACCESS_ERR: Raised if the value doesn't contain a Rect value.
-
getIdentifier
java.lang.String getIdentifier() throws org.w3c.dom.DOMExceptionThe identifier value of the counter.- Throws:
org.w3c.dom.DOMException- INVALID_ACCESS_ERR: Raised if the value doesn't contain a Counter value.
-
getListStyle
java.lang.String getListStyle() throws org.w3c.dom.DOMExceptionThe listStyle value of the counter.- Throws:
org.w3c.dom.DOMException- INVALID_ACCESS_ERR: Raised if the value doesn't contain a Counter value.
-
getSeparator
java.lang.String getSeparator() throws org.w3c.dom.DOMExceptionThe separator value of the counter.- Throws:
org.w3c.dom.DOMException- INVALID_ACCESS_ERR: Raised if the value doesn't contain a Counter value.
-
-