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

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

public class BlockContainer
extends Object
implements CSSBlockBoxContainer

Container of CSS block boxes.

Author:
Carlos Amengual (amengual at informatica.info)

Constructor Summary
BlockContainer()
           
BlockContainer(int size)
           
 
Method Summary
 void addAbsolutelyPositioned(AbsolutelyPositionedBox absolutelyPositioned)
           
 float computeAutoHeight()
          Compute the box height for 'auto'.
 List<CSSContainerBox> getAbsolutelyPositioned()
          Gets the descendant boxes that are absolutely positioned.
 float getContentWidth()
          Gets the width of the content, expressed in natural units.
 float getMinimumWidth()
          Gets the minimum width required to avoid width overflowing (horizontal scroll bar).
 List<CSSContainerBox> getStaticallyPositioned()
          Gets the descendant boxes that are to be formatted according to normal flow.
 List<CSSContainerBox> getStaticallyPositionedList()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BlockContainer

public BlockContainer()

BlockContainer

public BlockContainer(int size)
Method Detail

getStaticallyPositioned

public List<CSSContainerBox> getStaticallyPositioned()
Description copied from interface: CSSBlockBoxContainer
Gets the descendant boxes that are to be formatted according to normal flow. Boxes are ordered according to document tree ordering.

Specified by:
getStaticallyPositioned in interface CSSBlockBoxContainer
Returns:
an array with the descendant statically positioned boxes, or null if does not contain static boxes.

getStaticallyPositionedList

public List<CSSContainerBox> getStaticallyPositionedList()

getAbsolutelyPositioned

public List<CSSContainerBox> getAbsolutelyPositioned()
Description copied from interface: CSSBlockBoxContainer
Gets the descendant boxes that are absolutely positioned.

Specified by:
getAbsolutelyPositioned in interface CSSBlockBoxContainer
Returns:
an array with the absolutely positioned descendant boxes, or null if does not contain absolutely positioned boxes.

addAbsolutelyPositioned

public void addAbsolutelyPositioned(AbsolutelyPositionedBox absolutelyPositioned)

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.

computeAutoHeight

public float computeAutoHeight()
Description copied from interface: CSSBlockBoxContainer
Compute the box height for 'auto'.

Specified by:
computeAutoHeight in interface CSSBlockBoxContainer
Returns:
the box height, expressed in the device's natural unit.


Copyright © 2011 informatica.info. All Rights Reserved.