|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.umber.crucible.template.TemplateBase org.umber.crucible.template.AsciiTemplate
Simple template implementation for ASCII files.
Field Summary | |
static Dimension |
DEFAULT_PAGE_SIZE
|
Constructor Summary | |
AsciiTemplate()
|
|
AsciiTemplate(Dimension pageSize)
|
Method Summary | |
protected ILayoutArea |
formatContent(IContent content)
Converts the content object into a layout area. |
protected Page[] |
paginate(Page[] pages,
ILayoutArea[] areas,
Rectangle[] regions)
Renders content from ContentFlow to the given pages, creating new pages if necessary for overflows. |
Methods inherited from class org.umber.crucible.template.TemplateBase |
addContentFlows, addStaticContent, buildContentFlows, buildStaticContent, clearContentFlows, clearStaticContent, getDefaultPageSize, getMargin, layout, setMargin |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final Dimension DEFAULT_PAGE_SIZE
Constructor Detail |
public AsciiTemplate()
public AsciiTemplate(Dimension pageSize)
Method Detail |
protected ILayoutArea formatContent(IContent content)
TemplateBase
formatContent
in class TemplateBase
content
- content object
protected Page[] paginate(Page[] pages, ILayoutArea[] areas, Rectangle[] regions)
paginate
in class TemplateBase
pages
- pages to render flow toareas
- layout areas to render across pagesregions
- areas to render flow content to on each page
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |