java.lang.Object
io.sf.carte.echosvg.css.engine.value.AbstractValue
io.sf.carte.echosvg.css.engine.value.ComponentValue
io.sf.carte.echosvg.css.engine.value.RectValue
- All Implemented Interfaces:
CSSValue,CSSVal,Value,Serializable,Cloneable,CSSRectValue,CSSStyleValue
This class represents CSS rect values.
Original author: Stephane Hillion. For later modifications, see Git history.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.sf.carte.doc.style.css.CSSValue
CSSValue.CssType, CSSValue.Type -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()Create and return a copy of this object.The bottom of the rectangle.A string representation of the current value.getLeft()The left of the rectangle.intIf this value is a list or contains components, the number ofCSSStyleValues in the list.The type of the value.If this value is a rect() value, get it.getRight()The right of the rectangle.getTop()The top of the rectangle.item(int index) If this value is a list, give the item corresponding to the requested index.Methods inherited from class io.sf.carte.echosvg.css.engine.value.ComponentValue
componentAdded, componentChanged, componentize, componentRemoved, getComponentHandlerMethods inherited from class io.sf.carte.echosvg.css.engine.value.AbstractValue
createDOMException, equals, getColorValue, getCounterValue, getCssValueType, getFloatValue, getIdentifierValue, getModificationHandler, getStringValue, getURIValue, hashCode, setCssText, setFloatValue, setModificationHandler, toStringMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface io.sf.carte.echosvg.css.engine.value.CSSVal
matches, writeCssTextMethods inherited from interface io.sf.carte.doc.style.css.CSSValue
getMinifiedCssText, getMinifiedCssText, getPrecedingComments, getTrailingComments, isPrimitiveValueMethods inherited from interface io.sf.carte.echosvg.css.engine.value.Value
getIdentifier, getUnitType, isComponent, isIdentifier, iterator
-
Field Details
-
top
The top value. -
right
The right value. -
bottom
The bottom value. -
left
The left value.
-
-
Constructor Details
-
RectValue
Creates a new Rect value.
-
-
Method Details
-
getPrimitiveType
The type of the value.- Specified by:
getPrimitiveTypein interfaceCSSValue
-
getCssText
A string representation of the current value.- Specified by:
getCssTextin interfaceCSSValue
-
getTop
Description copied from interface:CSSRectValueThe top of the rectangle.- Specified by:
getTopin interfaceCSSRectValue- Returns:
- the top of the rectangle.
- Throws:
DOMException
-
getRight
Description copied from interface:CSSRectValueThe right of the rectangle.- Specified by:
getRightin interfaceCSSRectValue- Returns:
- the right of the rectangle.
- Throws:
DOMException
-
getBottom
Description copied from interface:CSSRectValueThe bottom of the rectangle.- Specified by:
getBottomin interfaceCSSRectValue- Returns:
- the bottom of the rectangle.
- Throws:
DOMException
-
getLeft
Description copied from interface:CSSRectValueThe left of the rectangle.- Specified by:
getLeftin interfaceCSSRectValue- Returns:
- the left of the rectangle.
- Throws:
DOMException
-
getRectValue
Description copied from interface:ValueIf this value is a rect() value, get it.- Specified by:
getRectValuein interfaceValue- Overrides:
getRectValuein classAbstractValue- Returns:
- the rect() value.
- Throws:
DOMException- INVALID_ACCESS_ERR if this is not a rect() value.
-
getLength
Description copied from interface:CSSValIf this value is a list or contains components, the number ofCSSStyleValues in the list. The range of valid values of the indices is0tolength-1inclusive.- Specified by:
getLengthin interfaceCSSVal- Overrides:
getLengthin classAbstractValue- Returns:
- the number of components, or
0if this value is not a list nor does it contain components. - Throws:
DOMException
-
item
Description copied from interface:ValueIf this value is a list, give the item corresponding to the requested index. If there is no item at such index, returnnullIf this object is not a list and the index is0, return itself.- Specified by:
itemin interfaceCSSVal- Specified by:
itemin interfaceValue- Parameters:
index- the index on the list.- Returns:
- the item, or
nullif there is no item on that index. - Throws:
DOMException
-
clone
Description copied from interface:ValueCreate and return a copy of this object.If this object is unmodifiable, the clone will be modifiable.
-