|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--org.writersforge.catalan.layout.AbstractLayoutEngine
|
+--org.writersforge.catalan.layout.AsciiLayout
Ascii art-style layout engine, a starting point for the TextRenderer
| Constructor Summary | |
AsciiLayout()
|
|
| Method Summary | |
protected LayoutArea |
addToPage(Page page,
LayoutArea area)
Attempts to add a single area to the Page. |
boolean |
fitsInRegion(LayoutArea area,
java.awt.Rectangle region,
java.util.List areasInRegion)
Checks to see if the area will fit in the given region. |
protected boolean |
fitsOnPage(Page page,
LayoutArea area)
Checks to see if the area will fit on the given Page. |
LayoutArea[] |
layoutPage(Page page,
LayoutArea[] areas)
Adds as many areas to the Page as will fit; returns the rest of them for the next Page. |
void |
layoutRegion(LayoutContext context,
java.awt.Rectangle region)
Attempts to lay out as many of the pending areas in the context as it can, into the provided region's bounding box. |
| Methods inherited from class org.writersforge.catalan.layout.AbstractLayoutEngine |
acceptArea, clearQueue, fitsInRegion, getFreeSpace, getQueueSize, guessSize, layoutAreas, setCurrentRegion |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public AsciiLayout()
| Method Detail |
public LayoutArea[] layoutPage(Page page,
LayoutArea[] areas)
page - the target Page to add LayoutAreas toareas - an array of areas to pack into the Page
protected boolean fitsOnPage(Page page,
LayoutArea area)
page - the Page to test the area againstarea - the area to test
protected LayoutArea addToPage(Page page,
LayoutArea area)
page - the target Pagearea - the LayoutArea to attempt to add to the Page
public void layoutRegion(LayoutContext context,
java.awt.Rectangle region)
context - the running context for this rendering passregion - the bounding area to render areas into
public boolean fitsInRegion(LayoutArea area,
java.awt.Rectangle region,
java.util.List areasInRegion)
area - the LayoutArea object to try to fitregion - the bounding area of the regionareasInRegion - optional list of areas already in the region
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||