org.apache.batik.css.dom
public class CSSOMValue extends Object implements CSSPrimitiveValue, CSSValueList, Counter, Rect, RGBColor
Nested Class Summary | |
---|---|
protected abstract class | CSSOMValue.AbstractComponent
To store a component. |
abstract 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 abstract 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. |
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. |
interface | CSSOMValue.ValueProvider
To provides the actual value. |
Field Summary | |
---|---|
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. |
Constructor Summary | |
---|---|
CSSOMValue(CSSOMValue.ValueProvider vp)
Creates a new CSSOMValue. |
Method Summary | |
---|---|
static float | convertFloatValue(short unitType, Value value)
Converts the actual float value to the given unit type. |
CSSPrimitiveValue | getBlue()
DOM: Implements org.w3c.dom.css.RGBColor#getBlue(). |
CSSPrimitiveValue | getBottom()
DOM: Implements org.w3c.dom.css.Rect#getBottom(). |
Counter | getCounterValue()
DOM: Implements org.w3c.dom.css.CSSPrimitiveValue#getCounterValue(). |
String | getCssText()
DOM: Implements org.w3c.dom.css.CSSValue#getCssText(). |
short | getCssValueType()
DOM: Implements org.w3c.dom.css.CSSValue#getCssValueType(). |
float | getFloatValue(short unitType)
DOM: Implements org.w3c.dom.css.CSSPrimitiveValue#getFloatValue(short). |
CSSPrimitiveValue | getGreen()
DOM: Implements org.w3c.dom.css.RGBColor#getGreen(). |
String | getIdentifier()
DOM: Implements org.w3c.dom.css.Counter#getIdentifier(). |
CSSPrimitiveValue | getLeft()
DOM: Implements org.w3c.dom.css.Rect#getLeft(). |
int | getLength()
DOM: Implements org.w3c.dom.css.CSSValueList#getLength(). |
String | getListStyle()
DOM: Implements org.w3c.dom.css.Counter#getListStyle(). |
short | getPrimitiveType()
DOM: Implements org.w3c.dom.css.CSSPrimitiveValue#getPrimitiveType(). |
Rect | getRectValue()
DOM: Implements org.w3c.dom.css.CSSPrimitiveValue#getRectValue(). |
CSSPrimitiveValue | getRed()
DOM: Implements org.w3c.dom.css.RGBColor#getRed(). |
RGBColor | getRGBColorValue()
DOM: Implements org.w3c.dom.css.CSSPrimitiveValue#getRGBColorValue(). |
CSSPrimitiveValue | getRight()
DOM: Implements org.w3c.dom.css.Rect#getRight(). |
String | getSeparator()
DOM: Implements org.w3c.dom.css.Counter#getSeparator(). |
String | getStringValue()
DOM: Implements org.w3c.dom.css.CSSPrimitiveValue#getStringValue(). |
CSSPrimitiveValue | getTop()
DOM: Implements org.w3c.dom.css.Rect#getTop(). |
CSSValue | item(int index)
DOM: Implements org.w3c.dom.css.CSSValueList#item(int). |
void | setCssText(String cssText)
DOM: Implements org.w3c.dom.css.CSSValue#setCssText(String). |
void | setFloatValue(short unitType, float floatValue)
DOM: Implements org.w3c.dom.css.CSSPrimitiveValue#setFloatValue(short,float). |
void | setModificationHandler(CSSOMValue.ModificationHandler h)
Sets the modification handler of this value. |
void | setStringValue(short stringType, String stringValue)
DOM: Implements org.w3c.dom.css.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. |