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-2012 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

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


getChild

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


removeChild

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

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

addChild

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

sortChildren

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

removeAllChildren

void removeAllChildren()