[aXSL-commit] SF.net SVN: axsl: [555] trunk/axsl/axsl-area-w/src/java/org/axsl/areaW
An API for XSL-FO.
Status: Alpha
Brought to you by:
victormote
|
From: <vic...@us...> - 2006-05-09 01:00:00
|
Revision: 555 Author: victormote Date: 2006-05-08 09:59:17 -0700 (Mon, 08 May 2006) ViewCVS: http://svn.sourceforge.net/axsl/?rev=555&view=rev Log Message: ----------- Add needed methods. Modified Paths: -------------- trunk/axsl/axsl-area-w/src/java/org/axsl/areaW/Area.java trunk/axsl/axsl-area-w/src/java/org/axsl/areaW/PageCollection.java trunk/axsl/axsl-area-w/src/java/org/axsl/areaW/SpanRA.java Modified: trunk/axsl/axsl-area-w/src/java/org/axsl/areaW/Area.java =================================================================== --- trunk/axsl/axsl-area-w/src/java/org/axsl/areaW/Area.java 2006-05-08 16:41:38 UTC (rev 554) +++ trunk/axsl/axsl-area-w/src/java/org/axsl/areaW/Area.java 2006-05-08 16:59:17 UTC (rev 555) @@ -24,6 +24,7 @@ package org.axsl.areaW; +import org.axsl.foR.fo.Block; import org.axsl.foR.fo.TableBody; import org.axsl.foR.fo.TableFooter; import org.axsl.foR.fo.TableHeader; @@ -55,4 +56,12 @@ public TableFooterContainer makeTableFooterContainer( TableFooter tableFooter); + public NormalBlockArea makeNormalBlockArea(Block block); + + /** + * @return The amount of space, in millipoints, available in this Area for + * expansion in the progression direction. + */ + public int progressionDimensionAvailable(); + } Modified: trunk/axsl/axsl-area-w/src/java/org/axsl/areaW/PageCollection.java =================================================================== --- trunk/axsl/axsl-area-w/src/java/org/axsl/areaW/PageCollection.java 2006-05-08 16:41:38 UTC (rev 554) +++ trunk/axsl/axsl-area-w/src/java/org/axsl/areaW/PageCollection.java 2006-05-08 16:59:17 UTC (rev 555) @@ -20,6 +20,7 @@ package org.axsl.areaW; +import org.axsl.foR.FObj; import org.axsl.foR.fo.PageSequence; /** @@ -61,4 +62,17 @@ public int getPageCount() ; + /** + * Finds or creates the SpanRA instance in which nextFObj should start + * being laid out. + * @param lastFObj The last FObj that was laid out, null if nextFObj is the + * first one for this page-sequence. + * @param nextFObj The FObj for which we are trying to find the staring + * Area for layout. + * @return The ColumnRA instance into which nextFObj should be laid out. + * @throws AreaWException For errors creating the appropriate Areas. + */ + public SpanRA startingReferenceArea(FObj lastFObj, FObj nextFObj) + throws AreaWException ; + } Modified: trunk/axsl/axsl-area-w/src/java/org/axsl/areaW/SpanRA.java =================================================================== --- trunk/axsl/axsl-area-w/src/java/org/axsl/areaW/SpanRA.java 2006-05-08 16:41:38 UTC (rev 554) +++ trunk/axsl/axsl-area-w/src/java/org/axsl/areaW/SpanRA.java 2006-05-08 16:59:17 UTC (rev 555) @@ -20,6 +20,8 @@ package org.axsl.areaW; +import org.axsl.foR.FObj; + /** * Represents a span-reference-area. * The standard does not seem to tell us what if any FO generates a @@ -32,4 +34,11 @@ public void setCurrentColumn(int columnNumber) ; + /** + * Returns a NormalFlowRA to contain fo. + * @param fo The FObj instance whose to be contained. + * @return SpanRA The NormalFlowRA instance into which fo should be placed. + */ + public NormalFlowRA normalFlowForNextFO(FObj fo) ; + } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |