info.informatica.doc.style.css.visual.box
Class InlineBox

java.lang.Object
  extended by info.informatica.doc.style.css.visual.box.AbstractCSSBox
      extended by info.informatica.doc.style.css.visual.box.AbstractInlineBox
          extended by info.informatica.doc.style.css.visual.box.InlineBox
All Implemented Interfaces:
CSSBox, CSSInlineBox

public class InlineBox
extends AbstractInlineBox
implements CSSInlineBox

CSS inline Box.

Author:
Carlos Amengual (amengual at informatica.info)

Constructor Summary
InlineBox(CSS2ComputedProperties style)
           
 
Method Summary
 float computeHeight(float width)
           
 float getContentHeight()
           
 float getContentWidth()
           
protected  float getHeight()
          Gets the height of this box.
 float getMinimumWidth()
           
 String getText()
          Gets the (whitespace-trimmed) text content of this box.
protected  float getWidth()
          Gets the width of this box.
 float textLengthToNaturalUnit(int length)
           
 
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
 
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.CSSInlineBox
getFontFamily, getFontSize, getFontWeight, getLeading, getLeading, getLineHeight, getLineHeight, getLineHeightCSSValue
 
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

InlineBox

public InlineBox(CSS2ComputedProperties style)
Method Detail

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.

getWidth

protected float getWidth()
Description copied from class: AbstractCSSBox
Gets the width of this box.

This is defined to be the value of the width property, for boxes where it is defined, or the content width otherwise.

Specified by:
getWidth in class AbstractCSSBox
Returns:
the width of this box.

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

getHeight

protected 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 class AbstractCSSBox
Returns:
the height of this box.

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
Overrides:
textLengthToNaturalUnit in class AbstractCSSBox


Copyright © 2011 informatica.info. All Rights Reserved.