Package com.snowtide.pdf.layout
Interface BlockParent
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddChild(Block b)BlockgetChild(int idx)Returns the child and the given index.intgetChildCnt()Returns the number of children held by this BlockParent.voidremoveAllChildren()BlockremoveChild(int idx)Removes and returns the child at the given index.voidreplaceChild(int idx, Block b)Replaces the child at the given index with the providedBlock.voidsortChildren(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:
UnsupportedOperationException- if the implementation is not mutable
-
replaceChild
void replaceChild(int idx, Block b)Replaces the child at the given index with the providedBlock.
-
addChild
void addChild(Block b)
- Throws:
UnsupportedOperationException- if the implementation is not mutable
-
sortChildren
void sortChildren(Comparator c)
- Throws:
UnsupportedOperationException- if the implementation is not mutable
-
removeAllChildren
void removeAllChildren()
-
-