|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.foray.layout.LayoutStrategy
public abstract class LayoutStrategy
Abstract base class for all Layout systems.
| Constructor Summary | |
|---|---|
LayoutStrategy(org.apache.commons.logging.Log logger)
Constructor. |
|
| Method Summary | |
|---|---|
void |
formatPageSequence(org.axsl.area.PageCollection pageCollection)
|
void |
formatStaticContent(org.axsl.area.PageArea pageArea)
Formats the static content of the current page. |
org.apache.commons.logging.Log |
getLogger()
Returns the logger. |
void |
handleLineBreakNonText(org.axsl.text.line.LineOutput lineOutput,
org.axsl.text.line.LineNonText nonText,
int sizeInline)
|
void |
handleLineBreakText(org.axsl.text.line.LineOutput lineOutput,
org.axsl.text.line.LineText text,
int startOffset,
int sizeInChars,
int sizeInline,
boolean hasDiscretionaryHyphen,
boolean hasFauxSmallCaps,
boolean isLastItemOnLine)
|
abstract void |
layoutStaticContent(org.axsl.fo.fo.PageSequence pageSequence,
org.axsl.fo.fo.Region region,
org.axsl.area.RegionRefArea area)
For a given region, layout the static content for that region. |
org.axsl.area.LineContentFactory |
popInlineStack()
Pops an item off of the inline stack. |
abstract void |
processPageSequence(org.axsl.area.PageCollection pageCollection)
Performs layout on one PageCollection. |
void |
pushInlineStack(org.axsl.area.LineContentFactory areaNode)
Pushes an item onto the inline stack, that is, the stack of areas that are currently inside the active LineArea. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LayoutStrategy(org.apache.commons.logging.Log logger)
logger - The logger.| Method Detail |
|---|
public void formatPageSequence(org.axsl.area.PageCollection pageCollection)
throws org.axsl.area.AreaTreeException
formatPageSequence in interface org.axsl.layout.Layoutorg.axsl.area.AreaTreeException
public abstract void processPageSequence(org.axsl.area.PageCollection pageCollection)
throws org.axsl.area.AreaTreeException
pageCollection - The (empty) page collection into which layout
should be placed. (The PageCollection has a reference to the FOTree
PageSequence that has the content to be laid out).
org.axsl.area.AreaTreeException - For errors during layout.
public abstract void layoutStaticContent(org.axsl.fo.fo.PageSequence pageSequence,
org.axsl.fo.fo.Region region,
org.axsl.area.RegionRefArea area)
throws org.axsl.area.AreaTreeException
pageSequence - The page sequence whose static content is being
processed.region - The page region whose static content is being laid out.area - The region area into which the static content should be
placed.
org.axsl.area.AreaTreeException - For errors during layout.
public void handleLineBreakText(org.axsl.text.line.LineOutput lineOutput,
org.axsl.text.line.LineText text,
int startOffset,
int sizeInChars,
int sizeInline,
boolean hasDiscretionaryHyphen,
boolean hasFauxSmallCaps,
boolean isLastItemOnLine)
throws org.axsl.text.TextException
handleLineBreakText in interface org.axsl.text.line.LineBreakHandlerorg.axsl.text.TextException
public void handleLineBreakNonText(org.axsl.text.line.LineOutput lineOutput,
org.axsl.text.line.LineNonText nonText,
int sizeInline)
throws org.axsl.text.TextException
handleLineBreakNonText in interface org.axsl.text.line.LineBreakHandlerorg.axsl.text.TextExceptionpublic org.apache.commons.logging.Log getLogger()
public void formatStaticContent(org.axsl.area.PageArea pageArea)
throws org.axsl.area.AreaTreeException
pageArea - The page area whose static content should be laid out.
org.axsl.area.AreaTreeException - For errors during layout.public void pushInlineStack(org.axsl.area.LineContentFactory areaNode)
areaNode - The AreaNode to be pushed onto the stack.public org.axsl.area.LineContentFactory popInlineStack()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||