public class CSSOMValue extends java.lang.Object implements CSSPrimitiveValue, CSSValueList, Counter, Rect, RGBColor
| Modifier and Type | Class and Description |
|---|---|
protected class |
CSSOMValue.AbstractComponent
To store a component.
|
static class |
CSSOMValue.AbstractModificationHandler
This class provides an abstract implementation of a ModificationHandler.
|
protected class |
CSSOMValue.BlueComponent
To represents a blue component.
|
protected class |
CSSOMValue.BottomComponent
To represents a bottom component.
|
protected class |
CSSOMValue.FloatComponent
To store a Float component.
|
protected class |
CSSOMValue.GreenComponent
To represents a green component.
|
protected class |
CSSOMValue.LeftComponent
To represents a left component.
|
protected class |
CSSOMValue.ListComponent
To represents a List component.
|
static interface |
CSSOMValue.ModificationHandler
To manage the modifications on a CSS value.
|
protected class |
CSSOMValue.RedComponent
To represents a red component.
|
protected class |
CSSOMValue.RightComponent
To represents a right component.
|
protected class |
CSSOMValue.TopComponent
To represents a top component.
|
static interface |
CSSOMValue.ValueProvider
To provides the actual value.
|
| Modifier and Type | Field and Description |
|---|---|
protected CSSOMValue.BlueComponent |
blueComponent
The blue component, if this value is a RGBColor.
|
protected CSSOMValue.BottomComponent |
bottomComponent
The bottom component, if this value is a Rect.
|
protected CSSOMValue.GreenComponent |
greenComponent
The green component, if this value is a RGBColor.
|
protected CSSOMValue.ModificationHandler |
handler
The modifications handler.
|
protected CSSValue[] |
items
The list items.
|
protected CSSOMValue.LeftComponent |
leftComponent
The left component, if this value is a Rect.
|
protected CSSOMValue.RedComponent |
redComponent
The red component, if this value is a RGBColor.
|
protected CSSOMValue.RightComponent |
rightComponent
The right component, if this value is a Rect.
|
protected CSSOMValue.TopComponent |
topComponent
The top component, if this value is a Rect.
|
protected CSSOMValue.ValueProvider |
valueProvider
The associated value.
|
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_URICSS_CUSTOM, CSS_INHERIT, CSS_PRIMITIVE_VALUE, CSS_VALUE_LIST| Constructor and Description |
|---|
CSSOMValue(CSSOMValue.ValueProvider vp)
Creates a new CSSOMValue.
|
| Modifier and Type | Method and Description |
|---|---|
static float |
convertFloatValue(short unitType,
Value value)
Converts the actual float value to the given unit type.
|
CSSPrimitiveValue |
getBlue()
DOM: Implements
RGBColor.getBlue(). |
CSSPrimitiveValue |
getBottom()
DOM: Implements
Rect.getBottom(). |
Counter |
getCounterValue()
DOM: Implements
CSSPrimitiveValue.getCounterValue(). |
java.lang.String |
getCssText()
DOM: Implements
CSSValue.getCssText(). |
short |
getCssValueType()
DOM: Implements
CSSValue.getCssValueType(). |
float |
getFloatValue(short unitType)
DOM: Implements
CSSPrimitiveValue.getFloatValue(short). |
CSSPrimitiveValue |
getGreen()
DOM: Implements
RGBColor.getGreen(). |
java.lang.String |
getIdentifier()
DOM: Implements
Counter.getIdentifier(). |
CSSPrimitiveValue |
getLeft()
DOM: Implements
Rect.getLeft(). |
int |
getLength()
DOM: Implements
CSSValueList.getLength(). |
java.lang.String |
getListStyle()
DOM: Implements
Counter.getListStyle(). |
short |
getPrimitiveType()
DOM: Implements
CSSPrimitiveValue.getPrimitiveType(). |
Rect |
getRectValue()
DOM: Implements
CSSPrimitiveValue.getRectValue(). |
CSSPrimitiveValue |
getRed()
DOM: Implements
RGBColor.getRed(). |
RGBColor |
getRGBColorValue()
DOM: Implements
CSSPrimitiveValue.getRGBColorValue(). |
CSSPrimitiveValue |
getRight()
DOM: Implements
Rect.getRight(). |
java.lang.String |
getSeparator()
DOM: Implements
Counter.getSeparator(). |
java.lang.String |
getStringValue()
DOM: Implements
CSSPrimitiveValue.getStringValue(). |
CSSPrimitiveValue |
getTop()
DOM: Implements
Rect.getTop(). |
CSSValue |
item(int index)
DOM: Implements
CSSValueList.item(int). |
void |
setCssText(java.lang.String cssText)
DOM: Implements
CSSValue.setCssText(String). |
void |
setFloatValue(short unitType,
float floatValue)
DOM: Implements
CSSPrimitiveValue.setFloatValue(short,float). |
void |
setModificationHandler(CSSOMValue.ModificationHandler h)
Sets the modification handler of this value.
|
void |
setStringValue(short stringType,
java.lang.String stringValue)
DOM: Implements
CSSPrimitiveValue.setStringValue(short,String). |
protected static float |
toCentimeters(Value value)
Converts the current value into centimeters.
|
protected static float |
toDegrees(Value value)
Converts the current value into degrees.
|
protected static float |
toGradians(Value value)
Converts the current value into gradians.
|
protected static float |
toHertz(Value value)
Converts the current value into Hertz.
|
protected static float |
toInches(Value value)
Converts the current value into inches.
|
protected static float |
tokHertz(Value value)
Converts the current value into kHertz.
|
protected static float |
toMillimeters(Value value)
Converts the current value into millimeters.
|
protected static float |
toMilliseconds(Value value)
Converts the current value into milliseconds.
|
protected static float |
toPicas(Value value)
Converts the current value into picas.
|
protected static float |
toPoints(Value value)
Converts the current value into points.
|
protected static float |
toRadians(Value value)
Converts the current value into radians.
|
protected static float |
toSeconds(Value value)
Converts the current value into seconds.
|
protected CSSOMValue.ValueProvider valueProvider
protected CSSOMValue.ModificationHandler handler
protected CSSOMValue.LeftComponent leftComponent
protected CSSOMValue.RightComponent rightComponent
protected CSSOMValue.BottomComponent bottomComponent
protected CSSOMValue.TopComponent topComponent
protected CSSOMValue.RedComponent redComponent
protected CSSOMValue.GreenComponent greenComponent
protected CSSOMValue.BlueComponent blueComponent
protected CSSValue[] items
public CSSOMValue(CSSOMValue.ValueProvider vp)
public void setModificationHandler(CSSOMValue.ModificationHandler h)
public java.lang.String getCssText()
CSSValue.getCssText().getCssText in interface CSSValuepublic void setCssText(java.lang.String cssText)
throws DOMException
CSSValue.setCssText(String).setCssText in interface CSSValueDOMExceptionpublic short getCssValueType()
CSSValue.getCssValueType().getCssValueType in interface CSSValuepublic short getPrimitiveType()
CSSPrimitiveValue.getPrimitiveType().getPrimitiveType in interface CSSPrimitiveValuepublic void setFloatValue(short unitType,
float floatValue)
throws DOMException
CSSPrimitiveValue.setFloatValue(short,float).setFloatValue in interface CSSPrimitiveValueDOMExceptionpublic float getFloatValue(short unitType)
throws DOMException
CSSPrimitiveValue.getFloatValue(short).getFloatValue in interface CSSPrimitiveValueDOMExceptionpublic static float convertFloatValue(short unitType,
Value value)
protected static float toCentimeters(Value value)
protected static float toInches(Value value)
protected static float toMillimeters(Value value)
protected static float toPoints(Value value)
protected static float toPicas(Value value)
protected static float toDegrees(Value value)
protected static float toRadians(Value value)
protected static float toGradians(Value value)
protected static float toMilliseconds(Value value)
protected static float toSeconds(Value value)
protected static float toHertz(Value value)
protected static float tokHertz(Value value)
public void setStringValue(short stringType,
java.lang.String stringValue)
throws DOMException
CSSPrimitiveValue.setStringValue(short,String).setStringValue in interface CSSPrimitiveValueDOMExceptionpublic java.lang.String getStringValue()
throws DOMException
CSSPrimitiveValue.getStringValue().getStringValue in interface CSSPrimitiveValueDOMExceptionpublic Counter getCounterValue() throws DOMException
CSSPrimitiveValue.getCounterValue().getCounterValue in interface CSSPrimitiveValueDOMExceptionpublic Rect getRectValue() throws DOMException
CSSPrimitiveValue.getRectValue().getRectValue in interface CSSPrimitiveValueDOMExceptionpublic RGBColor getRGBColorValue() throws DOMException
CSSPrimitiveValue.getRGBColorValue().getRGBColorValue in interface CSSPrimitiveValueDOMExceptionpublic int getLength()
CSSValueList.getLength().getLength in interface CSSValueListpublic CSSValue item(int index)
CSSValueList.item(int).item in interface CSSValueListpublic java.lang.String getIdentifier()
Counter.getIdentifier().getIdentifier in interface Counterpublic java.lang.String getListStyle()
Counter.getListStyle().getListStyle in interface Counterpublic java.lang.String getSeparator()
Counter.getSeparator().getSeparator in interface Counterpublic CSSPrimitiveValue getTop()
Rect.getTop().public CSSPrimitiveValue getRight()
Rect.getRight().public CSSPrimitiveValue getBottom()
Rect.getBottom().public CSSPrimitiveValue getLeft()
Rect.getLeft().public CSSPrimitiveValue getRed()
RGBColor.getRed().public CSSPrimitiveValue getGreen()
RGBColor.getGreen().public CSSPrimitiveValue getBlue()
RGBColor.getBlue().Copyright © 2022 Apache Software Foundation. All Rights Reserved.