Package com.teamten.typeset
Interface ElementSink
- All Known Implementing Classes:
ColumnVerticalList
,ElementList
,HorizontalList
,VerticalList
public interface ElementSink
Receives Element objects one at a time.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addElement
(Element element) Add one Element to the receiver.static <T extends Element>
ElementSinkConvenience method for making a sink that writes to a list.
-
Method Details
-
addElement
Add one Element to the receiver. -
listSink
Convenience method for making a sink that writes to a list.- Parameters:
list
- the list to write elements to.elementClass
- the class of the elements being put into the list.
-