info.informatica.doc.style.css.visual.box
Class InlineBox
java.lang.Object
info.informatica.doc.style.css.visual.box.AbstractCSSBox
info.informatica.doc.style.css.visual.box.AbstractInlineBox
info.informatica.doc.style.css.visual.box.InlineBox
- All Implemented Interfaces:
- CSSBox, CSSInlineBox
public class InlineBox
- extends AbstractInlineBox
- implements CSSInlineBox
CSS inline Box.
| 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 |
InlineBox
public InlineBox(CSS2ComputedProperties style)
getText
public String getText()
- Gets the (whitespace-trimmed) text content of this box.
- Specified by:
getText in interface CSSInlineBox
- Returns:
- the text content, or the empty string if the box
has no text.
getContentWidth
public float getContentWidth()
- Specified by:
getContentWidth in interface CSSInlineBox- Specified by:
getContentWidth in class AbstractInlineBox
getMinimumWidth
public float getMinimumWidth()
- Specified by:
getMinimumWidth in interface CSSInlineBox
getContentHeight
public float getContentHeight()
computeHeight
public float computeHeight(float width)
- Specified by:
computeHeight in interface CSSInlineBox- Specified by:
computeHeight in class AbstractInlineBox
textLengthToNaturalUnit
public float textLengthToNaturalUnit(int length)
- Specified by:
textLengthToNaturalUnit in interface CSSInlineBox