info.informatica.doc.style.css.visual
Interface CSSInlineBox

All Superinterfaces:
CSSBox
All Known Implementing Classes:
InlineBox

public interface CSSInlineBox
extends CSSBox

CSS inline box.

Author:
Carlos Amengual (amengual at informatica.info)

Method Summary
 float computeHeight(float width)
           
 float getContentWidth()
           
 String getFontFamily()
          Gets the 'used' value for the font-family property.
 int getFontSize()
          Gets the computed value of the font-size property.
 String getFontWeight()
          Gets the computed font weight.
 float getLeading()
           
 float getLeading(float defval)
           
 float getLineHeight()
           
 float getLineHeight(float defval)
           
 org.w3c.dom.css.CSSValue getLineHeightCSSValue()
           
 float getMinimumWidth()
           
 String getText()
          Gets the text content of this box.
 float textLengthToNaturalUnit(int length)
           
 
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

getText

String getText()
Gets the text content of this box.

Returns:
the text content, or the empty string if the box has no text.

getFontFamily

String getFontFamily()
Gets the 'used' value for the font-family property.

This method requires a style database.

Returns:
the value of the font-family property.
Throws:
IllegalStateException - if the style database has not been set.

getFontWeight

String getFontWeight()
Gets the computed font weight.

Returns:
the font weight.

getFontSize

int getFontSize()
Gets the computed value of the font-size property.

May require a style database to work.

Returns:
the value of the font-size property, in typographic points.

getLineHeight

float getLineHeight()
                    throws CSSPropertyException
Throws:
CSSPropertyException

getLineHeight

float getLineHeight(float defval)
                    throws CSSPropertyException
Throws:
CSSPropertyException

getLeading

float getLeading()

getLeading

float getLeading(float defval)

getLineHeightCSSValue

org.w3c.dom.css.CSSValue getLineHeightCSSValue()

getContentWidth

float getContentWidth()

getMinimumWidth

float getMinimumWidth()

computeHeight

float computeHeight(float width)

textLengthToNaturalUnit

float textLengthToNaturalUnit(int length)


Copyright © 2011 informatica.info. All Rights Reserved.