org.apache.batik.parser.style
Class CSSRectValue

java.lang.Object
  |
  +--org.apache.batik.parser.style.AbstractCSSValue
        |
        +--org.apache.batik.parser.style.CSSRectValue
All Implemented Interfaces:
CSSPrimitiveValue, CSSValue, CSSValueList, Rect

public class CSSRectValue
extends AbstractCSSValue
implements Rect

This class represents CSS rect values


Field Summary
protected  CSSPrimitiveValue bottom
          The bottom value.
protected  CSSPrimitiveValue left
          The left value.
protected  CSSPrimitiveValue right
          The right value.
protected  CSSPrimitiveValue top
          The top value.
 
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
 
Constructor Summary
CSSRectValue(CSSPrimitiveValue t, CSSPrimitiveValue r, CSSPrimitiveValue b, CSSPrimitiveValue l)
          Creates a new rect value.
 
Method Summary
 CSSPrimitiveValue getBottom()
          DOM: Implements Rect.getBottom().
 java.lang.String getCssText()
          DOM: Implements CSSValue.getCssText().
 short getCssValueType()
          DOM: Implements CSSValue.getCssValueType().
 CSSPrimitiveValue getLeft()
          DOM: Implements Rect.getLeft().
 short getPrimitiveType()
          DOM: Implements CSSPrimitiveValue.getPrimitiveType().
 Rect getRectValue()
          DOM: Implements CSSPrimitiveValue.getRectValue().
 CSSPrimitiveValue getRight()
          DOM: Implements Rect.getRight().
 CSSPrimitiveValue getTop()
          DOM: Implements Rect.getTop().
 
Methods inherited from class org.apache.batik.parser.style.AbstractCSSValue
getCounterValue, getFloatValue, getLength, getRGBColorValue, getStringValue, item, setCssText, setFloatValue, setStringValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

top

protected CSSPrimitiveValue top
The top value.

right

protected CSSPrimitiveValue right
The right value.

bottom

protected CSSPrimitiveValue bottom
The bottom value.

left

protected CSSPrimitiveValue left
The left value.
Constructor Detail

CSSRectValue

public CSSRectValue(CSSPrimitiveValue t,
                    CSSPrimitiveValue r,
                    CSSPrimitiveValue b,
                    CSSPrimitiveValue l)
Creates a new rect value.
Parameters:
t - The top length.
t - The right length.
t - The bottom length.
t - The left length.
Method Detail

getCssValueType

public short getCssValueType()
DOM: Implements CSSValue.getCssValueType().

getPrimitiveType

public short getPrimitiveType()
DOM: Implements CSSPrimitiveValue.getPrimitiveType().
Overrides:
getPrimitiveType in class AbstractCSSValue

getCssText

public java.lang.String getCssText()
DOM: Implements CSSValue.getCssText().
Following copied from interface: org.w3c.dom.css.CSSValue
Throws:
DOMException - SYNTAX_ERR: Raised if the specified CSS string value has a syntax error (according to the attached property) or is unparsable.
INVALID_MODIFICATION_ERR: Raised if the specified CSS string value represents a different type of values than the values allowed by the CSS property.
NO_MODIFICATION_ALLOWED_ERR: Raised if this value is readonly.

getRectValue

public Rect getRectValue()
                  throws DOMException
DOM: Implements CSSPrimitiveValue.getRectValue().
Overrides:
getRectValue in class AbstractCSSValue
Following copied from interface: org.w3c.dom.css.CSSPrimitiveValue
Returns:
The Rect value.
Throws:
DOMException - INVALID_ACCESS_ERR: Raised if the CSS value doesn't contain a Rect value. (e.g. this is not CSS_RECT).

getTop

public CSSPrimitiveValue getTop()
DOM: Implements Rect.getTop().
Specified by:
getTop in interface Rect

getRight

public CSSPrimitiveValue getRight()
DOM: Implements Rect.getRight().
Specified by:
getRight in interface Rect

getBottom

public CSSPrimitiveValue getBottom()
DOM: Implements Rect.getBottom().
Specified by:
getBottom in interface Rect

getLeft

public CSSPrimitiveValue getLeft()
DOM: Implements Rect.getLeft().
Specified by:
getLeft in interface Rect


Copyright © 2001 Apache Software Foundation. All Rights Reserved.