com.snowtide.pdf.layout
Interface BlockParent

All Known Subinterfaces:
Block, Table

public interface BlockParent

An interface to be implemented by any class that can contain an ordered set of Blocks.

Version:
©2004-2008 Snowtide Informatics Systems, Inc.

Method Summary
 void addChild(Block b)
           
 Block getChild(int idx)
          Returns the child and the given index.
 int getChildCnt()
          Returns the number of children held by this BlockParent.
 void removeAllChildren()
           
 Block removeChild(int idx)
          Removes and returns the child at the given index.
 void sortChildren(java.util.Comparator c)
           
 

Method Detail

getChildCnt

public int getChildCnt()
Returns the number of children held by this BlockParent.


getChild

public Block getChild(int idx)
Returns the child and the given index.


removeChild

public Block removeChild(int idx)
Removes and returns the child at the given index.

Throws:
java.lang.UnsupportedOperationException - - if the implementation is not mutable

addChild

public void addChild(Block b)
Throws:
java.lang.UnsupportedOperationException - - if the implementation is not mutable

sortChildren

public void sortChildren(java.util.Comparator c)
Throws:
java.lang.UnsupportedOperationException - - if the implementation is not mutable

removeAllChildren

public void removeAllChildren()