info.informatica.doc.style.css.visual.box
Class AbstractReplacedBox<C>
java.lang.Object
info.informatica.doc.style.css.visual.box.AbstractCSSBox
info.informatica.doc.style.css.visual.box.AbstractReplacedBox<C>
- All Implemented Interfaces:
- CSSBox, ReplacedElementBox<C>
- Direct Known Subclasses:
- ImgReplacedBox, PDFImgReplacedBox, PDFInputTextReplacedBox
public abstract class AbstractReplacedBox<C>
- extends AbstractCSSBox
- implements ReplacedElementBox<C>
Abstract base class for replaced element boxes.
|
Method Summary |
float |
getHeight()
Gets the height of this box. |
float |
getWidth()
Gets the width of this box, expressed in the
unit given by the StyleDatabase.getNaturalUnit() method. |
| Methods inherited from class info.informatica.doc.style.css.visual.box.AbstractCSSBox |
getBackgroundPosition, getBorderBottomColor, getBorderBottomWidth, getBorderLeftColor, getBorderLeftWidth, getBorderRightColor, getBorderRightWidth, getBorderTopColor, getBorderTopWidth, getComputedStyle, getContainingBlock, getFontFamily, getFontSize, getFontWeight, getGeneratedSibling, getLeading, getLeading, getLeft, getLineHeight, getLineHeight, getLineHeightCSSValue, getMarginBottom, getMarginLeft, getMarginRight, getMarginTop, getPaddingBottom, getPaddingLeft, getPaddingRight, getPaddingTop, getRight, setContainingBlock, setErrorHandler |
| Methods inherited from interface info.informatica.doc.style.css.visual.CSSBox |
getBackgroundPosition, getBorderBottomColor, getBorderBottomWidth, getBorderLeftColor, getBorderLeftWidth, getBorderRightColor, getBorderRightWidth, getBorderTopColor, getBorderTopWidth, getComputedStyle, getContainingBlock, getGeneratedSibling, getLeft, getMarginBottom, getMarginLeft, getMarginRight, getMarginTop, getPaddingBottom, getPaddingLeft, getPaddingRight, getPaddingTop, getRight, setErrorHandler |
AbstractReplacedBox
public AbstractReplacedBox(CSSStylableElement replaced)
getWidth
public float getWidth()
- Gets the width of this box, expressed in the
unit given by the
StyleDatabase.getNaturalUnit() method.
- Specified by:
getWidth in interface ReplacedElementBox<C>
- Returns:
- the width of this box.
getHeight
public float getHeight()
- Description copied from class:
AbstractCSSBox
- Gets the height of this box.
This is defined to be the value of the height property, for
boxes where it is defined, or the content height otherwise.
- Specified by:
getHeight in interface ReplacedElementBox<C>
- Returns:
- the height of this box.