info.informatica.doc.style.css.visual
Interface ReplacedElementBox<C>

All Superinterfaces:
CSSBox
All Known Implementing Classes:
AbstractReplacedBox, ImgReplacedBox, PDFImgReplacedBox, PDFInputTextReplacedBox

public interface ReplacedElementBox<C>
extends CSSBox

To be implemented by replaced element boxes.

Author:
Carlos Amengual (amengual at informatica.info)

Method Summary
 float getHeight()
          Gets the height of this box.
 float getIntrinsicHeight()
          Gets the intrinsic height of this box, as obtained from the replaced element.
 float getIntrinsicWidth()
          Gets the intrinsic width of this box, as obtained from the replaced element.
 float getWidth()
          Gets the width of this box, expressed in the unit given by the StyleDatabase.getNaturalUnit() method.
 void init(UserAgent<C> agent)
          Initializes the replaced element.
 
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
 

Method Detail

init

void init(UserAgent<C> agent)
          throws CSSReplacementException
Initializes the replaced element.

Must be called before using any of the other methods.

Parameters:
agent - the user agent.
Throws:
CSSReplacementException - if an error occurred when initializing the replaced element box.

getWidth

float getWidth()
Gets the width of this box, expressed in the unit given by the StyleDatabase.getNaturalUnit() method.

Returns:
the width of this box.

getHeight

float getHeight()
Gets the height of this box.

Returns:
the height.

getIntrinsicWidth

float getIntrinsicWidth()
Gets the intrinsic width of this box, as obtained from the replaced element.

Returns:
the width.

getIntrinsicHeight

float getIntrinsicHeight()
Gets the intrinsic height of this box, as obtained from the replaced element.

Returns:
the intrinsic height.


Copyright © 2011 informatica.info. All Rights Reserved.