foray-commit Mailing List for FOray (Page 309)
Modular XSL-FO Implementation for Java.
Status: Alpha
Brought to you by:
victormote
You can subscribe to this list here.
| 2006 |
Jan
|
Feb
|
Mar
(139) |
Apr
(98) |
May
(250) |
Jun
(394) |
Jul
(84) |
Aug
(13) |
Sep
(420) |
Oct
(186) |
Nov
(1) |
Dec
(3) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2007 |
Jan
(108) |
Feb
(202) |
Mar
(291) |
Apr
(247) |
May
(374) |
Jun
(227) |
Jul
(231) |
Aug
(60) |
Sep
(31) |
Oct
(45) |
Nov
(18) |
Dec
|
| 2008 |
Jan
(38) |
Feb
(71) |
Mar
(142) |
Apr
|
May
(59) |
Jun
(6) |
Jul
(10) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2009 |
Jan
(12) |
Feb
(4) |
Mar
(88) |
Apr
(121) |
May
(17) |
Jun
(30) |
Jul
|
Aug
(5) |
Sep
|
Oct
(1) |
Nov
|
Dec
|
| 2010 |
Jan
(11) |
Feb
(76) |
Mar
(11) |
Apr
|
May
(11) |
Jun
|
Jul
|
Aug
(44) |
Sep
(14) |
Oct
(7) |
Nov
|
Dec
|
| 2011 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(9) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(10) |
Nov
|
Dec
|
| 2012 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(3) |
Jul
(4) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2016 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(168) |
| 2017 |
Jan
(77) |
Feb
(11) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2018 |
Jan
|
Feb
|
Mar
(1) |
Apr
(6) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2019 |
Jan
|
Feb
(88) |
Mar
(118) |
Apr
(1) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2020 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(6) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(141) |
| 2021 |
Jan
(170) |
Feb
(20) |
Mar
|
Apr
|
May
|
Jun
|
Jul
(1) |
Aug
|
Sep
|
Oct
(62) |
Nov
(189) |
Dec
(162) |
| 2022 |
Jan
(201) |
Feb
(118) |
Mar
(8) |
Apr
|
May
(2) |
Jun
(47) |
Jul
(19) |
Aug
(14) |
Sep
(3) |
Oct
|
Nov
(28) |
Dec
(235) |
| 2023 |
Jan
(112) |
Feb
(23) |
Mar
(2) |
Apr
(2) |
May
|
Jun
(1) |
Jul
|
Aug
(70) |
Sep
(92) |
Oct
(20) |
Nov
(1) |
Dec
(1) |
| 2024 |
Jan
|
Feb
|
Mar
(1) |
Apr
(1) |
May
(14) |
Jun
(11) |
Jul
(1) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2025 |
Jan
(10) |
Feb
(29) |
Mar
|
Apr
(162) |
May
(245) |
Jun
(83) |
Jul
|
Aug
(1) |
Sep
|
Oct
|
Nov
(4) |
Dec
(23) |
| 2026 |
Jan
(119) |
Feb
(335) |
Mar
(103) |
Apr
(43) |
May
(154) |
Jun
(107) |
Jul
(187) |
Aug
(4) |
Sep
|
Oct
|
Nov
|
Dec
|
|
From: <vic...@us...> - 2006-05-24 16:04:38
|
Revision: 7239 Author: victormote Date: 2006-05-24 09:04:28 -0700 (Wed, 24 May 2006) ViewCVS: http://svn.sourceforge.net/foray/?rev=7239&view=rev Log Message: ----------- Conform to axsl naming changes. Modified Paths: -------------- trunk/foray/foray-app/src/java/org/foray/app/FOrayTarget.java trunk/foray/foray-fotree/src/java/org/foray/fotree/FOTreeBuilder.java Modified: trunk/foray/foray-app/src/java/org/foray/app/FOrayTarget.java =================================================================== --- trunk/foray/foray-app/src/java/org/foray/app/FOrayTarget.java 2006-05-24 15:53:10 UTC (rev 7238) +++ trunk/foray/foray-app/src/java/org/foray/app/FOrayTarget.java 2006-05-24 16:04:28 UTC (rev 7239) @@ -150,7 +150,7 @@ document.registerTarget(this); // Register this FOrayTarget as a listener for FO Tree events. - document.getFOTreeBuilder().addFOTreeListener(this); + document.getFOTreeBuilder().registerListener(this); // Validate the OutputTarget. this.outputTarget = outputTarget; Modified: trunk/foray/foray-fotree/src/java/org/foray/fotree/FOTreeBuilder.java =================================================================== --- trunk/foray/foray-fotree/src/java/org/foray/fotree/FOTreeBuilder.java 2006-05-24 15:53:10 UTC (rev 7238) +++ trunk/foray/foray-fotree/src/java/org/foray/fotree/FOTreeBuilder.java 2006-05-24 16:04:28 UTC (rev 7239) @@ -267,7 +267,7 @@ * FOTreeEvent firings. * @param listener the Object which should be notified */ - public void addFOTreeListener (FOTreeListener listener) { + public void registerListener (FOTreeListener listener) { if (listener == null) { return; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
|
From: <vic...@us...> - 2006-05-24 15:53:18
|
Revision: 7238 Author: victormote Date: 2006-05-24 08:53:10 -0700 (Wed, 24 May 2006) ViewCVS: http://svn.sourceforge.net/foray/?rev=7238&view=rev Log Message: ----------- Remove no-longer-needed classes that are redundant with AreaTree information. Modified Paths: -------------- trunk/foray/foray-app/src/java/org/foray/app/FOrayTarget.java Removed Paths: ------------- trunk/foray/foray-app/src/java/org/foray/app/FormattingResults.java trunk/foray/foray-app/src/java/org/foray/app/PageSequenceResults.java Modified: trunk/foray/foray-app/src/java/org/foray/app/FOrayTarget.java =================================================================== --- trunk/foray/foray-app/src/java/org/foray/app/FOrayTarget.java 2006-05-24 15:47:46 UTC (rev 7237) +++ trunk/foray/foray-app/src/java/org/foray/app/FOrayTarget.java 2006-05-24 15:53:10 UTC (rev 7238) @@ -118,9 +118,6 @@ /** The renderer being used. */ private OutputTarget outputTarget; - /** The formatting results to be handed back to the caller. */ - private FormattingResults results = new FormattingResults(); - /** * The list of pages waiting to be renderered. In general, pages waiting * to be rendered are doing so because they have unresolved "ref-id" items @@ -200,10 +197,6 @@ startRenderer(); } - public FormattingResults getResults() { - return this.results; - } - public void startRenderer() throws FOrayException { pageCount = 0; @@ -290,8 +283,6 @@ } catch (AreaWException e) { throw new SAXException(e); } - this.results.haveFormattedPageSequence(pageSequence, - pageCollection); try { processQueue(false); } catch (AreaRException e1) { Deleted: trunk/foray/foray-app/src/java/org/foray/app/FormattingResults.java =================================================================== --- trunk/foray/foray-app/src/java/org/foray/app/FormattingResults.java 2006-05-24 15:47:46 UTC (rev 7237) +++ trunk/foray/foray-app/src/java/org/foray/app/FormattingResults.java 2006-05-24 15:53:10 UTC (rev 7238) @@ -1,94 +0,0 @@ -/* - * Copyright 2004 The FOray Project. - * http://www.foray.org - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - * This work is in part derived from the following work(s), used with the - * permission of the licensor: - * Apache FOP, licensed by the Apache Software Foundation - * - */ - -/* $Id$ */ - -package org.foray.app; - -import org.axsl.areaW.PageCollection; - -import org.axsl.foR.fo.PageSequence; - -import java.util.ArrayList; -import java.util.List; - -/** - * Class for reporting back formatting results to the calling application. - * - * @author Jeremias Maerki - */ -public class FormattingResults { - - private int pageCount = 0; - private List pageSequences = null; - - /** - * Constructor for the FormattingResults object - */ - public FormattingResults() { - } - - /** - * Gets the number of pages rendered - * - * @return The number of pages overall - */ - public int getPageCount() { - return this.pageCount; - } - - /** - * Gets the results for the individual page-sequences. - * - * @return A List with PageSequenceResults objects - */ - public List getPageSequences() { - return this.pageSequences; - } - - /** - * Resets this object - */ - public void reset() { - this.pageCount = 0; - if (this.pageSequences != null) { - this.pageSequences.clear(); - } - } - - /** - * Description of the Method - * - * @param pageSequence Description of Parameter - */ - public void haveFormattedPageSequence(PageSequence pageSequence, - PageCollection areaTree) { - this.pageCount += areaTree.getPageCount(); - if (this.pageSequences == null) { - this.pageSequences = new ArrayList(); - } - this.pageSequences.add( - new PageSequenceResults(pageSequence.traitId(), - areaTree.getPageCount())); - } -} - Deleted: trunk/foray/foray-app/src/java/org/foray/app/PageSequenceResults.java =================================================================== --- trunk/foray/foray-app/src/java/org/foray/app/PageSequenceResults.java 2006-05-24 15:47:46 UTC (rev 7237) +++ trunk/foray/foray-app/src/java/org/foray/app/PageSequenceResults.java 2006-05-24 15:53:10 UTC (rev 7238) @@ -1,67 +0,0 @@ -/* - * Copyright 2004 The FOray Project. - * http://www.foray.org - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - * This work is in part derived from the following work(s), used with the - * permission of the licensor: - * Apache FOP, licensed by the Apache Software Foundation - * - */ - -/* $Id$ */ - -package org.foray.app; - -/** - * Class for reporting back formatting results to the calling application. This - * particular class is used to report the results of a single page-sequence. - * - * @author Jeremias Maerki - */ -public class PageSequenceResults { - - private String id; - private int pageCount; - - /** - * Constructor for the PageSequenceResults object - * - * @param id ID of the page-sequence, if available - * @param pageCount The number of resulting pages - */ - public PageSequenceResults(String id, int pageCount) { - this.id = id; - this.pageCount = pageCount; - } - - /** - * Gets the ID of the page-sequence if one was specified. - * - * @return The ID - */ - public String getID() { - return this.id; - } - - /** - * Gets the number of pages that resulted by processing the page-sequence. - * - * @return The number of pages generated - */ - public int getPageCount() { - return this.pageCount; - } -} - This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
|
From: <vic...@us...> - 2006-05-24 15:47:51
|
Revision: 7237 Author: victormote Date: 2006-05-24 08:47:46 -0700 (Wed, 24 May 2006) ViewCVS: http://svn.sourceforge.net/foray/?rev=7237&view=rev Log Message: ----------- Remove unused method. Modified Paths: -------------- trunk/foray/foray-app/src/java/org/foray/app/FOrayDocument.java Modified: trunk/foray/foray-app/src/java/org/foray/app/FOrayDocument.java =================================================================== --- trunk/foray/foray-app/src/java/org/foray/app/FOrayDocument.java 2006-05-24 15:19:19 UTC (rev 7236) +++ trunk/foray/foray-app/src/java/org/foray/app/FOrayDocument.java 2006-05-24 15:47:46 UTC (rev 7237) @@ -172,19 +172,6 @@ } /** - * Returns the results of the last rendering process. Information includes - * the total number of pages generated and the number of pages per - * page-sequence. - */ - public FormattingResults getResults() { - try { - return currentTarget.getResults(); - } catch (NullPointerException e) { - return null; - } - } - - /** * Returns the tree builder (a SAX ContentHandler). * * Used in situations where SAX is used but not via a FOray-invoked This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
|
From: <vic...@us...> - 2006-05-24 15:19:34
|
Revision: 7236 Author: victormote Date: 2006-05-24 08:19:19 -0700 (Wed, 24 May 2006) ViewCVS: http://svn.sourceforge.net/foray/?rev=7236&view=rev Log Message: ----------- Conform to axsl name changes. Modified Paths: -------------- trunk/foray/foray-app/src/java/org/foray/app/CommandLineStarter.java trunk/foray/foray-app/src/java/org/foray/app/FOrayDocument.java trunk/foray/foray-app/src/java/org/foray/app/FOraySession.java trunk/foray/foray-fotree/src/java/org/foray/fotree/FOTreeBuilder.java trunk/foray/foray-fotree/src/java/org/foray/fotree/FOrayFOTreeServer.java Modified: trunk/foray/foray-app/src/java/org/foray/app/CommandLineStarter.java =================================================================== --- trunk/foray/foray-app/src/java/org/foray/app/CommandLineStarter.java 2006-05-09 12:47:10 UTC (rev 7235) +++ trunk/foray/foray-app/src/java/org/foray/app/CommandLineStarter.java 2006-05-24 15:19:19 UTC (rev 7236) @@ -29,7 +29,7 @@ import org.foray.output.OutputTarget; import org.foray.pioneer.PioneerLS; -import org.axsl.foR.FOTreeServer; +import org.axsl.foR.FOTreeFactory; import org.axsl.fontR.FontServer; import org.axsl.graphicR.GraphicServer; import org.axsl.text.TextServer; @@ -87,7 +87,7 @@ FontServer fontServer = null; TextServer textServer = null; GraphicServer graphicServer = null; - FOTreeServer foTreeServer = null; + FOTreeFactory foTreeServer = null; FOraySession session = new FOraySession(logger, sessionConfig, fontServer, textServer, graphicServer, foTreeServer); Modified: trunk/foray/foray-app/src/java/org/foray/app/FOrayDocument.java =================================================================== --- trunk/foray/foray-app/src/java/org/foray/app/FOrayDocument.java 2006-05-09 12:47:10 UTC (rev 7235) +++ trunk/foray/foray-app/src/java/org/foray/app/FOrayDocument.java 2006-05-24 15:19:19 UTC (rev 7236) @@ -97,7 +97,7 @@ private ArrayList targetList = new ArrayList(); /** The FO tree builder, which handles the SAX events. */ - private org.axsl.foR.FOTreeBuilder treeBuilder; + private org.axsl.foR.FOTree treeBuilder; private FOrayTarget currentTarget; @@ -117,7 +117,7 @@ private FOrayDocument(FOraySession session) { this.session = session; session.registerDocument(this); - treeBuilder = this.session.getFOTreeServer().makeTreeBuilder(); + treeBuilder = this.session.getFOTreeServer().makeFOTree(); } /** @@ -331,7 +331,7 @@ return session.getConfiguration(); } - public org.axsl.foR.FOTreeBuilder getFOTreeBuilder() { + public org.axsl.foR.FOTree getFOTreeBuilder() { return this.treeBuilder; } Modified: trunk/foray/foray-app/src/java/org/foray/app/FOraySession.java =================================================================== --- trunk/foray/foray-app/src/java/org/foray/app/FOraySession.java 2006-05-09 12:47:10 UTC (rev 7235) +++ trunk/foray/foray-app/src/java/org/foray/app/FOraySession.java 2006-05-24 15:19:19 UTC (rev 7236) @@ -30,7 +30,7 @@ import org.foray.fotree.FOrayFOTreeServer; import org.foray.graphic.FOrayGraphicServer; -import org.axsl.foR.FOTreeServer; +import org.axsl.foR.FOTreeFactory; import org.axsl.fontR.FontException; import org.axsl.fontR.FontServer; import org.axsl.graphicR.GraphicServer; @@ -82,7 +82,7 @@ private GraphicServer graphicServer; /** */ - private FOTreeServer foTreeServer; + private FOTreeFactory foTreeServer; /** A SessionConfig instance to be used for this session. */ private SessionConfig configuration; @@ -116,7 +116,7 @@ */ public FOraySession(Log logger, SessionConfig configuration, FontServer fontServer, TextServer textServer, - GraphicServer graphicServer, FOTreeServer foTreeServer) + GraphicServer graphicServer, FOTreeFactory foTreeServer) throws FOrayException { this.log = logger; if (this.log == null) { @@ -276,7 +276,7 @@ } } - public FOTreeServer getFOTreeServer() { + public FOTreeFactory getFOTreeServer() { return this.foTreeServer; } Modified: trunk/foray/foray-fotree/src/java/org/foray/fotree/FOTreeBuilder.java =================================================================== --- trunk/foray/foray-fotree/src/java/org/foray/fotree/FOTreeBuilder.java 2006-05-09 12:47:10 UTC (rev 7235) +++ trunk/foray/foray-fotree/src/java/org/foray/fotree/FOTreeBuilder.java 2006-05-24 15:19:19 UTC (rev 7236) @@ -52,7 +52,7 @@ * SAX Handler that builds the formatting object tree. */ public class FOTreeBuilder extends DefaultHandler - implements org.axsl.foR.FOTreeBuilder { + implements org.axsl.foR.FOTree { byte[] unsupportedObjectsFO; short[] unsupportedPropertiesFO; Modified: trunk/foray/foray-fotree/src/java/org/foray/fotree/FOrayFOTreeServer.java =================================================================== --- trunk/foray/foray-fotree/src/java/org/foray/fotree/FOrayFOTreeServer.java 2006-05-09 12:47:10 UTC (rev 7235) +++ trunk/foray/foray-fotree/src/java/org/foray/fotree/FOrayFOTreeServer.java 2006-05-24 15:19:19 UTC (rev 7236) @@ -31,7 +31,7 @@ import org.foray.fotree.svg.NamespaceSVG; import org.foray.fotree.xml.NamespaceXML; -import org.axsl.foR.FOTreeServer; +import org.axsl.foR.FOTreeFactory; import org.axsl.graphicR.GraphicServer; import org.axsl.text.TextServer; @@ -47,7 +47,7 @@ * FOTreeServer encapsulates the FOTree at a high level of abstraction for a * client application. */ -public class FOrayFOTreeServer implements FOTreeServer { +public class FOrayFOTreeServer implements FOTreeFactory { Log logger; GraphicServer graphicServer; @@ -199,7 +199,7 @@ /** * {@inheritDoc} */ - public org.axsl.foR.FOTreeBuilder makeTreeBuilder() { + public org.axsl.foR.FOTree makeFOTree() { FOTreeBuilder foTreeBuilder = new FOTreeBuilder(this, this.getLogger()); foTreeBuilder.setGraphicServer(this.graphicServer); foTreeBuilder.setTextServer(this.textServer); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
|
From: <vic...@us...> - 2006-05-09 12:47:19
|
Revision: 7235 Author: victormote Date: 2006-05-09 05:47:10 -0700 (Tue, 09 May 2006) ViewCVS: http://svn.sourceforge.net/foray/?rev=7235&view=rev Log Message: ----------- Update axsl jar file. Modified Paths: -------------- trunk/foray/lib/axsl-0.1a.jar Modified: trunk/foray/lib/axsl-0.1a.jar =================================================================== (Binary files differ) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
|
From: <vic...@us...> - 2006-05-09 12:33:17
|
Revision: 7234 Author: victormote Date: 2006-05-09 05:32:50 -0700 (Tue, 09 May 2006) ViewCVS: http://svn.sourceforge.net/foray/?rev=7234&view=rev Log Message: ----------- 1. Move some methods from OutputControl to OutputTarget setters. 2. Remove no-longer needed OutputControl interface. Modified Paths: -------------- trunk/foray/foray-app/src/java/org/foray/app/FOrayTarget.java trunk/foray/foray-output/src/java/org/foray/output/OutputTarget.java Removed Paths: ------------- trunk/foray/foray-output/src/java/org/foray/output/OutputControl.java Modified: trunk/foray/foray-app/src/java/org/foray/app/FOrayTarget.java =================================================================== --- trunk/foray/foray-app/src/java/org/foray/app/FOrayTarget.java 2006-05-09 12:22:50 UTC (rev 7233) +++ trunk/foray/foray-app/src/java/org/foray/app/FOrayTarget.java 2006-05-09 12:32:50 UTC (rev 7234) @@ -28,7 +28,6 @@ import org.foray.font.FOrayFontConsumer; import org.foray.font.FOrayFontServer; import org.foray.layout.LayoutStrategy; -import org.foray.output.OutputControl; import org.foray.output.OutputTarget; import org.foray.pioneer.PioneerLS; import org.foray.render.Renderer; @@ -64,8 +63,7 @@ FOTreeBuilder when a PageSequence is created, and AreaTree when a Page is formatted.<P> */ -public class FOrayTarget implements FOTreeListener, AreaTreeListener, - OutputControl { +public class FOrayTarget implements FOTreeListener, AreaTreeListener { private static final boolean MEM_PROFILE_WITH_GC = false; /** Render to PDF. OutputStream must be set. */ @@ -162,7 +160,6 @@ if (this.outputTarget == null) { throw new FOrayException("OutputTarget has not been set."); } - this.outputTarget.setOutputControl(this); // Validate the LayoutStrategy. If null, create a default one. this.layout = layout; @@ -194,8 +191,11 @@ this.outputTarget.setApplicationVersion(Application.getVersion()); this.outputTarget.setDeveloperURLShort( Application.getDeveloperURLShort()); + this.outputTarget.setStrokeSVGText(getConfiguration() + .optionStrokeSVGText()); + this.outputTarget.setLogger(this.getLogger()); + this.outputTarget.setFontConsumer(this.getFontConsumer()); - // Start the renderer. startRenderer(); } @@ -450,10 +450,6 @@ return this.outputTarget; } - public boolean strokeSVGText() { - return getConfiguration().optionStrokeSVGText(); - } - public SessionConfig getConfiguration() { return document.getConfiguration(); } Deleted: trunk/foray/foray-output/src/java/org/foray/output/OutputControl.java =================================================================== --- trunk/foray/foray-output/src/java/org/foray/output/OutputControl.java 2006-05-09 12:22:50 UTC (rev 7233) +++ trunk/foray/foray-output/src/java/org/foray/output/OutputControl.java 2006-05-09 12:32:50 UTC (rev 7234) @@ -1,49 +0,0 @@ -/* - * Copyright 2004 The FOray Project. - * http://www.foray.org - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - * This work is in part derived from the following work(s), used with the - * permission of the licensor: - * Apache FOP, licensed by the Apache Software Foundation - * - */ - -/* $Id$ */ - -package org.foray.output; - -import org.axsl.fontR.FontConsumer; - -import org.apache.commons.logging.Log; - -/** - * Interface for programs external to the Rendering process to give the - * Renderers environmental information. - */ -public interface OutputControl { - - /** - * @return The FontConsumer implementation which should be used by this - * renderer. - */ - public FontConsumer getFontConsumer() ; - - /** - * @return The logger that should be used to log messages by this - * renderer. - */ - public Log getLogger() ; - -} Modified: trunk/foray/foray-output/src/java/org/foray/output/OutputTarget.java =================================================================== --- trunk/foray/foray-output/src/java/org/foray/output/OutputTarget.java 2006-05-09 12:22:50 UTC (rev 7233) +++ trunk/foray/foray-output/src/java/org/foray/output/OutputTarget.java 2006-05-09 12:32:50 UTC (rev 7234) @@ -36,13 +36,14 @@ */ public abstract class OutputTarget { - protected OutputControl outputControl; OutputStream outputStream; public String applicationName; public String applicationNameShort; public String applicationVersion; public String developerURLShort; boolean strokeSVGText; + Log logger; + FontConsumer fontConsumer; protected OutputConfig options; @@ -53,25 +54,8 @@ this.options = outputConfig; } - /** - * @param outputControl The OutputControl instance which should be used - * to provide environmental information to this renderer. - */ - public void setOutputControl(OutputControl outputControl) { - this.outputControl = outputControl; - } - - /** - * Return the OutputControl implementation which is the conceptual "parent" - * of this renderer. - * @return The OutputControl instance that controls this renderer. - */ - public OutputControl getOutputControl() { - return this.outputControl; - } - public Log getLogger() { - return this.outputControl.getLogger(); + return this.logger; } /** @@ -79,7 +63,7 @@ * Renderer. */ public FontConsumer getFontConsumer() { - return outputControl.getFontConsumer(); + return this.fontConsumer; } /** @@ -197,4 +181,18 @@ return this.strokeSVGText; } + /** + * @param logger The logger to set. + */ + public void setLogger(Log logger) { + this.logger = logger; + } + + /** + * @param fontConsumer The fontConsumer to set. + */ + public void setFontConsumer(FontConsumer fontConsumer) { + this.fontConsumer = fontConsumer; + } + } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
|
From: <vic...@us...> - 2006-05-09 12:23:06
|
Revision: 7233 Author: victormote Date: 2006-05-09 05:22:50 -0700 (Tue, 09 May 2006) ViewCVS: http://svn.sourceforge.net/foray/?rev=7233&view=rev Log Message: ----------- Move some methods from OutputControl to OutputTarget setters. Modified Paths: -------------- trunk/foray/foray-output/src/java/org/foray/output/OutputControl.java trunk/foray/foray-output/src/java/org/foray/output/OutputTarget.java trunk/foray/foray-render/src/java/org/foray/render/pdf/PDFRenderer.java Modified: trunk/foray/foray-output/src/java/org/foray/output/OutputControl.java =================================================================== --- trunk/foray/foray-output/src/java/org/foray/output/OutputControl.java 2006-05-09 12:18:02 UTC (rev 7232) +++ trunk/foray/foray-output/src/java/org/foray/output/OutputControl.java 2006-05-09 12:22:50 UTC (rev 7233) @@ -46,10 +46,4 @@ */ public Log getLogger() ; - /** - * @return True if SVG text should be converted to strokes instead of - * rendered as characters of a Font. - */ - public boolean strokeSVGText() ; - } Modified: trunk/foray/foray-output/src/java/org/foray/output/OutputTarget.java =================================================================== --- trunk/foray/foray-output/src/java/org/foray/output/OutputTarget.java 2006-05-09 12:18:02 UTC (rev 7232) +++ trunk/foray/foray-output/src/java/org/foray/output/OutputTarget.java 2006-05-09 12:22:50 UTC (rev 7233) @@ -42,6 +42,8 @@ public String applicationNameShort; public String applicationVersion; public String developerURLShort; + boolean strokeSVGText; + protected OutputConfig options; /** @@ -183,4 +185,16 @@ this.developerURLShort = developerURLShort; } + public void setStrokeSVGText(boolean stroke) { + this.strokeSVGText = stroke; + } + + /** + * @return True if SVG text should be converted to strokes instead of + * rendered as characters of a Font. + */ + public boolean getStrokeSVGText() { + return this.strokeSVGText; + } + } Modified: trunk/foray/foray-render/src/java/org/foray/render/pdf/PDFRenderer.java =================================================================== --- trunk/foray/foray-render/src/java/org/foray/render/pdf/PDFRenderer.java 2006-05-09 12:18:02 UTC (rev 7232) +++ trunk/foray/foray-render/src/java/org/foray/render/pdf/PDFRenderer.java 2006-05-09 12:22:50 UTC (rev 7233) @@ -227,7 +227,7 @@ float letterSpacing = area.actualLetterSpacing() / 1000f; getContentStream().drawGraphic(pdfContentRectangle, pdfClipRectangle, image, font, fontSize, letterSpacing, - outputControl.strokeSVGText()); + getStrokeSVGText()); } /** @@ -253,7 +253,7 @@ float letterSpacing = area.actualLetterSpacing() / 1000f; getContentStream().drawSVGDocument(area.getSVGDocument(), contentRectangle, null, font, fontSize, letterSpacing, - outputControl.strokeSVGText()); + getStrokeSVGText()); } /** This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
|
From: <vic...@us...> - 2006-05-09 12:18:17
|
Revision: 7232 Author: victormote Date: 2006-05-09 05:18:02 -0700 (Tue, 09 May 2006) ViewCVS: http://svn.sourceforge.net/foray/?rev=7232&view=rev Log Message: ----------- Remove no-longer-needed methods. Modified Paths: -------------- trunk/foray/foray-app/src/java/org/foray/app/FOrayTarget.java trunk/foray/foray-output/src/java/org/foray/output/OutputControl.java Modified: trunk/foray/foray-app/src/java/org/foray/app/FOrayTarget.java =================================================================== --- trunk/foray/foray-app/src/java/org/foray/app/FOrayTarget.java 2006-05-09 12:08:05 UTC (rev 7231) +++ trunk/foray/foray-app/src/java/org/foray/app/FOrayTarget.java 2006-05-09 12:18:02 UTC (rev 7232) @@ -43,7 +43,6 @@ import org.axsl.foR.fo.PageSequence; import org.axsl.fontR.FontConsumer; import org.axsl.fontR.FontServer; -import org.axsl.graphicR.GraphicServer; import org.axsl.text.TextServer; import org.apache.commons.logging.Log; @@ -52,7 +51,6 @@ import java.io.IOException; import java.io.OutputStream; -import java.net.URL; import java.util.ArrayList; /** @@ -432,15 +430,6 @@ return false; } - /** - * Required by FOTreeControl interface. - * @return The base URL that should be used for finding external files, like - * graphical images, etc. - */ - public URL getBaseURL() { - return document.getBaseURL(); - } - public FontConsumer getFontConsumer() { return this.fontConsumer; } @@ -453,10 +442,6 @@ return document.getTextServer(); } - public GraphicServer getGraphicServer() { - return document.getGraphicServer(); - } - public OutputStream getOutputStream() { return this.outputStream; } Modified: trunk/foray/foray-output/src/java/org/foray/output/OutputControl.java =================================================================== --- trunk/foray/foray-output/src/java/org/foray/output/OutputControl.java 2006-05-09 12:08:05 UTC (rev 7231) +++ trunk/foray/foray-output/src/java/org/foray/output/OutputControl.java 2006-05-09 12:18:02 UTC (rev 7232) @@ -25,12 +25,9 @@ package org.foray.output; import org.axsl.fontR.FontConsumer; -import org.axsl.graphicR.GraphicServer; import org.apache.commons.logging.Log; -import java.net.URL; - /** * Interface for programs external to the Rendering process to give the * Renderers environmental information. @@ -38,26 +35,12 @@ public interface OutputControl { /** - * Returns the base URL that should be used for constructing paths to - * external resources. - * @return The base URL that should be used for constructing paths to - * external resources. - */ - public URL getBaseURL() ; - - /** * @return The FontConsumer implementation which should be used by this * renderer. */ public FontConsumer getFontConsumer() ; /** - * @return The GraphicServer implementation which should be used by this - * renderer. - */ - public GraphicServer getGraphicServer() ; - - /** * @return The logger that should be used to log messages by this * renderer. */ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
|
From: <vic...@us...> - 2006-05-09 12:08:43
|
Revision: 7231 Author: victormote Date: 2006-05-09 05:08:05 -0700 (Tue, 09 May 2006) ViewCVS: http://svn.sourceforge.net/foray/?rev=7231&view=rev Log Message: ----------- Move some methods from OutputControl to OutputTarget setters. Modified Paths: -------------- trunk/foray/foray-app/src/java/org/foray/app/FOrayTarget.java trunk/foray/foray-output/src/java/org/foray/output/OutputControl.java trunk/foray/foray-output/src/java/org/foray/output/OutputTarget.java trunk/foray/foray-render/src/java/org/foray/render/awt/viewer/PreviewDialog.java trunk/foray/foray-render/src/java/org/foray/render/awt/viewer/PreviewDialogAboutBox.java trunk/foray/foray-render/src/java/org/foray/render/pdf/PDFRenderer.java trunk/foray/foray-render/src/java/org/foray/render/ps/PSRenderer.java trunk/foray/foray-render/src/java/org/foray/render/xml/XMLRenderer.java Modified: trunk/foray/foray-app/src/java/org/foray/app/FOrayTarget.java =================================================================== --- trunk/foray/foray-app/src/java/org/foray/app/FOrayTarget.java 2006-05-09 11:51:21 UTC (rev 7230) +++ trunk/foray/foray-app/src/java/org/foray/app/FOrayTarget.java 2006-05-09 12:08:05 UTC (rev 7231) @@ -178,7 +178,6 @@ && outputStream == null) { throw new FOrayException("OutputStream is required."); } - this.outputTarget.setOutputStream(this.getOutputStream()); FontServer server = getFontServer(); if (server instanceof FOrayFontServer) { @@ -188,6 +187,17 @@ this.getOutputTarget().isUsingFreeStandingFonts()); } + /* Finish configuring the OutputTarget. */ + this.outputTarget.setOutputStream(this.getOutputStream()); + this.outputTarget.setApplicationName( + Application.getApplicationName()); + this.outputTarget.setApplicationNameShort( + Application.getApplicationNameShort()); + this.outputTarget.setApplicationVersion(Application.getVersion()); + this.outputTarget.setDeveloperURLShort( + Application.getDeveloperURLShort()); + + // Start the renderer. startRenderer(); } @@ -459,34 +469,6 @@ return getConfiguration().optionStrokeSVGText(); } - /** - * {@inheritDoc} - */ - public String getApplicationName() { - return Application.getApplicationName(); - } - - /** - * {@inheritDoc} - */ - public String getApplicationNameShort() { - return Application.getApplicationNameShort(); - } - - /** - * {@inheritDoc} - */ - public String getVersion() { - return Application.getVersion(); - } - - /** - * {@inheritDoc} - */ - public String getDeveloperURLShort() { - return Application.getDeveloperURLShort(); - } - public SessionConfig getConfiguration() { return document.getConfiguration(); } Modified: trunk/foray/foray-output/src/java/org/foray/output/OutputControl.java =================================================================== --- trunk/foray/foray-output/src/java/org/foray/output/OutputControl.java 2006-05-09 11:51:21 UTC (rev 7230) +++ trunk/foray/foray-output/src/java/org/foray/output/OutputControl.java 2006-05-09 12:08:05 UTC (rev 7231) @@ -69,30 +69,4 @@ */ public boolean strokeSVGText() ; - /** - * @return The name of the application that is creating the output. - */ - public String getApplicationName() ; - - /** - * @return The "short" name of the application that is creating the - * output. - * For example, if the name of the application is "XYZ Document Processor", - * the short name might be "XYZ". - */ - public String getApplicationNameShort() ; - - /** - * @return The current version of the application that is creating the - * output. - */ - public String getVersion() ; - - /** - * @return The shortened version of the URL to the home-page of the - * developer. For example, if the URL is "http://www.xyz.com", return - * "www.xyz.com". - */ - public String getDeveloperURLShort() ; - } Modified: trunk/foray/foray-output/src/java/org/foray/output/OutputTarget.java =================================================================== --- trunk/foray/foray-output/src/java/org/foray/output/OutputTarget.java 2006-05-09 11:51:21 UTC (rev 7230) +++ trunk/foray/foray-output/src/java/org/foray/output/OutputTarget.java 2006-05-09 12:08:05 UTC (rev 7231) @@ -38,7 +38,10 @@ protected OutputControl outputControl; OutputStream outputStream; - + public String applicationName; + public String applicationNameShort; + public String applicationVersion; + public String developerURLShort; protected OutputConfig options; /** @@ -118,4 +121,66 @@ return true; } + /** + * @return The name of the application that is creating the output. + */ + public String getApplicationName() { + return applicationName; + } + + /** + * @param applicationName The applicationName to set. + */ + public void setApplicationName(String applicationName) { + this.applicationName = applicationName; + } + + /** + * @return The "short" name of the application that is creating the + * output. + * For example, if the name of the application is "XYZ Document Processor", + * the short name might be "XYZ". + */ + public String getApplicationNameShort() { + return applicationNameShort; + } + + /** + * @param applicationNameShort The applicationNameShort to set. + */ + public void setApplicationNameShort(String applicationNameShort) { + this.applicationNameShort = applicationNameShort; + } + + /** + * @return The current version of the application that is creating the + * output. + */ + public String getApplicationVersion() { + return applicationVersion; + } + + /** + * @param applicationVersion The applicationVersion to set. + */ + public void setApplicationVersion(String applicationVersion) { + this.applicationVersion = applicationVersion; + } + + /** + * @return The shortened version of the URL to the home-page of the + * developer. For example, if the URL is "http://www.xyz.com", return + * "www.xyz.com". + */ + public String getDeveloperURLShort() { + return developerURLShort; + } + + /** + * @param developerURLShort The developerURLShort to set. + */ + public void setDeveloperURLShort(String developerURLShort) { + this.developerURLShort = developerURLShort; + } + } Modified: trunk/foray/foray-render/src/java/org/foray/render/awt/viewer/PreviewDialog.java =================================================================== --- trunk/foray/foray-render/src/java/org/foray/render/awt/viewer/PreviewDialog.java 2006-05-09 11:51:21 UTC (rev 7230) +++ trunk/foray/foray-render/src/java/org/foray/render/awt/viewer/PreviewDialog.java 2006-05-09 12:08:05 UTC (rev 7231) @@ -184,7 +184,7 @@ this.setSize(new Dimension(379, 476)); previewArea.setMinimumSize(new Dimension(50, 50)); - this.setTitle(renderer.getOutputControl().getApplicationNameShort() + this.setTitle(renderer.getApplicationNameShort() + ": AWT-" + res.getString("Preview")); scale.addItem("25"); Modified: trunk/foray/foray-render/src/java/org/foray/render/awt/viewer/PreviewDialogAboutBox.java =================================================================== --- trunk/foray/foray-render/src/java/org/foray/render/awt/viewer/PreviewDialogAboutBox.java 2006-05-09 11:51:21 UTC (rev 7230) +++ trunk/foray/foray-render/src/java/org/foray/render/awt/viewer/PreviewDialogAboutBox.java 2006-05-09 12:08:05 UTC (rev 7231) @@ -32,7 +32,7 @@ package org.foray.render.awt.viewer; -import org.foray.output.OutputControl; +import org.foray.render.Renderer; import java.awt.AWTEvent; import java.awt.BorderLayout; @@ -78,10 +78,10 @@ public PreviewDialogAboutBox(PreviewDialog parent) { super(parent); - OutputControl control = parent.getRenderer().getOutputControl(); - String product = control.getApplicationNameShort() + " AWT-Preview"; - String version = "Version: " + control.getVersion(); - String copyright = "See " + control.getDeveloperURLShort(); + Renderer renderer = parent.getRenderer(); + String product = renderer.getApplicationNameShort() + " AWT-Preview"; + String version = "Version: " + renderer.getApplicationVersion(); + String copyright = "See " + renderer.getDeveloperURLShort(); enableEvents(AWTEvent.WINDOW_EVENT_MASK); /* imageIcon = new ImageIcon(getClass().getResource("Hier der Modified: trunk/foray/foray-render/src/java/org/foray/render/pdf/PDFRenderer.java =================================================================== --- trunk/foray/foray-render/src/java/org/foray/render/pdf/PDFRenderer.java 2006-05-09 11:51:21 UTC (rev 7230) +++ trunk/foray/foray-render/src/java/org/foray/render/pdf/PDFRenderer.java 2006-05-09 12:08:05 UTC (rev 7231) @@ -134,9 +134,8 @@ getLogger().error("Unsupported PDF Version: " + pdfVersion); } } - this.pdfDoc.setProducer( - getOutputControl().getApplicationNameShort() + " " - + getOutputControl().getVersion()); + this.pdfDoc.setProducer(getApplicationNameShort() + " " + + getApplicationVersion()); Date now = new Date(); this.pdfDoc.setCreationDate(now); // setup Encryption Modified: trunk/foray/foray-render/src/java/org/foray/render/ps/PSRenderer.java =================================================================== --- trunk/foray/foray-render/src/java/org/foray/render/ps/PSRenderer.java 2006-05-09 11:51:21 UTC (rev 7230) +++ trunk/foray/foray-render/src/java/org/foray/render/ps/PSRenderer.java 2006-05-09 12:08:05 UTC (rev 7231) @@ -228,7 +228,7 @@ } protected void writeProcs() { - this.basicProcSet = getOutputControl().getApplicationNameShort() + this.basicProcSet = getApplicationNameShort() + "procs"; write("%%BeginResource: procset " + this.basicProcSet); write("%%Title: Utility procedures"); @@ -321,7 +321,7 @@ write(fontContents); } - this.fontProcSet = getOutputControl().getApplicationNameShort() + this.fontProcSet = getApplicationNameShort() + "Fonts"; write("%%BeginResource: procset " + this.fontProcSet); write("%%Title: Font setup (shortcuts) for this file"); @@ -1060,7 +1060,7 @@ this.pagecount = 0; this.out = new PSStream(this.getOutputStream()); write("%!PS-Adobe-3.0"); - write("%%Creator: " + getOutputControl().getVersion()); + write("%%Creator: " + getApplicationVersion()); write("%%Pages: (atend)"); write("%%DocumentProcessColors: Black"); write("%%DocumentSuppliedResources: procset " + this.fontProcSet); Modified: trunk/foray/foray-render/src/java/org/foray/render/xml/XMLRenderer.java =================================================================== --- trunk/foray/foray-render/src/java/org/foray/render/xml/XMLRenderer.java 2006-05-09 11:51:21 UTC (rev 7230) +++ trunk/foray/foray-render/src/java/org/foray/render/xml/XMLRenderer.java 2006-05-09 12:08:05 UTC (rev 7231) @@ -529,7 +529,7 @@ getLogger().debug("rendering areas to XML"); this.writer = new PrintWriter(this.getOutputStream()); this.writer.write("<?xml version=\"1.0\"?>\n<!-- produced by " - + this.getOutputControl().getVersion() + " -->\n"); + + getApplicationVersion() + " -->\n"); writeStartTag("<AreaTree>"); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
|
From: <vic...@us...> - 2006-05-09 11:51:40
|
Revision: 7230 Author: victormote Date: 2006-05-09 04:51:21 -0700 (Tue, 09 May 2006) ViewCVS: http://svn.sourceforge.net/foray/?rev=7230&view=rev Log Message: ----------- Move some methods from OutputControl to OutputTarget setters. Modified Paths: -------------- trunk/foray/foray-app/src/java/org/foray/app/FOrayTarget.java trunk/foray/foray-output/src/java/org/foray/output/OutputControl.java trunk/foray/foray-output/src/java/org/foray/output/OutputTarget.java Modified: trunk/foray/foray-app/src/java/org/foray/app/FOrayTarget.java =================================================================== --- trunk/foray/foray-app/src/java/org/foray/app/FOrayTarget.java 2006-05-08 23:56:26 UTC (rev 7229) +++ trunk/foray/foray-app/src/java/org/foray/app/FOrayTarget.java 2006-05-09 11:51:21 UTC (rev 7230) @@ -178,6 +178,7 @@ && outputStream == null) { throw new FOrayException("OutputStream is required."); } + this.outputTarget.setOutputStream(this.getOutputStream()); FontServer server = getFontServer(); if (server instanceof FOrayFontServer) { Modified: trunk/foray/foray-output/src/java/org/foray/output/OutputControl.java =================================================================== --- trunk/foray/foray-output/src/java/org/foray/output/OutputControl.java 2006-05-08 23:56:26 UTC (rev 7229) +++ trunk/foray/foray-output/src/java/org/foray/output/OutputControl.java 2006-05-09 11:51:21 UTC (rev 7230) @@ -29,7 +29,6 @@ import org.apache.commons.logging.Log; -import java.io.OutputStream; import java.net.URL; /** @@ -96,10 +95,4 @@ */ public String getDeveloperURLShort() ; - /** - * @return The OutputStream that should be written, or null if there is - * none. - */ - public OutputStream getOutputStream() ; - } Modified: trunk/foray/foray-output/src/java/org/foray/output/OutputTarget.java =================================================================== --- trunk/foray/foray-output/src/java/org/foray/output/OutputTarget.java 2006-05-08 23:56:26 UTC (rev 7229) +++ trunk/foray/foray-output/src/java/org/foray/output/OutputTarget.java 2006-05-09 11:51:21 UTC (rev 7230) @@ -37,6 +37,7 @@ public abstract class OutputTarget { protected OutputControl outputControl; + OutputStream outputStream; protected OutputConfig options; @@ -101,8 +102,12 @@ */ public abstract boolean isUsingSystemFonts(); + public void setOutputStream(OutputStream stream) { + this.outputStream = stream; + } + public OutputStream getOutputStream() { - return this.outputControl.getOutputStream(); + return this.outputStream; } /** This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
|
From: <vic...@us...> - 2006-05-09 01:26:27
|
Revision: 7192 Author: victormote Date: 2006-05-08 08:13:32 -0700 (Mon, 08 May 2006) ViewCVS: http://svn.sourceforge.net/foray/?rev=7192&view=rev Log Message: ----------- Implement new axsl interfaces. Modified Paths: -------------- trunk/foray/foray-areatree/src/java/org/foray/area/TableRA.java trunk/foray/foray-areatree/src/java/org/foray/area/TableRowContainer.java Modified: trunk/foray/foray-areatree/src/java/org/foray/area/TableRA.java =================================================================== --- trunk/foray/foray-areatree/src/java/org/foray/area/TableRA.java 2006-05-08 15:02:04 UTC (rev 7191) +++ trunk/foray/foray-areatree/src/java/org/foray/area/TableRA.java 2006-05-08 15:13:32 UTC (rev 7192) @@ -28,7 +28,8 @@ import org.axsl.foR.fo.Table; import org.axsl.foR.fo.TableColumn; -public class TableRA extends NormalBlockArea implements TableArea { +public class TableRA extends NormalBlockArea implements TableArea, + org.axsl.areaW.TableArea { private int[] resolvedColumnWidth = null; Modified: trunk/foray/foray-areatree/src/java/org/foray/area/TableRowContainer.java =================================================================== --- trunk/foray/foray-areatree/src/java/org/foray/area/TableRowContainer.java 2006-05-08 15:02:04 UTC (rev 7191) +++ trunk/foray/foray-areatree/src/java/org/foray/area/TableRowContainer.java 2006-05-08 15:13:32 UTC (rev 7192) @@ -33,7 +33,8 @@ * Note that fo:table-row does not really generate any areas. */ public class TableRowContainer extends ContainerRA - implements org.axsl.areaR.TableRowContainer { + implements org.axsl.areaR.TableRowContainer, + org.axsl.areaW.TableRowContainer { public TableRowContainer(TableRow generatedBy, Area parentArea) { super(generatedBy, parentArea); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
|
From: <vic...@us...> - 2006-05-09 01:26:00
|
Revision: 7209 Author: victormote Date: 2006-05-08 13:01:38 -0700 (Mon, 08 May 2006) ViewCVS: http://svn.sourceforge.net/foray/?rev=7209&view=rev Log Message: ----------- Conform to axsl changes. Modified Paths: -------------- trunk/foray/foray-areatree/src/java/org/foray/area/TableRA.java Modified: trunk/foray/foray-areatree/src/java/org/foray/area/TableRA.java =================================================================== --- trunk/foray/foray-areatree/src/java/org/foray/area/TableRA.java 2006-05-08 19:53:10 UTC (rev 7208) +++ trunk/foray/foray-areatree/src/java/org/foray/area/TableRA.java 2006-05-08 20:01:38 UTC (rev 7209) @@ -25,6 +25,7 @@ package org.foray.area; import org.axsl.areaR.TableArea; +import org.axsl.areaW.TableColumnArea; import org.axsl.foR.fo.Table; import org.axsl.foR.fo.TableColumn; @@ -108,4 +109,8 @@ this.resolvedColumnWidth[startingColumn - 1] = columnWidth; } + public TableColumnArea makeTableColumnArea(TableColumn tableColumn) { + return new TableColumnRA(tableColumn, this); + } + } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
|
From: <vic...@us...> - 2006-05-09 01:23:00
|
Revision: 7173 Author: victormote Date: 2006-05-07 11:13:51 -0700 (Sun, 07 May 2006) ViewCVS: http://svn.sourceforge.net/foray/?rev=7173&view=rev Log Message: ----------- Remove unused method. Modified Paths: -------------- trunk/foray/foray-layout/src/java/org/foray/layout/LayoutStrategy.java Modified: trunk/foray/foray-layout/src/java/org/foray/layout/LayoutStrategy.java =================================================================== --- trunk/foray/foray-layout/src/java/org/foray/layout/LayoutStrategy.java 2006-05-07 18:03:14 UTC (rev 7172) +++ trunk/foray/foray-layout/src/java/org/foray/layout/LayoutStrategy.java 2006-05-07 18:13:51 UTC (rev 7173) @@ -26,20 +26,19 @@ import org.foray.area.Area; import org.foray.area.AreaFlexible; -import org.axsl.areaW.AreaTree; import org.foray.area.BasicLinkArea; import org.foray.area.ExternalGraphicArea; -import org.foray.area.FOrayFOLinkage; import org.foray.area.ForeignObjectArea; import org.foray.area.InlineArea; import org.foray.area.LeaderArea; import org.foray.area.LineArea; -import org.axsl.areaW.PageCollection; import org.foray.area.PageNumberArea; import org.foray.area.PageNumberCitationArea; import org.foray.area.TextArea; +import org.axsl.areaW.AreaTree; import org.axsl.areaW.AreaWException; +import org.axsl.areaW.PageCollection; import org.axsl.areaW.RegionArea; import org.axsl.foR.FONode; import org.axsl.foR.FONodeProxy; @@ -105,22 +104,6 @@ processPageSequence(pageCollection); } - /** - * Convenience method. - * - * @param fobj The FONode instance for which an FObjProxy should be - * retrieved or manufactured. - * @return The FObjProxy instance to which fobj is attached. - */ - /* TODO: Remove this method. */ - public FOrayFOLinkage getFObjProxy(FONode fobj) { - return (FOrayFOLinkage) fobj.getResult(); - } - - public int qtyAreasGenerated(FObj fobj) { - return getFObjProxy(fobj).qtyAreasGenerated(); - } - public abstract void processPageSequence(PageCollection pageCollection) throws AreaWException; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
|
From: <vic...@us...> - 2006-05-09 01:20:43
|
Revision: 7180 Author: victormote Date: 2006-05-07 15:19:45 -0700 (Sun, 07 May 2006) ViewCVS: http://svn.sourceforge.net/foray/?rev=7180&view=rev Log Message: ----------- Remove all remaining AreaTree dependencies on layout. Modified Paths: -------------- trunk/foray/foray-app/src/java/org/foray/app/CommandLineStarter.java trunk/foray/foray-app/src/java/org/foray/app/FOrayTarget.java trunk/foray/foray-areatree/.classpath trunk/foray/foray-areatree/src/java/org/foray/area/AreaNode.java trunk/foray/foray-areatree/src/java/org/foray/area/AreaTree.java trunk/foray/foray-areatree/src/java/org/foray/area/PageCollection.java trunk/foray/foray-layout/src/java/org/foray/layout/LayoutStrategy.java Modified: trunk/foray/foray-app/src/java/org/foray/app/CommandLineStarter.java =================================================================== --- trunk/foray/foray-app/src/java/org/foray/app/CommandLineStarter.java 2006-05-07 22:08:49 UTC (rev 7179) +++ trunk/foray/foray-app/src/java/org/foray/app/CommandLineStarter.java 2006-05-07 22:19:45 UTC (rev 7180) @@ -24,7 +24,7 @@ package org.foray.app; -import org.axsl.areaW.LayoutStrategy; +import org.foray.layout.LayoutStrategy; import org.foray.output.OutputConfig; import org.foray.output.OutputTarget; import org.foray.pioneer.PioneerLS; Modified: trunk/foray/foray-app/src/java/org/foray/app/FOrayTarget.java =================================================================== --- trunk/foray/foray-app/src/java/org/foray/app/FOrayTarget.java 2006-05-07 22:08:49 UTC (rev 7179) +++ trunk/foray/foray-app/src/java/org/foray/app/FOrayTarget.java 2006-05-07 22:19:45 UTC (rev 7180) @@ -29,7 +29,7 @@ import org.foray.area.PageRA; import org.foray.font.FOrayFontConsumer; import org.foray.font.FOrayFontServer; -import org.axsl.areaW.LayoutStrategy; +import org.foray.layout.LayoutStrategy; import org.foray.output.OutputControl; import org.foray.output.OutputTarget; import org.foray.pioneer.PioneerLS; @@ -300,8 +300,7 @@ if (this.areaTree == null) { this.areaTree = new AreaTree(this.document.getFOTreeBuilder() .getRootFObj(), this, this.getFontConsumer(), - this.getTextServer(), this.getLogger(), - this.getLayoutStrategy()); + this.getTextServer(), this.getLogger()); } return this.areaTree; } Modified: trunk/foray/foray-areatree/.classpath =================================================================== --- trunk/foray/foray-areatree/.classpath 2006-05-07 22:08:49 UTC (rev 7179) +++ trunk/foray/foray-areatree/.classpath 2006-05-07 22:19:45 UTC (rev 7180) @@ -12,6 +12,10 @@ <classpathentry kind="src" path="/axslText"/> <classpathentry kind="var" path="FORAY_LIB_ROOT/batik.jar"/> <classpathentry kind="var" path="FORAY_LIB_ROOT/commons-logging.jar"/> - <classpathentry combineaccessrules="false" kind="src" path="/axslArea-W"/> + <classpathentry combineaccessrules="false" kind="src" path="/axslArea-W"> + <accessrules> + <accessrule kind="nonaccessible" pattern="**/Layout**"/> + </accessrules> + </classpathentry> <classpathentry kind="output" path="build/eclipse"/> </classpath> Modified: trunk/foray/foray-areatree/src/java/org/foray/area/AreaNode.java =================================================================== --- trunk/foray/foray-areatree/src/java/org/foray/area/AreaNode.java 2006-05-07 22:08:49 UTC (rev 7179) +++ trunk/foray/foray-areatree/src/java/org/foray/area/AreaNode.java 2006-05-07 22:19:45 UTC (rev 7180) @@ -27,7 +27,6 @@ import org.foray.common.OrderedTreeNode; import org.axsl.areaW.FOLinkage; -import org.axsl.areaW.LayoutStrategy; import org.axsl.common.Constants; import org.axsl.foR.FONode; @@ -444,10 +443,6 @@ return true; } - public LayoutStrategy getLayoutStrategy() { - return this.getAreaNodeParent().getLayoutStrategy(); - } - public FOLinkage getFOLinkage(FONode foNode) { FOrayFOLinkage linkage = (FOrayFOLinkage) foNode.getResult(); if (linkage == null) { Modified: trunk/foray/foray-areatree/src/java/org/foray/area/AreaTree.java =================================================================== --- trunk/foray/foray-areatree/src/java/org/foray/area/AreaTree.java 2006-05-07 22:08:49 UTC (rev 7179) +++ trunk/foray/foray-areatree/src/java/org/foray/area/AreaTree.java 2006-05-07 22:19:45 UTC (rev 7180) @@ -25,7 +25,6 @@ package org.foray.area; import org.axsl.areaW.Area; -import org.axsl.areaW.LayoutStrategy; import org.axsl.areaW.AreaWException; import org.axsl.foR.FObj; @@ -53,7 +52,6 @@ private FontConsumer fontConsumer; private TextServer textServer; private Log logger; - private LayoutStrategy layoutStrategy; private ArrayList documentMarkers = new ArrayList(); /** @@ -66,14 +64,12 @@ public ArrayList pageCollectionsProcessed = new ArrayList(); public AreaTree(Root root, AreaTreeControl control, - FontConsumer fontConsumer, TextServer textServer, Log logger, - LayoutStrategy layoutStrategy) { + FontConsumer fontConsumer, TextServer textServer, Log logger) { super(root, null); this.control = control; this.fontConsumer = fontConsumer; this.textServer = textServer; this.logger = logger; - this.layoutStrategy = layoutStrategy; /* * These registration steps must take place after the AreaTreeControl * has been stored. @@ -113,14 +109,6 @@ return this.logger; } - /** - * Overrides method in AreaNode, because this knows how to return the - * LayoutStrategy directly. - */ - public LayoutStrategy getLayoutStrategy() { - return this.layoutStrategy; - } - public byte getAreaType() { return AreaNode.AREATYPE_AREA_TREE; } Modified: trunk/foray/foray-areatree/src/java/org/foray/area/PageCollection.java =================================================================== --- trunk/foray/foray-areatree/src/java/org/foray/area/PageCollection.java 2006-05-07 22:08:49 UTC (rev 7179) +++ trunk/foray/foray-areatree/src/java/org/foray/area/PageCollection.java 2006-05-07 22:19:45 UTC (rev 7180) @@ -25,7 +25,6 @@ package org.foray.area; import org.axsl.areaW.AreaWException; -import org.axsl.areaW.LayoutStrategy; import org.axsl.areaW.PageArea; import org.axsl.common.Constants; import org.axsl.foR.FOTreeException; @@ -303,17 +302,6 @@ getNextPage(false, false, true); } - public void releasePages(LayoutStrategy layout) throws AreaWException { - for (int i = 0; i < getChildren().size(); i++) { - Object object = getChildren().get(i); - if (object instanceof PageRA) { - PageRA page = (PageRA) object; - layout.formatStaticContent(page); - page.layoutComplete(); - } - } - } - public byte getAreaType() { return AreaNode.AREATYPE_PAGE_COLLECTION; } Modified: trunk/foray/foray-layout/src/java/org/foray/layout/LayoutStrategy.java =================================================================== --- trunk/foray/foray-layout/src/java/org/foray/layout/LayoutStrategy.java 2006-05-07 22:08:49 UTC (rev 7179) +++ trunk/foray/foray-layout/src/java/org/foray/layout/LayoutStrategy.java 2006-05-07 22:19:45 UTC (rev 7180) @@ -52,8 +52,7 @@ /** * Abstract base class for all Layout systems. */ -public abstract class LayoutStrategy implements LineBreakHandler, - org.axsl.areaW.LayoutStrategy { +public abstract class LayoutStrategy implements LineBreakHandler { Log logger; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
|
From: <vic...@us...> - 2006-05-09 01:15:36
|
Revision: 7153 Author: victormote Date: 2006-05-06 15:30:41 -0700 (Sat, 06 May 2006) ViewCVS: http://svn.sourceforge.net/foray/?rev=7153&view=rev Log Message: ----------- Rename class for clarity. Modified Paths: -------------- trunk/foray/foray-areatree/src/java/org/foray/area/AreaNode.java trunk/foray/foray-areatree/src/java/org/foray/area/AreaTree.java trunk/foray/foray-areatree/src/java/org/foray/area/LayoutStrategy.java trunk/foray/foray-areatree/src/java/org/foray/area/PageRA.java trunk/foray/foray-pioneer/src/java/org/foray/pioneer/FONodePL.java Added Paths: ----------- trunk/foray/foray-areatree/src/java/org/foray/area/FOrayFOLinkage.java Removed Paths: ------------- trunk/foray/foray-areatree/src/java/org/foray/area/FOrayFONodeProxy.java Modified: trunk/foray/foray-areatree/src/java/org/foray/area/AreaNode.java =================================================================== --- trunk/foray/foray-areatree/src/java/org/foray/area/AreaNode.java 2006-05-06 22:25:18 UTC (rev 7152) +++ trunk/foray/foray-areatree/src/java/org/foray/area/AreaNode.java 2006-05-06 22:30:41 UTC (rev 7153) @@ -87,7 +87,7 @@ /* * The "generated-by" trait, as defined in Section 6.1.1. */ - protected FOrayFONodeProxy generatedBy; + protected FOrayFOLinkage generatedBy; /** * Constructor. @@ -129,13 +129,13 @@ this.children.remove(areaNode); } - protected FOrayFONodeProxy getFObjProxy(FONode fobj) { + protected FOrayFOLinkage getFObjProxy(FONode fobj) { if (fobj == null) { return null; } - FOrayFONodeProxy linkage = (FOrayFONodeProxy) fobj.getResult(); + FOrayFOLinkage linkage = (FOrayFOLinkage) fobj.getResult(); if (linkage == null) { - linkage = new FOrayFONodeProxy(fobj); + linkage = new FOrayFOLinkage(fobj); fobj.setResult(linkage); } return linkage; Modified: trunk/foray/foray-areatree/src/java/org/foray/area/AreaTree.java =================================================================== --- trunk/foray/foray-areatree/src/java/org/foray/area/AreaTree.java 2006-05-06 22:25:18 UTC (rev 7152) +++ trunk/foray/foray-areatree/src/java/org/foray/area/AreaTree.java 2006-05-06 22:30:41 UTC (rev 7153) @@ -191,7 +191,7 @@ */ public Area firstNormalAreaReturned(String id) { FObj fobj = retrieveId(id); - FOrayFONodeProxy proxy = getFObjProxy(fobj); + FOrayFOLinkage proxy = getFObjProxy(fobj); return (Area) proxy.firstNormalAreaReturned(); } Copied: trunk/foray/foray-areatree/src/java/org/foray/area/FOrayFOLinkage.java (from rev 7152, trunk/foray/foray-areatree/src/java/org/foray/area/FOrayFONodeProxy.java) =================================================================== --- trunk/foray/foray-areatree/src/java/org/foray/area/FOrayFOLinkage.java (rev 0) +++ trunk/foray/foray-areatree/src/java/org/foray/area/FOrayFOLinkage.java 2006-05-06 22:30:41 UTC (rev 7153) @@ -0,0 +1,198 @@ +/* + * Copyright 2004 The FOray Project. + * http://www.foray.org + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + * This work is in part derived from the following work(s), used with the + * permission of the licensor: + * Apache FOP, licensed by the Apache Software Foundation + * + */ + +/* $Id$ */ + +package org.foray.area; + +import org.axsl.areaW.Area; +import org.axsl.areaW.AreaNode; +import org.axsl.areaW.FOLinkage; +import org.axsl.foR.FONode; + +import java.util.ArrayList; + +/** + * <p>An implementation of {@link org.axsl.foR.FONodeProxy} suitable for use + * with FOray.</p> + */ +public class FOrayFOLinkage implements FOLinkage { + + /** The FONode which generated the Areas in {@link #generatedAreas}. */ + private FONode realFONode; + + /** + * The ordered list of Area instances generated by {@link #realFONode}. + * Index 0 "is-first" and Index size() - 1 "is-last". + * This is currently set up to only store the root node of any subtree that + * was generated by {@link #realFONode}. + */ + private ArrayList generatedAreas = new ArrayList(); + + public FOrayFOLinkage(FONode realFObj) { + this.realFONode = realFObj; + } + + public FONode getFONode() { + return this.realFONode; + } + + public void registerGeneratedArea(AreaNode areaNode) { + AreaNode parent = areaNode.getWritableParent(); + if (parent != null) { + /* + * If the parent was generated by the same FObj, then we shouldn't + * register this one also. + */ + if (areaNode.getGeneratedBy() == parent.getGeneratedBy()) { + return; + } + } + if (generatedAreas == null) { + generatedAreas = new ArrayList(); + } + generatedAreas.add(areaNode); + } + + public void unregisterGeneratedArea(AreaNode areaNode) { + generatedAreas.remove(areaNode); + } + + public AreaNode getFirstGeneratedBy() { + if (generatedAreas == null || generatedAreas.size() < 1) { + return null; + } + return (AreaNode) generatedAreas.get(0); + } + + public AreaNode getPreviousGeneratedBy(AreaNode area) { + if (generatedAreas == null) { + return null; + } + int index = generatedAreas.indexOf(area); + if (index > 0) { + return (AreaNode) generatedAreas.get(index - 1); + } + return null; + } + + public AreaNode getNextGeneratedBy(AreaNode area) { + if (generatedAreas == null) { + return null; + } + int index = generatedAreas.indexOf(area); + if (index > 0 && index < generatedAreas.size() - 1) { + return (AreaNode) generatedAreas.get(index + 1); + } + return null; + } + + /** + * @param area An Area instance. + * @return True iff area is the first Area generated by this. + */ + public boolean isFirstGeneratedBy(AreaNode area) { + if (generatedAreas.indexOf(area) == 0) { + return true; + } + return false; + } + + /** + * @param area An Area instance. + * @return True iff area is the first Area generated by this. + */ + public boolean isLastGeneratedBy(AreaNode area) { + if (generatedAreas.indexOf(area) == (generatedAreas.size() - 1)) { + return true; + } + return false; + } + + /** + * @return The current count of areas that have been generated by the FObj. + */ + public int qtyAreasGenerated() { + return this.generatedAreas.size(); + } + + /** + * @return The last AreaNode generated by the parent FObj. + */ + public AreaNode getLastGeneratedBy() { + if (generatedAreas == null || generatedAreas.size() < 1) { + return null; + } + return (AreaNode) generatedAreas.get(generatedAreas.size() - 1); + } + + /** + * @return The last Area generated by the parent FObj. + */ + public Area getLastAreaGeneratedBy() { + if (generatedAreas == null || generatedAreas.size() < 1) { + return null; + } + for (int i = generatedAreas.size() - 1; i >= 0; i--) { + Object object = generatedAreas.get(i); + if (object instanceof Area) { + return (Area) object; + } + } + return null; + } + + public Area firstNormalAreaReturned() { + /* + * TODO: This is not right, but will do for now. It is not considering + * areas that are returned by the FO but not generated by it. + */ + if (generatedAreas == null) { + return null; + } + for (int i = 0; i < generatedAreas.size(); i ++) { + Object object = generatedAreas.get(i); + if (object instanceof Area) { + return (Area) object; + } + } + return null; + } + + public Area lastNormalAreaReturned() { + /* + * TODO: This is not right, but will do for now. It is not considering + * areas that are returned by the FO but not generated by it. + */ + if (generatedAreas == null) { + return null; + } + for (int i = generatedAreas.size() - 1; i >= 0; i --) { + Object object = generatedAreas.get(i); + if (object instanceof Area) { + return (Area) object; + } + } + return null; + } + +} Deleted: trunk/foray/foray-areatree/src/java/org/foray/area/FOrayFONodeProxy.java =================================================================== --- trunk/foray/foray-areatree/src/java/org/foray/area/FOrayFONodeProxy.java 2006-05-06 22:25:18 UTC (rev 7152) +++ trunk/foray/foray-areatree/src/java/org/foray/area/FOrayFONodeProxy.java 2006-05-06 22:30:41 UTC (rev 7153) @@ -1,198 +0,0 @@ -/* - * Copyright 2004 The FOray Project. - * http://www.foray.org - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - * This work is in part derived from the following work(s), used with the - * permission of the licensor: - * Apache FOP, licensed by the Apache Software Foundation - * - */ - -/* $Id$ */ - -package org.foray.area; - -import org.axsl.areaW.Area; -import org.axsl.areaW.AreaNode; -import org.axsl.areaW.FOLinkage; -import org.axsl.foR.FONode; - -import java.util.ArrayList; - -/** - * <p>An implementation of {@link org.axsl.foR.FONodeProxy} suitable for use - * with FOray.</p> - */ -public class FOrayFONodeProxy implements FOLinkage { - - /** The FONode which generated the Areas in {@link #generatedAreas}. */ - private FONode realFONode; - - /** - * The ordered list of Area instances generated by {@link #realFONode}. - * Index 0 "is-first" and Index size() - 1 "is-last". - * This is currently set up to only store the root node of any subtree that - * was generated by {@link #realFONode}. - */ - private ArrayList generatedAreas = new ArrayList(); - - public FOrayFONodeProxy(FONode realFObj) { - this.realFONode = realFObj; - } - - public FONode getFONode() { - return this.realFONode; - } - - public void registerGeneratedArea(AreaNode areaNode) { - AreaNode parent = areaNode.getWritableParent(); - if (parent != null) { - /* - * If the parent was generated by the same FObj, then we shouldn't - * register this one also. - */ - if (areaNode.getGeneratedBy() == parent.getGeneratedBy()) { - return; - } - } - if (generatedAreas == null) { - generatedAreas = new ArrayList(); - } - generatedAreas.add(areaNode); - } - - public void unregisterGeneratedArea(AreaNode areaNode) { - generatedAreas.remove(areaNode); - } - - public AreaNode getFirstGeneratedBy() { - if (generatedAreas == null || generatedAreas.size() < 1) { - return null; - } - return (AreaNode) generatedAreas.get(0); - } - - public AreaNode getPreviousGeneratedBy(AreaNode area) { - if (generatedAreas == null) { - return null; - } - int index = generatedAreas.indexOf(area); - if (index > 0) { - return (AreaNode) generatedAreas.get(index - 1); - } - return null; - } - - public AreaNode getNextGeneratedBy(AreaNode area) { - if (generatedAreas == null) { - return null; - } - int index = generatedAreas.indexOf(area); - if (index > 0 && index < generatedAreas.size() - 1) { - return (AreaNode) generatedAreas.get(index + 1); - } - return null; - } - - /** - * @param area An Area instance. - * @return True iff area is the first Area generated by this. - */ - public boolean isFirstGeneratedBy(AreaNode area) { - if (generatedAreas.indexOf(area) == 0) { - return true; - } - return false; - } - - /** - * @param area An Area instance. - * @return True iff area is the first Area generated by this. - */ - public boolean isLastGeneratedBy(AreaNode area) { - if (generatedAreas.indexOf(area) == (generatedAreas.size() - 1)) { - return true; - } - return false; - } - - /** - * @return The current count of areas that have been generated by the FObj. - */ - public int qtyAreasGenerated() { - return this.generatedAreas.size(); - } - - /** - * @return The last AreaNode generated by the parent FObj. - */ - public AreaNode getLastGeneratedBy() { - if (generatedAreas == null || generatedAreas.size() < 1) { - return null; - } - return (AreaNode) generatedAreas.get(generatedAreas.size() - 1); - } - - /** - * @return The last Area generated by the parent FObj. - */ - public Area getLastAreaGeneratedBy() { - if (generatedAreas == null || generatedAreas.size() < 1) { - return null; - } - for (int i = generatedAreas.size() - 1; i >= 0; i--) { - Object object = generatedAreas.get(i); - if (object instanceof Area) { - return (Area) object; - } - } - return null; - } - - public Area firstNormalAreaReturned() { - /* - * TODO: This is not right, but will do for now. It is not considering - * areas that are returned by the FO but not generated by it. - */ - if (generatedAreas == null) { - return null; - } - for (int i = 0; i < generatedAreas.size(); i ++) { - Object object = generatedAreas.get(i); - if (object instanceof Area) { - return (Area) object; - } - } - return null; - } - - public Area lastNormalAreaReturned() { - /* - * TODO: This is not right, but will do for now. It is not considering - * areas that are returned by the FO but not generated by it. - */ - if (generatedAreas == null) { - return null; - } - for (int i = generatedAreas.size() - 1; i >= 0; i --) { - Object object = generatedAreas.get(i); - if (object instanceof Area) { - return (Area) object; - } - } - return null; - } - -} Modified: trunk/foray/foray-areatree/src/java/org/foray/area/LayoutStrategy.java =================================================================== --- trunk/foray/foray-areatree/src/java/org/foray/area/LayoutStrategy.java 2006-05-06 22:25:18 UTC (rev 7152) +++ trunk/foray/foray-areatree/src/java/org/foray/area/LayoutStrategy.java 2006-05-06 22:30:41 UTC (rev 7153) @@ -105,7 +105,7 @@ * retrieved or manufactured. * @return The FObjProxy instance to which fobj is attached. */ - public FOrayFONodeProxy getFObjProxy(FONode fobj) { + public FOrayFOLinkage getFObjProxy(FONode fobj) { return areaTree.getFObjProxy(fobj); } Modified: trunk/foray/foray-areatree/src/java/org/foray/area/PageRA.java =================================================================== --- trunk/foray/foray-areatree/src/java/org/foray/area/PageRA.java 2006-05-06 22:25:18 UTC (rev 7152) +++ trunk/foray/foray-areatree/src/java/org/foray/area/PageRA.java 2006-05-06 22:30:41 UTC (rev 7153) @@ -541,7 +541,7 @@ */ private boolean startsHere(Marker marker) { FObj parent = marker.parentFO(); - FOrayFONodeProxy proxy = getFObjProxy(parent); + FOrayFOLinkage proxy = getFObjProxy(parent); Area firstArea = (Area) proxy.firstNormalAreaReturned(); if (firstArea == null) { return false; @@ -558,7 +558,7 @@ */ private boolean endsHere(Marker marker) { FObj parent = marker.parentFO(); - FOrayFONodeProxy proxy = getFObjProxy(parent); + FOrayFOLinkage proxy = getFObjProxy(parent); Area lastArea = (Area) proxy.lastNormalAreaReturned(); if (lastArea == null) { return false; Modified: trunk/foray/foray-pioneer/src/java/org/foray/pioneer/FONodePL.java =================================================================== --- trunk/foray/foray-pioneer/src/java/org/foray/pioneer/FONodePL.java 2006-05-06 22:25:18 UTC (rev 7152) +++ trunk/foray/foray-pioneer/src/java/org/foray/pioneer/FONodePL.java 2006-05-06 22:30:41 UTC (rev 7153) @@ -25,7 +25,7 @@ package org.foray.pioneer; import org.foray.area.Area; -import org.foray.area.FOrayFONodeProxy; +import org.foray.area.FOrayFOLinkage; import org.foray.area.LineArea; import org.foray.area.NormalBlockArea; import org.foray.common.FOrayException; @@ -129,8 +129,8 @@ return proxy; } - protected FOrayFONodeProxy getFONodeResult(FONode node) { - return (FOrayFONodeProxy) node.getResult(); + protected FOrayFOLinkage getFONodeResult(FONode node) { + return (FOrayFOLinkage) node.getResult(); } public abstract int layout(Area area) throws FOrayException; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
|
From: <vic...@us...> - 2006-05-09 01:15:14
|
Revision: 7168 Author: victormote Date: 2006-05-07 09:24:46 -0700 (Sun, 07 May 2006) ViewCVS: http://svn.sourceforge.net/foray/?rev=7168&view=rev Log Message: ----------- Remove no-longer-needed LayoutControl interface. Modified Paths: -------------- trunk/foray/foray-app/src/java/org/foray/app/FOrayTarget.java trunk/foray/foray-areatree/src/java/org/foray/area/LayoutStrategy.java Removed Paths: ------------- trunk/foray/foray-areatree/src/java/org/foray/area/LayoutControl.java Modified: trunk/foray/foray-app/src/java/org/foray/app/FOrayTarget.java =================================================================== --- trunk/foray/foray-app/src/java/org/foray/app/FOrayTarget.java 2006-05-07 16:21:14 UTC (rev 7167) +++ trunk/foray/foray-app/src/java/org/foray/app/FOrayTarget.java 2006-05-07 16:24:46 UTC (rev 7168) @@ -26,7 +26,6 @@ import org.foray.area.AreaTree; import org.foray.area.AreaTreeControl; -import org.foray.area.LayoutControl; import org.foray.area.LayoutStrategy; import org.foray.area.PageCollection; import org.foray.area.PageRA; @@ -69,7 +68,7 @@ and AreaTree when a Page is formatted.<P> */ public class FOrayTarget implements FOTreeListener, - AreaTreeControl, LayoutControl, OutputControl { + AreaTreeControl, OutputControl { private static final boolean MEM_PROFILE_WITH_GC = false; /** Render to PDF. OutputStream must be set. */ @@ -173,7 +172,6 @@ if (this.layout == null) { this.layout = new PioneerLS(this.getLogger()); } - this.layout.setLayoutControl(this); // Validate the OutputStream. this.outputStream = outputStream; Deleted: trunk/foray/foray-areatree/src/java/org/foray/area/LayoutControl.java =================================================================== --- trunk/foray/foray-areatree/src/java/org/foray/area/LayoutControl.java 2006-05-07 16:21:14 UTC (rev 7167) +++ trunk/foray/foray-areatree/src/java/org/foray/area/LayoutControl.java 2006-05-07 16:24:46 UTC (rev 7168) @@ -1,37 +0,0 @@ -/* - * Copyright 2004 The FOray Project. - * http://www.foray.org - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - * This work is in part derived from the following work(s), used with the - * permission of the licensor: - * Apache FOP, licensed by the Apache Software Foundation - * - */ - -/* $Id$ */ - -package org.foray.area; - -import org.axsl.graphicR.GraphicServer; - -/** - * This interface allows the client application to pass information about the - * environment to the layout engine. - */ -public interface LayoutControl { - - public GraphicServer getGraphicServer(); - -} Modified: trunk/foray/foray-areatree/src/java/org/foray/area/LayoutStrategy.java =================================================================== --- trunk/foray/foray-areatree/src/java/org/foray/area/LayoutStrategy.java 2006-05-07 16:21:14 UTC (rev 7167) +++ trunk/foray/foray-areatree/src/java/org/foray/area/LayoutStrategy.java 2006-05-07 16:24:46 UTC (rev 7168) @@ -56,12 +56,6 @@ public abstract class LayoutStrategy implements LineBreakHandler, org.axsl.areaW.LayoutStrategy { - /** - * The LayoutControl implementation that passes information to this - * layout system. - */ - protected LayoutControl control; - Log logger; /** @@ -77,14 +71,6 @@ } /** - * @param control The LayoutControl implementation that passes information - * to this layout system. - */ - public void setLayoutControl(LayoutControl control) { - this.control = control; - } - - /** * This the main processing of the LayoutStrategy implementation, which * is to create the needed content in the given PageCollection to satisfy * the PageCollection's cousin PageSequence in the FOTree. This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
|
From: <vic...@us...> - 2006-05-09 01:13:49
|
Revision: 7189 Author: victormote Date: 2006-05-08 07:52:14 -0700 (Mon, 08 May 2006) ViewCVS: http://svn.sourceforge.net/foray/?rev=7189&view=rev Log Message: ----------- Conform to new axsl methods. Modified Paths: -------------- trunk/foray/foray-areatree/src/java/org/foray/area/NormalBlockArea.java trunk/foray/foray-pioneer/src/java/org/foray/pioneer/FONodePL.java trunk/foray/foray-pioneer/src/java/org/foray/pioneer/PioneerLS.java Modified: trunk/foray/foray-areatree/src/java/org/foray/area/NormalBlockArea.java =================================================================== --- trunk/foray/foray-areatree/src/java/org/foray/area/NormalBlockArea.java 2006-05-08 14:40:49 UTC (rev 7188) +++ trunk/foray/foray-areatree/src/java/org/foray/area/NormalBlockArea.java 2006-05-08 14:52:14 UTC (rev 7189) @@ -81,7 +81,7 @@ */ public LineArea getCurrentLineArea() { if (this.currentLineArea == null) { - return createNextLineArea(); + return (LineArea) createNextLineArea(); } return this.currentLineArea; } @@ -100,7 +100,7 @@ * * @return the new current line area, which will be empty. */ - public LineArea createNextLineArea() { + public org.axsl.areaW.LineArea createNextLineArea() { if (this.getProgressionDimension() + traitGeneratedBy().traitLineHeightOpt() > this.progressionDimensionAvailable()) { Modified: trunk/foray/foray-pioneer/src/java/org/foray/pioneer/FONodePL.java =================================================================== --- trunk/foray/foray-pioneer/src/java/org/foray/pioneer/FONodePL.java 2006-05-08 14:40:49 UTC (rev 7188) +++ trunk/foray/foray-pioneer/src/java/org/foray/pioneer/FONodePL.java 2006-05-08 14:52:14 UTC (rev 7189) @@ -192,7 +192,7 @@ } // It did not fit on the line. Create new line & try again. NormalBlockArea blockArea = (NormalBlockArea) lineArea.getParentArea(); - lineArea = blockArea.createNextLineArea(); + lineArea = (LineArea) blockArea.createNextLineArea(); if (lineArea == null) { return Status.AREA_FULL_SOME; } Modified: trunk/foray/foray-pioneer/src/java/org/foray/pioneer/PioneerLS.java =================================================================== --- trunk/foray/foray-pioneer/src/java/org/foray/pioneer/PioneerLS.java 2006-05-08 14:40:49 UTC (rev 7188) +++ trunk/foray/foray-pioneer/src/java/org/foray/pioneer/PioneerLS.java 2006-05-08 14:52:14 UTC (rev 7189) @@ -100,7 +100,7 @@ throws AreaWException { blockArea.addLineArea(blockArea.currentLineArea); addPendingFootnotes(blockArea); - return blockArea.createNextLineArea(); + return (LineArea) blockArea.createNextLineArea(); } public void addPendingFootnotes(NormalBlockArea area) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
|
From: <vic...@us...> - 2006-05-09 01:12:19
|
Revision: 7152 Author: victormote Date: 2006-05-06 15:25:18 -0700 (Sat, 06 May 2006) ViewCVS: http://svn.sourceforge.net/foray/?rev=7152&view=rev Log Message: ----------- Separate the AreaTree linkage/generated-by concept from the Layout proxy concept. Modified Paths: -------------- trunk/foray/foray-areatree/src/java/org/foray/area/AreaNode.java trunk/foray/foray-areatree/src/java/org/foray/area/FOrayFONodeProxy.java trunk/foray/foray-areatree/src/java/org/foray/area/LayoutStrategy.java trunk/foray/foray-pioneer/src/java/org/foray/pioneer/ContinuedLabelPL.java trunk/foray/foray-pioneer/src/java/org/foray/pioneer/FONodePL.java trunk/foray/foray-pioneer/src/java/org/foray/pioneer/FObjPL.java trunk/foray/foray-pioneer/src/java/org/foray/pioneer/FootnotePL.java trunk/foray/foray-pioneer/src/java/org/foray/pioneer/PioneerLS.java trunk/foray/foray-pioneer/src/java/org/foray/pioneer/RowSpanMgr.java trunk/foray/foray-pioneer/src/java/org/foray/pioneer/TablePL.java Modified: trunk/foray/foray-areatree/src/java/org/foray/area/AreaNode.java =================================================================== --- trunk/foray/foray-areatree/src/java/org/foray/area/AreaNode.java 2006-05-06 21:28:53 UTC (rev 7151) +++ trunk/foray/foray-areatree/src/java/org/foray/area/AreaNode.java 2006-05-06 22:25:18 UTC (rev 7152) @@ -133,12 +133,12 @@ if (fobj == null) { return null; } - FOrayFONodeProxy proxy = (FOrayFONodeProxy) fobj.getProxy(); - if (proxy == null) { - proxy = this.getLayoutStrategy().makeFObjProxy(fobj); - fobj.setProxy(proxy); + FOrayFONodeProxy linkage = (FOrayFONodeProxy) fobj.getResult(); + if (linkage == null) { + linkage = new FOrayFONodeProxy(fobj); + fobj.setResult(linkage); } - return proxy; + return linkage; } protected org.axsl.areaW.AreaNode getPreviousChildOfGeneratedBy() { Modified: trunk/foray/foray-areatree/src/java/org/foray/area/FOrayFONodeProxy.java =================================================================== --- trunk/foray/foray-areatree/src/java/org/foray/area/FOrayFONodeProxy.java 2006-05-06 21:28:53 UTC (rev 7151) +++ trunk/foray/foray-areatree/src/java/org/foray/area/FOrayFONodeProxy.java 2006-05-06 22:25:18 UTC (rev 7152) @@ -35,10 +35,9 @@ * <p>An implementation of {@link org.axsl.foR.FONodeProxy} suitable for use * with FOray.</p> */ -public class FOrayFONodeProxy implements org.axsl.foR.FONodeProxy, - FOLinkage { +public class FOrayFONodeProxy implements FOLinkage { - /** The real FONode which this proxy represents. */ + /** The FONode which generated the Areas in {@link #generatedAreas}. */ private FONode realFONode; /** @@ -47,7 +46,7 @@ * This is currently set up to only store the root node of any subtree that * was generated by {@link #realFONode}. */ - private ArrayList generatedAreas; + private ArrayList generatedAreas = new ArrayList(); public FOrayFONodeProxy(FONode realFObj) { this.realFONode = realFObj; Modified: trunk/foray/foray-areatree/src/java/org/foray/area/LayoutStrategy.java =================================================================== --- trunk/foray/foray-areatree/src/java/org/foray/area/LayoutStrategy.java 2006-05-06 21:28:53 UTC (rev 7151) +++ trunk/foray/foray-areatree/src/java/org/foray/area/LayoutStrategy.java 2006-05-06 22:25:18 UTC (rev 7152) @@ -27,6 +27,7 @@ import org.foray.common.FOrayException; import org.axsl.foR.FONode; +import org.axsl.foR.FONodeProxy; import org.axsl.foR.FOText; import org.axsl.foR.FObj; import org.axsl.foR.FObjMixed; @@ -130,9 +131,7 @@ * @param node * @return A new FObjProxy which proxies node. */ - public FOrayFONodeProxy makeFObjProxy(FONode node) { - return new FOrayFONodeProxy(node); - } + public abstract FONodeProxy makeFObjProxy(FONode node) ; public void handleLineBreakText(LineOutput lineOutput, LineText text, int startOffset, int sizeInChars, int sizeInline, Modified: trunk/foray/foray-pioneer/src/java/org/foray/pioneer/ContinuedLabelPL.java =================================================================== --- trunk/foray/foray-pioneer/src/java/org/foray/pioneer/ContinuedLabelPL.java 2006-05-06 21:28:53 UTC (rev 7151) +++ trunk/foray/foray-pioneer/src/java/org/foray/pioneer/ContinuedLabelPL.java 2006-05-06 22:25:18 UTC (rev 7152) @@ -27,6 +27,7 @@ import org.foray.area.Area; import org.foray.common.FOrayException; +import org.axsl.areaW.FOLinkage; import org.axsl.foR.FONode; import org.axsl.foR.extension.ContinuedLabel; import org.axsl.foR.fo.Table; @@ -60,8 +61,8 @@ // See if ancestor table has generated any areas yet. Table table = label.getNearestTable(); - TablePL tablePL = (TablePL) layout.getFObjProxy(table); - if (tablePL != null && tablePL.qtyAreasGenerated() > 0) { + FOLinkage linkage = (FOLinkage) table.getResult(); + if (linkage != null && linkage.qtyAreasGenerated() > 0) { int numChildren = label.getChildren().size(); for (int i = getProgress(); i < numChildren; i++) { FONode fo = (FONode)label.getChildren().get(i); Modified: trunk/foray/foray-pioneer/src/java/org/foray/pioneer/FONodePL.java =================================================================== --- trunk/foray/foray-pioneer/src/java/org/foray/pioneer/FONodePL.java 2006-05-06 21:28:53 UTC (rev 7151) +++ trunk/foray/foray-pioneer/src/java/org/foray/pioneer/FONodePL.java 2006-05-06 22:25:18 UTC (rev 7152) @@ -30,6 +30,8 @@ import org.foray.area.NormalBlockArea; import org.foray.common.FOrayException; +import org.axsl.areaW.AreaNode; +import org.axsl.areaW.FOLinkage; import org.axsl.foR.FONode; import org.axsl.foR.FObj; import org.axsl.text.TextException; @@ -44,7 +46,7 @@ /** * */ -public abstract class FONodePL extends FOrayFONodeProxy { +public abstract class FONodePL implements org.axsl.foR.FONodeProxy { /** value of progress before layout begins. */ public static final int START = -1000; @@ -52,6 +54,9 @@ /** value of progress after break-after. */ public static final int BREAK_AFTER = -1001; + /** The real FONode which this proxy represents. */ + private FONode realFONode; + /** * where the layout was up to. * for FObjs it is the child number @@ -62,7 +67,8 @@ protected PioneerLS layout; public FONodePL(FONode realFObj, PioneerLS layout) { - super(realFObj); + this.realFONode = realFObj; + realFObj.setProxy(this); this.layout = layout; } @@ -113,9 +119,20 @@ } protected FONodePL getFObjProxy(FONode node) { - return (FONodePL) layout.getFObjProxy(node); + if (node == null) { + return null; + } + FONodePL proxy = (FONodePL) node.getProxy(); + if (proxy == null) { + proxy = (FONodePL) this.layout.makeFObjProxy(node); + } + return proxy; } + protected FOrayFONodeProxy getFONodeResult(FONode node) { + return (FOrayFONodeProxy) node.getResult(); + } + public abstract int layout(Area area) throws FOrayException; public Log getLogger() { @@ -228,4 +245,28 @@ return blockArea.getCurrentLineArea(); } + public FONode getFONode() { + return this.realFONode; + } + + public FOLinkage getFOLinkage() { + FONode foNode = this.getFONode(); + if (foNode == null) { + return null; + } + FOLinkage linkage = (FOLinkage) foNode.getResult(); + if (linkage == null) { + return null; + } + return linkage; + } + + public AreaNode getLastGeneratedBy() { + FOLinkage linkage = getFOLinkage(); + if (linkage == null) { + return null; + } + return linkage.getLastGeneratedBy(); + } + } Modified: trunk/foray/foray-pioneer/src/java/org/foray/pioneer/FObjPL.java =================================================================== --- trunk/foray/foray-pioneer/src/java/org/foray/pioneer/FObjPL.java 2006-05-06 21:28:53 UTC (rev 7151) +++ trunk/foray/foray-pioneer/src/java/org/foray/pioneer/FObjPL.java 2006-05-06 22:25:18 UTC (rev 7152) @@ -67,7 +67,8 @@ return snapshot; } FONode node = ((FONode)children.get(this.progress)); - return getFObjProxy(node).getProgressSnapshot(snapshot); + FONodePL proxy = getFObjProxy(node); + return proxy.getProgressSnapshot(snapshot); } public void rollback(ArrayList snapshot) { @@ -107,7 +108,7 @@ return null; } // Find the last Area generated by that FO - org.axsl.areaW.AreaNode lastGenerated = getFObjProxy(previousSibling) + org.axsl.areaW.AreaNode lastGenerated = getFONodeResult(previousSibling) .getLastGeneratedBy(); if (lastGenerated == null) { return null; Modified: trunk/foray/foray-pioneer/src/java/org/foray/pioneer/FootnotePL.java =================================================================== --- trunk/foray/foray-pioneer/src/java/org/foray/pioneer/FootnotePL.java 2006-05-06 21:28:53 UTC (rev 7151) +++ trunk/foray/foray-pioneer/src/java/org/foray/pioneer/FootnotePL.java 2006-05-06 22:25:18 UTC (rev 7152) @@ -59,8 +59,7 @@ FONode fo = (FONode)node.childrenFO().get(i); if (fo instanceof Inline) { inline = (Inline) fo; - FObjMixedPL inlinePL = (FObjMixedPL) layout.getFObjProxy( - inline); + FObjMixedPL inlinePL = (FObjMixedPL) inline.getProxy(); int status = inlinePL.layout(area); if (Status.isIncomplete(status)) { return status; Modified: trunk/foray/foray-pioneer/src/java/org/foray/pioneer/PioneerLS.java =================================================================== --- trunk/foray/foray-pioneer/src/java/org/foray/pioneer/PioneerLS.java 2006-05-06 21:28:53 UTC (rev 7151) +++ trunk/foray/foray-pioneer/src/java/org/foray/pioneer/PioneerLS.java 2006-05-06 22:25:18 UTC (rev 7152) @@ -25,7 +25,6 @@ package org.foray.pioneer; import org.foray.area.Area; -import org.foray.area.FOrayFONodeProxy; import org.foray.area.LayoutStrategy; import org.foray.area.LineArea; import org.foray.area.NormalBlockArea; @@ -38,6 +37,7 @@ import org.axsl.common.Constants; import org.axsl.foR.FONode; +import org.axsl.foR.FONodeProxy; import org.axsl.foR.FOText; import org.axsl.foR.FObj; import org.axsl.foR.FObjMixed; @@ -107,8 +107,7 @@ if (area.pendingFootnotes != null) { for (int i = 0; i < area.pendingFootnotes.size(); i++) { FootnoteBody fb = (FootnoteBody)area.pendingFootnotes.get(i); - FootnoteBodyPL fbPL - = ((FootnoteBodyPL) getFObjProxy(fb)); + FootnoteBodyPL fbPL = ((FootnoteBodyPL) fb.getProxy()); PageRA page = area.getPage(); if (! fbPL.layoutFootnote(page, area)) { page.addPendingFootnote(fb); @@ -125,6 +124,7 @@ throws FOrayException { PageSequence pageSeq = pageCollection.getPageSequence(); org.axsl.foR.fo.Flow flow = pageSeq.getFlow(); + flow.setProxy(new FlowPL(flow, this)); pageCollection.padPagesAtBeginning(); // make pages and layout content @@ -158,7 +158,7 @@ * static content. This is likely also justifiable because of spec. */ RegionRABody bodyArea = currentPage.getRegionRABody(); - FlowPL flowPL = (FlowPL) this.getFObjProxy(flow); + FlowPL flowPL = (FlowPL) flow.getProxy(); flowPL.layout(bodyArea); currentPage.formatStaticContent(this); currentPage.layoutComplete(); @@ -172,8 +172,7 @@ if (footnotes != null) { for (int i = 0; i < footnotes.size(); i++) { FootnoteBody fb = (FootnoteBody)footnotes.get(i); - FootnoteBodyPL fbPL - = ((FootnoteBodyPL) getFObjProxy(fb)); + FootnoteBodyPL fbPL = ((FootnoteBodyPL) fb.getProxy()); if (! fbPL.layoutFootnote(pageArea, null)) { // footnotes are too large to fit on empty page } @@ -195,8 +194,7 @@ if (staticContent == null) { return; } - StaticContentPL staticPL - = (StaticContentPL) this.getFObjProxy(staticContent); + StaticContentPL staticPL = (StaticContentPL) staticContent.getProxy(); staticPL.layout(area); } @@ -255,7 +253,7 @@ } } - public FOrayFONodeProxy makeFObjProxy(FONode node) { + public FONodeProxy makeFObjProxy(FONode node) { switch (node.getNodeType()) { case FONode.NODE_ABSTRACT_FLOW: { return null; Modified: trunk/foray/foray-pioneer/src/java/org/foray/pioneer/RowSpanMgr.java =================================================================== --- trunk/foray/foray-pioneer/src/java/org/foray/pioneer/RowSpanMgr.java 2006-05-06 21:28:53 UTC (rev 7151) +++ trunk/foray/foray-pioneer/src/java/org/foray/pioneer/RowSpanMgr.java 2006-05-06 22:25:18 UTC (rev 7152) @@ -68,7 +68,7 @@ } TableCellPL getTableCellPL() { - return (TableCellPL) layout.getFObjProxy(this.cell); + return (TableCellPL) this.cell.getProxy(); } } Modified: trunk/foray/foray-pioneer/src/java/org/foray/pioneer/TablePL.java =================================================================== --- trunk/foray/foray-pioneer/src/java/org/foray/pioneer/TablePL.java 2006-05-06 21:28:53 UTC (rev 7151) +++ trunk/foray/foray-pioneer/src/java/org/foray/pioneer/TablePL.java 2006-05-06 22:25:18 UTC (rev 7152) @@ -379,8 +379,7 @@ int columnOffset = 0; for (int i = 0; i < node.getTableColumns().size(); i++) { TableColumn column = (TableColumn) node.getTableColumns().get(i); - TableColumnPL columnPL = (TableColumnPL) layout.getFObjProxy( - column); + TableColumnPL columnPL = (TableColumnPL) column.getProxy(); if (columnPL != null) { columnPL.setColumnOffset(columnOffset); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
|
From: <vic...@us...> - 2006-05-09 01:11:27
|
Revision: 7171 Author: victormote Date: 2006-05-07 10:56:15 -0700 (Sun, 07 May 2006) ViewCVS: http://svn.sourceforge.net/foray/?rev=7171&view=rev Log Message: ----------- Implement new axsl method. Modified Paths: -------------- trunk/foray/foray-areatree/src/java/org/foray/area/AreaNode.java Modified: trunk/foray/foray-areatree/src/java/org/foray/area/AreaNode.java =================================================================== --- trunk/foray/foray-areatree/src/java/org/foray/area/AreaNode.java 2006-05-07 17:25:47 UTC (rev 7170) +++ trunk/foray/foray-areatree/src/java/org/foray/area/AreaNode.java 2006-05-07 17:56:15 UTC (rev 7171) @@ -25,6 +25,8 @@ package org.foray.area; import org.foray.common.OrderedTreeNode; + +import org.axsl.areaW.FOLinkage; import org.axsl.areaW.LayoutStrategy; import org.axsl.common.Constants; @@ -446,4 +448,13 @@ return this.getAreaNodeParent().getLayoutStrategy(); } + public FOLinkage getFOLinkage(FONode foNode) { + FOrayFOLinkage linkage = (FOrayFOLinkage) foNode.getResult(); + if (linkage == null) { + linkage = new FOrayFOLinkage(foNode); + foNode.setResult(linkage); + } + return linkage; + } + } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
|
From: <vic...@us...> - 2006-05-09 01:09:35
|
Revision: 7196 Author: victormote Date: 2006-05-08 09:42:04 -0700 (Mon, 08 May 2006) ViewCVS: http://svn.sourceforge.net/foray/?rev=7196&view=rev Log Message: ----------- Conform to new axsl methods. Modified Paths: -------------- trunk/foray/foray-areatree/src/java/org/foray/area/Area.java trunk/foray/foray-areatree/src/java/org/foray/area/AreaNode.java trunk/foray/foray-areatree/src/java/org/foray/area/PageRA.java trunk/foray/foray-pioneer/src/java/org/foray/pioneer/BlockContainerPL.java trunk/foray/foray-pioneer/src/java/org/foray/pioneer/ExternalGraphicPL.java Modified: trunk/foray/foray-areatree/src/java/org/foray/area/Area.java =================================================================== --- trunk/foray/foray-areatree/src/java/org/foray/area/Area.java 2006-05-08 16:20:42 UTC (rev 7195) +++ trunk/foray/foray-areatree/src/java/org/foray/area/Area.java 2006-05-08 16:42:04 UTC (rev 7196) @@ -111,7 +111,7 @@ } public int heightNearestGenByBlockLevelFO() { - Area nearest = nearestGeneratedByBlockLevelFO(); + org.axsl.areaW.Area nearest = nearestGeneratedByBlockLevelFO(); if (nearest == null) { return Constants.DIMENSION_AUTO; } @@ -119,7 +119,7 @@ } public int widthNearestGenByBlockLevelFO() { - AreaNode nearest = nearestGeneratedByBlockLevelFO(); + org.axsl.areaW.Area nearest = nearestGeneratedByBlockLevelFO(); if (nearest == null || ! (nearest instanceof Area)) { return Constants.DIMENSION_AUTO; } Modified: trunk/foray/foray-areatree/src/java/org/foray/area/AreaNode.java =================================================================== --- trunk/foray/foray-areatree/src/java/org/foray/area/AreaNode.java 2006-05-08 16:20:42 UTC (rev 7195) +++ trunk/foray/foray-areatree/src/java/org/foray/area/AreaNode.java 2006-05-08 16:42:04 UTC (rev 7196) @@ -267,7 +267,7 @@ * a block-level formatting object. * @return The Area generated by a block-level FO. */ - public Area nearestGeneratedByBlockLevelFO() { + public org.axsl.areaW.Area nearestGeneratedByBlockLevelFO() { if (this instanceof Area && traitGeneratedBy().isBlockLevelFO()) { return (Area) this; } Modified: trunk/foray/foray-areatree/src/java/org/foray/area/PageRA.java =================================================================== --- trunk/foray/foray-areatree/src/java/org/foray/area/PageRA.java 2006-05-08 16:20:42 UTC (rev 7195) +++ trunk/foray/foray-areatree/src/java/org/foray/area/PageRA.java 2006-05-08 16:42:04 UTC (rev 7196) @@ -272,7 +272,7 @@ * that was generated by a block-level FO. * @return Always returns null (override of method in Area). */ - public Area nearestGeneratedByBlockLevelFO() { + public org.axsl.areaW.Area nearestGeneratedByBlockLevelFO() { return null; } Modified: trunk/foray/foray-pioneer/src/java/org/foray/pioneer/BlockContainerPL.java =================================================================== --- trunk/foray/foray-pioneer/src/java/org/foray/pioneer/BlockContainerPL.java 2006-05-08 16:20:42 UTC (rev 7195) +++ trunk/foray/foray-pioneer/src/java/org/foray/pioneer/BlockContainerPL.java 2006-05-08 16:42:04 UTC (rev 7196) @@ -49,8 +49,11 @@ } // Compute effective width & height of containing Area - int height = node.getHeight(area.heightNearestGenByBlockLevelFO()); - int width = node.getWidth(area.widthNearestGenByBlockLevelFO()); + org.axsl.areaW.Area nearest = area.nearestGeneratedByBlockLevelFO(); + int height = nearest.crBPD(); + height = node.getHeight(height); + int width = nearest.crIPD(); + width = node.getWidth(width); if ((width == 0) && (height == 0)) { width = node.traitRight(0) - node.traitLeft(0); height = node.traitBottom(0) - node.traitTop(0); Modified: trunk/foray/foray-pioneer/src/java/org/foray/pioneer/ExternalGraphicPL.java =================================================================== --- trunk/foray/foray-pioneer/src/java/org/foray/pioneer/ExternalGraphicPL.java 2006-05-08 16:20:42 UTC (rev 7195) +++ trunk/foray/foray-pioneer/src/java/org/foray/pioneer/ExternalGraphicPL.java 2006-05-08 16:42:04 UTC (rev 7196) @@ -49,7 +49,8 @@ setProgress(0); } - Area parentForDimensions = area.nearestGeneratedByBlockLevelFO(); + org.axsl.areaW.Area parentForDimensions = + area.nearestGeneratedByBlockLevelFO(); int height = node.viewportBPD(parentForDimensions.crIPD(), parentForDimensions.crBPD()); if (area.progressionDimensionAvailable() This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
|
From: <vic...@us...> - 2006-05-09 01:07:14
|
Revision: 7160 Author: victormote Date: 2006-05-06 17:33:41 -0700 (Sat, 06 May 2006) ViewCVS: http://svn.sourceforge.net/foray/?rev=7160&view=rev Log Message: ----------- Implement new axsl interfaces. Modified Paths: -------------- trunk/foray/foray-areatree/src/java/org/foray/area/PageRA.java trunk/foray/foray-areatree/src/java/org/foray/area/RegionRA.java Modified: trunk/foray/foray-areatree/src/java/org/foray/area/PageRA.java =================================================================== --- trunk/foray/foray-areatree/src/java/org/foray/area/PageRA.java 2006-05-07 00:15:04 UTC (rev 7159) +++ trunk/foray/foray-areatree/src/java/org/foray/area/PageRA.java 2006-05-07 00:33:41 UTC (rev 7160) @@ -47,7 +47,8 @@ import java.util.ArrayList; import java.util.List; -public class PageRA extends AreaFixed implements PageArea { +public class PageRA extends AreaFixed implements PageArea, + org.axsl.areaW.PageArea { private RegionRABody body; private RegionRA before; Modified: trunk/foray/foray-areatree/src/java/org/foray/area/RegionRA.java =================================================================== --- trunk/foray/foray-areatree/src/java/org/foray/area/RegionRA.java 2006-05-07 00:15:04 UTC (rev 7159) +++ trunk/foray/foray-areatree/src/java/org/foray/area/RegionRA.java 2006-05-07 00:33:41 UTC (rev 7160) @@ -34,7 +34,8 @@ /** * This class is used to manage a region-reference-area. */ -public class RegionRA extends AreaFixed implements RegionArea { +public class RegionRA extends AreaFixed implements RegionArea, + org.axsl.areaW.RegionArea { public RegionRA(Region generatedBy, PageRA parentArea) { super(generatedBy, parentArea); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
|
From: <vic...@us...> - 2006-05-09 01:05:52
|
Revision: 7194 Author: victormote Date: 2006-05-08 08:45:42 -0700 (Mon, 08 May 2006) ViewCVS: http://svn.sourceforge.net/foray/?rev=7194&view=rev Log Message: ----------- Implement new axsl interfaces. Modified Paths: -------------- trunk/foray/foray-areatree/src/java/org/foray/area/BlockContainerRA.java trunk/foray/foray-areatree/src/java/org/foray/area/ContainerRA.java trunk/foray/foray-areatree/src/java/org/foray/area/GenericContainer.java trunk/foray/foray-areatree/src/java/org/foray/area/TableBodyContainer.java trunk/foray/foray-areatree/src/java/org/foray/area/TableFooterContainer.java trunk/foray/foray-areatree/src/java/org/foray/area/TableHeaderContainer.java Modified: trunk/foray/foray-areatree/src/java/org/foray/area/BlockContainerRA.java =================================================================== --- trunk/foray/foray-areatree/src/java/org/foray/area/BlockContainerRA.java 2006-05-08 15:28:54 UTC (rev 7193) +++ trunk/foray/foray-areatree/src/java/org/foray/area/BlockContainerRA.java 2006-05-08 15:45:42 UTC (rev 7194) @@ -31,7 +31,7 @@ * The container area for the contents of a block-container FO. */ public class BlockContainerRA extends ContainerRA - implements BlockContainerArea { + implements BlockContainerArea, org.axsl.areaW.BlockContainerRA { private int xPosition; private int yPosition; Modified: trunk/foray/foray-areatree/src/java/org/foray/area/ContainerRA.java =================================================================== --- trunk/foray/foray-areatree/src/java/org/foray/area/ContainerRA.java 2006-05-08 15:28:54 UTC (rev 7193) +++ trunk/foray/foray-areatree/src/java/org/foray/area/ContainerRA.java 2006-05-08 15:45:42 UTC (rev 7194) @@ -33,7 +33,8 @@ * before-float-reference-area, main-reference-area, footnote-reference-area, * span-reference-area, and column-reference-area. */ -public abstract class ContainerRA extends AreaFlexible { +public abstract class ContainerRA extends AreaFlexible + implements org.axsl.areaW.ContainerRA { public ContainerRA(FObj generatedBy, Area parentArea) { super(generatedBy, parentArea); Modified: trunk/foray/foray-areatree/src/java/org/foray/area/GenericContainer.java =================================================================== --- trunk/foray/foray-areatree/src/java/org/foray/area/GenericContainer.java 2006-05-08 15:28:54 UTC (rev 7193) +++ trunk/foray/foray-areatree/src/java/org/foray/area/GenericContainer.java 2006-05-08 15:45:42 UTC (rev 7194) @@ -26,7 +26,8 @@ import org.axsl.foR.FObj; -public class GenericContainer extends ContainerRA { +public class GenericContainer extends ContainerRA + implements org.axsl.areaW.GenericContainer { int xPosition = 0; int yPosition = 0; Modified: trunk/foray/foray-areatree/src/java/org/foray/area/TableBodyContainer.java =================================================================== --- trunk/foray/foray-areatree/src/java/org/foray/area/TableBodyContainer.java 2006-05-08 15:28:54 UTC (rev 7193) +++ trunk/foray/foray-areatree/src/java/org/foray/area/TableBodyContainer.java 2006-05-08 15:45:42 UTC (rev 7194) @@ -27,7 +27,8 @@ import org.axsl.foR.FObj; public class TableBodyContainer extends GenericContainer - implements org.axsl.areaR.TableBodyContainer { + implements org.axsl.areaR.TableBodyContainer, + org.axsl.areaW.TableBodyContainer { public TableBodyContainer(FObj generatedBy, Area parentArea) { super(generatedBy, parentArea); Modified: trunk/foray/foray-areatree/src/java/org/foray/area/TableFooterContainer.java =================================================================== --- trunk/foray/foray-areatree/src/java/org/foray/area/TableFooterContainer.java 2006-05-08 15:28:54 UTC (rev 7193) +++ trunk/foray/foray-areatree/src/java/org/foray/area/TableFooterContainer.java 2006-05-08 15:45:42 UTC (rev 7194) @@ -27,7 +27,8 @@ import org.axsl.foR.FObj; public class TableFooterContainer extends GenericContainer - implements org.axsl.areaR.TableFooterContainer { + implements org.axsl.areaR.TableFooterContainer, + org.axsl.areaW.TableFooterContainer { public TableFooterContainer(FObj generatedBy, Area parentArea) { super(generatedBy, parentArea); Modified: trunk/foray/foray-areatree/src/java/org/foray/area/TableHeaderContainer.java =================================================================== --- trunk/foray/foray-areatree/src/java/org/foray/area/TableHeaderContainer.java 2006-05-08 15:28:54 UTC (rev 7193) +++ trunk/foray/foray-areatree/src/java/org/foray/area/TableHeaderContainer.java 2006-05-08 15:45:42 UTC (rev 7194) @@ -27,7 +27,8 @@ import org.axsl.foR.FObj; public class TableHeaderContainer extends GenericContainer - implements org.axsl.areaR.TableHeaderContainer { + implements org.axsl.areaR.TableHeaderContainer, + org.axsl.areaW.TableHeaderContainer { public TableHeaderContainer(FObj generatedBy, Area parentArea) { super(generatedBy, parentArea); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
|
From: <vic...@us...> - 2006-05-09 01:01:48
|
Revision: 7176 Author: victormote Date: 2006-05-07 12:54:28 -0700 (Sun, 07 May 2006) ViewCVS: http://svn.sourceforge.net/foray/?rev=7176&view=rev Log Message: ----------- Conform to new axsl factory methods. Modified Paths: -------------- trunk/foray/foray-areatree/src/java/org/foray/area/AreaTree.java trunk/foray/foray-areatree/src/java/org/foray/area/LineArea.java trunk/foray/foray-areatree/src/java/org/foray/area/PageNumberCitationArea.java Modified: trunk/foray/foray-areatree/src/java/org/foray/area/AreaTree.java =================================================================== --- trunk/foray/foray-areatree/src/java/org/foray/area/AreaTree.java 2006-05-07 19:00:17 UTC (rev 7175) +++ trunk/foray/foray-areatree/src/java/org/foray/area/AreaTree.java 2006-05-07 19:54:28 UTC (rev 7176) @@ -24,6 +24,7 @@ package org.foray.area; +import org.axsl.areaW.Area; import org.axsl.areaW.LayoutStrategy; import org.axsl.areaW.AreaWException; Modified: trunk/foray/foray-areatree/src/java/org/foray/area/LineArea.java =================================================================== --- trunk/foray/foray-areatree/src/java/org/foray/area/LineArea.java 2006-05-07 19:00:17 UTC (rev 7175) +++ trunk/foray/foray-areatree/src/java/org/foray/area/LineArea.java 2006-05-07 19:54:28 UTC (rev 7176) @@ -26,8 +26,17 @@ import org.axsl.areaW.AreaWException; import org.axsl.common.Constants; +import org.axsl.foR.FONode; import org.axsl.foR.FObj; import org.axsl.foR.WritingMode; +import org.axsl.foR.fo.BasicLink; +import org.axsl.foR.fo.Block; +import org.axsl.foR.fo.ExternalGraphic; +import org.axsl.foR.fo.Inline; +import org.axsl.foR.fo.InstreamForeignObject; +import org.axsl.foR.fo.Leader; +import org.axsl.foR.fo.PageNumber; +import org.axsl.foR.fo.PageNumberCitation; import org.axsl.text.line.LineOutput; import java.util.List; @@ -770,4 +779,57 @@ return this.children.size() > 0; } + public org.axsl.areaW.ForeignObjectArea makeForeignObjectArea( + InstreamForeignObject ifo, int ipd) { + Area parentArea = findParentArea(ifo); + return new ForeignObjectArea(ifo, parentArea, ipd); + } + + public org.axsl.areaW.ExternalGraphicArea makeExternalGraphicArea( + ExternalGraphic ifo, int ipd) { + Area parentArea = findParentArea(ifo); + return new ExternalGraphicArea(ifo, parentArea, ipd); + } + + public org.axsl.areaW.LeaderArea makeLeaderArea( + Leader leader, int ipd) { + Area parentArea = findParentArea(leader); + return new LeaderArea(leader, parentArea, ipd); + } + + public org.axsl.areaW.PageNumberArea makePageNumberArea( + PageNumber pageNumber, int ipd) { + Area parentArea = findParentArea(pageNumber); + return new PageNumberArea(pageNumber, parentArea, ipd); + } + + public org.axsl.areaW.PageNumberCitationArea makePageNumberCitationArea( + PageNumberCitation citation, int ipd) { + Area parentArea = findParentArea(citation); + return new PageNumberCitationArea(citation, parentArea, ipd); + } + + private AreaFlexible findParentArea(FONode node) { + // This is the easy and probably most frequent case + if (node.parentFO() instanceof Block) { + return this; + } + /* + * TODO: A test needs to be + * added to see whether the last child of LineArea should be a parent + * or other ancestor of node. If so, as much of that hierarchy as is + * common to node should be preserved. + */ + if (node.parentFO() instanceof BasicLink) { + BasicLink bl = (BasicLink) node.parentFO(); + return new BasicLinkArea(bl, findParentArea(bl)); + } + if (node.parentFO() instanceof Inline) { + Inline inline = (Inline) node.parentFO(); + return new InlineArea(inline, findParentArea(inline)); + } + // Default if nothing else works. + return this; + } + } Modified: trunk/foray/foray-areatree/src/java/org/foray/area/PageNumberCitationArea.java =================================================================== --- trunk/foray/foray-areatree/src/java/org/foray/area/PageNumberCitationArea.java 2006-05-07 19:00:17 UTC (rev 7175) +++ trunk/foray/foray-areatree/src/java/org/foray/area/PageNumberCitationArea.java 2006-05-07 19:54:28 UTC (rev 7176) @@ -37,7 +37,7 @@ } public String resolve() { - Area area = getAreaTree().firstNormalAreaReturned(traitRefId()); + Area area = (Area) getAreaTree().firstNormalAreaReturned(traitRefId()); String text = null; if (area == null) { text = "???"; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
|
From: <vic...@us...> - 2006-05-09 01:01:43
|
Revision: 7177 Author: victormote Date: 2006-05-07 12:59:22 -0700 (Sun, 07 May 2006) ViewCVS: http://svn.sourceforge.net/foray/?rev=7177&view=rev Log Message: ----------- Steps toward independence from FOray's AreaTree. Modified Paths: -------------- trunk/foray/foray-layout/src/java/org/foray/layout/LayoutStrategy.java Modified: trunk/foray/foray-layout/src/java/org/foray/layout/LayoutStrategy.java =================================================================== --- trunk/foray/foray-layout/src/java/org/foray/layout/LayoutStrategy.java 2006-05-07 19:54:28 UTC (rev 7176) +++ trunk/foray/foray-layout/src/java/org/foray/layout/LayoutStrategy.java 2006-05-07 19:59:22 UTC (rev 7177) @@ -27,13 +27,8 @@ import org.foray.area.Area; import org.foray.area.AreaFlexible; import org.foray.area.BasicLinkArea; -import org.foray.area.ExternalGraphicArea; -import org.foray.area.ForeignObjectArea; import org.foray.area.InlineArea; -import org.foray.area.LeaderArea; import org.foray.area.LineArea; -import org.foray.area.PageNumberArea; -import org.foray.area.PageNumberCitationArea; import org.foray.area.TextArea; import org.axsl.areaW.AreaTree; @@ -157,24 +152,22 @@ LineNonText nonText, int sizeInline) throws TextException { checkLayoutTarget(lineOutput, nonText); LineArea lineArea = (LineArea) lineOutput; - FONode node = (FONode) nonText; - Area parentArea = findParentArea(node, lineArea); if (nonText instanceof InstreamForeignObject) { InstreamForeignObject ifo = (InstreamForeignObject) nonText; - new ForeignObjectArea(ifo, parentArea, sizeInline); + lineArea.makeForeignObjectArea(ifo, sizeInline); } else if (nonText instanceof ExternalGraphic) { ExternalGraphic graphic = (ExternalGraphic) nonText; - new ExternalGraphicArea(graphic, parentArea, sizeInline); + lineArea.makeExternalGraphicArea(graphic, sizeInline); } else if (nonText instanceof Leader) { Leader leader = (Leader) nonText; - new LeaderArea(leader, parentArea, sizeInline); + lineArea.makeLeaderArea(leader, sizeInline); } else if (nonText instanceof PageNumberCitation) { PageNumberCitation citation = (PageNumberCitation) nonText; - new PageNumberCitationArea(citation, parentArea, sizeInline); + lineArea.makePageNumberCitationArea(citation, sizeInline); } else if (nonText instanceof PageNumber) { PageNumber pageNumber = (PageNumber) nonText; - new PageNumberArea(pageNumber, parentArea, sizeInline); + lineArea.makePageNumberArea(pageNumber, sizeInline); } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
|
From: <vic...@us...> - 2006-05-09 00:59:39
|
Revision: 7197 Author: victormote Date: 2006-05-08 09:59:55 -0700 (Mon, 08 May 2006) ViewCVS: http://svn.sourceforge.net/foray/?rev=7197&view=rev Log Message: ----------- Conform to new axsl methods. Modified Paths: -------------- trunk/foray/foray-areatree/src/java/org/foray/area/Area.java trunk/foray/foray-areatree/src/java/org/foray/area/PageCollection.java trunk/foray/foray-areatree/src/java/org/foray/area/SpanRA.java trunk/foray/foray-pioneer/src/java/org/foray/pioneer/FlowPL.java Modified: trunk/foray/foray-areatree/src/java/org/foray/area/Area.java =================================================================== --- trunk/foray/foray-areatree/src/java/org/foray/area/Area.java 2006-05-08 16:42:04 UTC (rev 7196) +++ trunk/foray/foray-areatree/src/java/org/foray/area/Area.java 2006-05-08 16:59:55 UTC (rev 7197) @@ -25,12 +25,14 @@ package org.foray.area; import org.axsl.areaW.AreaWException; +import org.axsl.areaW.NormalBlockArea; import org.axsl.areaW.TableFooterContainer; import org.axsl.areaW.TableHeaderContainer; import org.axsl.common.Constants; import org.axsl.foR.FObj; import org.axsl.foR.WritingMode; import org.axsl.foR.fo.BasicLink; +import org.axsl.foR.fo.Block; import org.axsl.foR.fo.TableBody; import org.axsl.foR.fo.TableFooter; import org.axsl.foR.fo.TableHeader; @@ -952,8 +954,7 @@ } /** - * @return The amount of space, in millipoints, available in this Area for - * expansion in the progression direction. + * {@inherit} */ public abstract int progressionDimensionAvailable(); @@ -1180,4 +1181,8 @@ return new org.foray.area.TableFooterContainer(tableFooter, this); } + public NormalBlockArea makeNormalBlockArea(Block block) { + return new org.foray.area.NormalBlockArea(block, this); + } + } Modified: trunk/foray/foray-areatree/src/java/org/foray/area/PageCollection.java =================================================================== --- trunk/foray/foray-areatree/src/java/org/foray/area/PageCollection.java 2006-05-08 16:42:04 UTC (rev 7196) +++ trunk/foray/foray-areatree/src/java/org/foray/area/PageCollection.java 2006-05-08 16:59:55 UTC (rev 7197) @@ -331,8 +331,8 @@ * @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 { + public org.axsl.areaW.SpanRA startingReferenceArea(FObj lastFObj, + FObj nextFObj) throws AreaWException { if (lastFObj != null) { Area lastArea = (Area) getFObjProxy(lastFObj) .getLastAreaGeneratedBy(); Modified: trunk/foray/foray-areatree/src/java/org/foray/area/SpanRA.java =================================================================== --- trunk/foray/foray-areatree/src/java/org/foray/area/SpanRA.java 2006-05-08 16:42:04 UTC (rev 7196) +++ trunk/foray/foray-areatree/src/java/org/foray/area/SpanRA.java 2006-05-08 16:59:55 UTC (rev 7197) @@ -38,7 +38,8 @@ * span-reference-area. The best guess is that it is generated by the * region-body fo. */ -public class SpanRA extends AreaFlexible implements SpanArea { +public class SpanRA extends AreaFlexible implements SpanArea, + org.axsl.areaW.SpanRA { private int currentColumn = 1; @@ -205,7 +206,7 @@ * @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) { + public org.axsl.areaW.NormalFlowRA normalFlowForNextFO(FObj fo) { int qtyChildren = this.getChildren().size(); // If the span has only one column, then simply return it. if (qtyChildren == 1) { Modified: trunk/foray/foray-pioneer/src/java/org/foray/pioneer/FlowPL.java =================================================================== --- trunk/foray/foray-pioneer/src/java/org/foray/pioneer/FlowPL.java 2006-05-08 16:42:04 UTC (rev 7196) +++ trunk/foray/foray-pioneer/src/java/org/foray/pioneer/FlowPL.java 2006-05-08 16:59:55 UTC (rev 7197) @@ -26,7 +26,6 @@ import org.foray.area.NormalFlowRA; import org.foray.area.PageCollection; -import org.foray.area.SpanRA; import org.axsl.areaW.AreaWException; import org.axsl.foR.FObj; @@ -48,8 +47,9 @@ lastFObj = (FObj) children.get(i - 1); } FObj nextFObj = (FObj) children.get(i); - SpanRA span = pc.startingReferenceArea(lastFObj, nextFObj); - NormalFlowRA nf = span.normalFlowForNextFO(nextFObj); + org.axsl.areaW.SpanRA span = pc.startingReferenceArea(lastFObj, + nextFObj); + NormalFlowRA nf = (NormalFlowRA) span.normalFlowForNextFO(nextFObj); this.getLayoutProxy(nextFObj).layout(nf); } return 0; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |