}
public PageFrame getPrintable(final Deck deck) {
this.deck = deck;
PageFrame page = new PageFrame(null, 0.8, 0.95);
FlowDownFrame header = new FlowDownFrame(page, 1, 0.10);
createHeader(header);
// separator between header and body
new FlowDownFrame(page, 1, 0.01);
PrintFrame body = new FlowDownFrame(page, 1, 0.86);
createBody(body);
// separator between body and footer
new FlowDownFrame(page, 1, 0.01);
PrintFrame footer = new FlowDownFrame(page, 1, 0.02);
createFooter(footer);
page.setAnnotator(new IAnnotator() {
public String getAnnotation() {
return deck.getName();
}
});
return page;