info.informatica.doc.style.css.visual.box
Class AbstractReplacedBox<C>

java.lang.Object
  extended by info.informatica.doc.style.css.visual.box.AbstractCSSBox
      extended by 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.

Author:
Carlos Amengual (amengual at informatica.info)

Constructor Summary
AbstractReplacedBox(CSSStylableElement replaced)
           
 
Method Summary
 float getHeight()
          Gets the height of this box.
protected  CSSStylableElement getReplacedElement()
           
 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
computeNumberOrZero, computeNumberOrZero, getBackgroundPosition, getBorderBottomColor, getBorderBottomWidth, getBorderLeftColor, getBorderLeftWidth, getBorderRightColor, getBorderRightWidth, getBorderTopColor, getBorderTopWidth, getComputedStyle, getContainerWidth, getContainingBlock, getCSSValue, getErrorHandler, getFontFamily, getFontSize, getFontWeight, getGeneratedSibling, getLeading, getLeading, getLeft, getLineHeight, getLineHeight, getLineHeightCSSValue, getMarginBottom, getMarginLeft, getMarginRight, getMarginTop, getPaddingBottom, getPaddingLeft, getPaddingRight, getPaddingSubproperty, getPaddingTop, getRight, isContainerHeightAuto, isHeightAuto, isWidthAuto, overflowsWithScroll, setContainingBlock, setErrorHandler, shrinkToFit, textLengthToNaturalUnit
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface info.informatica.doc.style.css.visual.ReplacedElementBox
getIntrinsicHeight, getIntrinsicWidth, init
 
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
 

Constructor Detail

AbstractReplacedBox

public AbstractReplacedBox(CSSStylableElement replaced)
Method Detail

getReplacedElement

protected CSSStylableElement getReplacedElement()

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>
Specified by:
getWidth in class AbstractCSSBox
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>
Specified by:
getHeight in class AbstractCSSBox
Returns:
the height of this box.


Copyright © 2011 informatica.info. All Rights Reserved.