|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--org.writersforge.catalan.layout.AbstractLayoutEngine
| Constructor Summary | |
AbstractLayoutEngine()
|
|
| Method Summary | |
void |
acceptArea(LayoutArea area)
Adds the area to the layout queue. |
LayoutArea[] |
clearQueue()
Empties out the layout queue. |
boolean |
fitsInRegion(LayoutArea area)
Checks to see if the given area will fit anywhere in the current layout region. |
java.awt.Shape |
getFreeSpace()
Returns the free space in the current layout region. |
int |
getQueueSize()
Returns the number of areas currently in the layout queue. |
java.awt.Dimension |
guessSize(LayoutArea area)
Estimates the size that the area "wants" to be. |
java.util.List |
layoutAreas(java.util.List areas)
Attempts to lay out all the areas in the supplied List. |
void |
setCurrentRegion(java.awt.Shape region)
Assigns a clipping region for the current rendering context. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.writersforge.catalan.layout.LayoutEngine |
fitsInRegion, layoutRegion |
| Constructor Detail |
public AbstractLayoutEngine()
| Method Detail |
public void setCurrentRegion(java.awt.Shape region)
setCurrentRegion in interface LayoutEngineregion - the new clipping region
java.lang.IllegalStateException - if called with areas in the queuepublic int getQueueSize()
getQueueSize in interface LayoutEnginepublic LayoutArea[] clearQueue()
clearQueue in interface LayoutEnginepublic java.util.List layoutAreas(java.util.List areas)
layoutAreas in interface LayoutEngineareas - the list of areas to add to the current region
java.lang.IllegalStateException - if called without a valid current regionpublic void acceptArea(LayoutArea area)
acceptArea in interface LayoutEnginearea - the area to add to the layout queue
java.lang.IllegalStateException - if called without a valid current regionpublic java.awt.Shape getFreeSpace()
getFreeSpace in interface LayoutEnginejava.lang.IllegalStateException - if called without a valid current regionpublic java.awt.Dimension guessSize(LayoutArea area)
guessSize in interface LayoutEnginearea - the area to examine
public boolean fitsInRegion(LayoutArea area)
fitsInRegion in interface LayoutEnginearea - the area to check
java.lang.IllegalStateException - if called without a valid current region
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||