public class RectValue extends AbstractValue
Modifier and Type | Field and Description |
---|---|
protected Value |
bottom
The bottom value.
|
protected Value |
left
The left value.
|
protected Value |
right
The right value.
|
protected Value |
top
The top value.
|
Constructor and Description |
---|
RectValue(Value t,
Value r,
Value b,
Value l)
Creates a new Rect value.
|
Modifier and Type | Method and Description |
---|---|
Value |
getBottom()
Implements
Value.getBottom() . |
java.lang.String |
getCssText()
A string representation of the current value.
|
Value |
getLeft()
Implements
Value.getLeft() . |
short |
getPrimitiveType()
The type of the value.
|
Value |
getRight()
Implements
Value.getRight() . |
Value |
getTop()
Implements
Value.getTop() . |
java.lang.String |
toString()
Returns a printable representation of this value.
|
createDOMException, getBlue, getCssValueType, getFloatValue, getGreen, getIdentifier, getLength, getListStyle, getRed, getSeparator, getStringValue, item
protected Value top
protected Value right
protected Value bottom
protected Value left
public short getPrimitiveType()
getPrimitiveType
in interface Value
getPrimitiveType
in class AbstractValue
public java.lang.String getCssText()
public Value getTop() throws DOMException
Value.getTop()
.getTop
in interface Value
getTop
in class AbstractValue
DOMException
- INVALID_ACCESS_ERR: Raised if the value doesn't contain a Rect
value.public Value getRight() throws DOMException
Value.getRight()
.getRight
in interface Value
getRight
in class AbstractValue
DOMException
- INVALID_ACCESS_ERR: Raised if the value doesn't contain a Rect
value.public Value getBottom() throws DOMException
Value.getBottom()
.getBottom
in interface Value
getBottom
in class AbstractValue
DOMException
- INVALID_ACCESS_ERR: Raised if the value doesn't contain a Rect
value.public Value getLeft() throws DOMException
Value.getLeft()
.getLeft
in interface Value
getLeft
in class AbstractValue
DOMException
- INVALID_ACCESS_ERR: Raised if the value doesn't contain a Rect
value.public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2022 Apache Software Foundation. All Rights Reserved.