Package com.snowtide.pdf.layout
Interface BlockParent
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description 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
replaceChild(int idx, Block b)
Replaces the child at the given index with the providedBlock
.void
sortChildren(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()
-
-