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

java.lang.Object
  extended by info.informatica.doc.style.css.visual.box.InlineContainer
All Implemented Interfaces:
CSSBoxContainer, CSSInlineBoxContainer

public class InlineContainer
extends Object
implements CSSInlineBoxContainer

Container of CSS inline boxes.

Author:
Carlos Amengual (amengual at informatica.info)

Constructor Summary
InlineContainer()
           
InlineContainer(int size)
           
 
Method Summary
 float computeHeight(float width)
          Compute the height of the box, for the given width.
 float getContentWidth()
          Gets the width of the content, expressed in natural units.
 List<CSSBox> getInlineBoxes()
          Gets the descendant inline boxes.
 float getMinimumWidth()
          Gets the minimum width required to avoid width overflowing (horizontal scroll bar).
 boolean overflowsWidth()
           
protected  void setOverflowsWidth()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InlineContainer

public InlineContainer()

InlineContainer

public InlineContainer(int size)
Method Detail

getInlineBoxes

public List<CSSBox> getInlineBoxes()
Description copied from interface: CSSInlineBoxContainer
Gets the descendant inline boxes. Boxes are ordered according to document tree ordering.

Specified by:
getInlineBoxes in interface CSSInlineBoxContainer
Returns:
an array with the descendant inline boxes. May include run-in boxes.

setOverflowsWidth

protected void setOverflowsWidth()

overflowsWidth

public boolean overflowsWidth()
Specified by:
overflowsWidth in interface CSSInlineBoxContainer

getContentWidth

public float getContentWidth()
Description copied from interface: CSSBoxContainer
Gets the width of the content, expressed in natural units.

Specified by:
getContentWidth in interface CSSBoxContainer
Returns:
the content width.

getMinimumWidth

public float getMinimumWidth()
Description copied from interface: CSSBoxContainer
Gets the minimum width required to avoid width overflowing (horizontal scroll bar).

Specified by:
getMinimumWidth in interface CSSBoxContainer
Returns:
the minimum width, expressed in natural units.

computeHeight

public float computeHeight(float width)
Description copied from interface: CSSInlineBoxContainer
Compute the height of the box, for the given width.

Specified by:
computeHeight in interface CSSInlineBoxContainer
Parameters:
width - the width.
Returns:
the estimated height.


Copyright © 2011 informatica.info. All Rights Reserved.