foray-commit Mailing List for FOray (Page 298)
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-06-10 17:39:50
|
Revision: 7515 Author: victormote Date: 2006-06-10 10:39:45 -0700 (Sat, 10 Jun 2006) ViewCVS: http://svn.sourceforge.net/foray/?rev=7515&view=rev Log Message: ----------- Conform to axsl change: Remove methods for setting a list of unsupported elements and attributes. Warnings about such items should come downstream, unless the limitations are internal to FOTree itself, in which case no interface items are required. Modified Paths: -------------- trunk/foray/foray-fotree/src/java/org/foray/fotree/FOTreeBuilder.java trunk/foray/foray-fotree/src/java/org/foray/fotree/Namespace.java Modified: trunk/foray/foray-fotree/src/java/org/foray/fotree/FOTreeBuilder.java =================================================================== --- trunk/foray/foray-fotree/src/java/org/foray/fotree/FOTreeBuilder.java 2006-06-10 17:32:41 UTC (rev 7514) +++ trunk/foray/foray-fotree/src/java/org/foray/fotree/FOTreeBuilder.java 2006-06-10 17:39:45 UTC (rev 7515) @@ -54,9 +54,6 @@ public class FOTreeBuilder extends DefaultHandler implements org.axsl.foR.FOTree { - byte[] unsupportedObjectsFO; - short[] unsupportedPropertiesFO; - /** * current formatting object being handled */ @@ -369,22 +366,6 @@ return this.server; } - public void setUnsupportedObjectsFO(byte[] unsupportedObjectsFO) { - this.unsupportedObjectsFO = unsupportedObjectsFO; - } - - public byte[] getUnsupportedObjectsFO() { - return this.unsupportedObjectsFO; - } - - public void setUnsupportedPropertiesFO(short[] unsupportedPropertiesFO) { - this.unsupportedPropertiesFO = unsupportedPropertiesFO; - } - - public short[] getUnsupportedPropertiesFO() { - return this.unsupportedPropertiesFO; - } - public void setGraphicServer(GraphicServer graphicServer) { this.graphicServer = graphicServer; } Modified: trunk/foray/foray-fotree/src/java/org/foray/fotree/Namespace.java =================================================================== --- trunk/foray/foray-fotree/src/java/org/foray/fotree/Namespace.java 2006-06-10 17:32:41 UTC (rev 7514) +++ trunk/foray/foray-fotree/src/java/org/foray/fotree/Namespace.java 2006-06-10 17:39:45 UTC (rev 7515) @@ -68,8 +68,6 @@ list, locator); if (fobj == null) { checkUnknownElement(builder, localName, locator); - } else { - checkSupportedElement(builder, localName, locator); } return fobj; } @@ -186,9 +184,6 @@ throws PropertyException { Property property = parseAttributeForNS(attributes, attributeName, attributeValue, propertyList, locator); - if (property != null) { - checkSupportedAttribute(builder, attributeName, locator); - } return property; } @@ -251,36 +246,4 @@ */ public abstract String getPropertyName(short propertyType) ; - public void checkSupportedElement(FOTreeBuilder builder, - String localName, Locator locator) { - byte[] unsupportedObjects = builder.getUnsupportedObjectsFO(); - if (unsupportedObjects == null) { - return; - } - byte enumerated = enumerateElement(localName); - for (int i = 0; i < unsupportedObjects.length; i++) { - if (enumerated == unsupportedObjects[i]) { - builder.getLogger().info("Unsupported element: " - + getTypicalPrefix() + ":" + localName - + " at " + formatLocator(locator) + "."); - } - } - } - - public void checkSupportedAttribute(FOTreeBuilder builder, - String attributeName, Locator locator) { - short[] unsupportedProperties = builder.getUnsupportedPropertiesFO(); - if (unsupportedProperties == null) { - return; - } - short enumerated = enumerateAttribute(attributeName); - for (int i = 0; i < unsupportedProperties.length; i++) { - if (enumerated == unsupportedProperties[i]) { - builder.getLogger().info("Unsupported attribute: " - + attributeName + " at " - + formatLocator(locator) + "."); - } - } - } - } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
|
From: <vic...@us...> - 2006-06-10 17:32:48
|
Revision: 7514 Author: victormote Date: 2006-06-10 10:32:41 -0700 (Sat, 10 Jun 2006) ViewCVS: http://svn.sourceforge.net/foray/?rev=7514&view=rev Log Message: ----------- Remove unnecessarily restrictive 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-06-10 17:29:41 UTC (rev 7513) +++ trunk/foray/foray-layout/src/java/org/foray/layout/LayoutStrategy.java 2006-06-10 17:32:41 UTC (rev 7514) @@ -31,7 +31,6 @@ import org.axsl.areaW.PageCollection; import org.axsl.areaW.RegionArea; import org.axsl.foR.FONode; -import org.axsl.foR.FONodeProxy; import org.axsl.foR.FOText; import org.axsl.foR.fo.ExternalGraphic; import org.axsl.foR.fo.InstreamForeignObject; @@ -97,14 +96,6 @@ public abstract void layoutStaticContent(PageSequence pageSequence, Region region, RegionArea area) throws AreaWException; - /** - * LayoutStrategy implementations can override this method to create - * FObjProxy subclasses that are part of their layout system. - * @param node - * @return A new FObjProxy which proxies node. - */ - public abstract FONodeProxy makeFObjProxy(FONode node) ; - public void handleLineBreakText(LineOutput lineOutput, LineText text, int startOffset, int sizeInChars, int sizeInline, boolean hasDiscretionaryHyphen, boolean hasFauxSmallCaps, This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
|
From: <vic...@us...> - 2006-06-10 17:30:52
|
Revision: 7513 Author: victormote Date: 2006-06-10 10:29:41 -0700 (Sat, 10 Jun 2006) ViewCVS: http://svn.sourceforge.net/foray/?rev=7513&view=rev Log Message: ----------- Modified Paths: -------------- trunk/foray/foray-fotree/src/java/org/foray/fotree/FONode.java trunk/foray/foray-fotree/src/java/org/foray/fotree/FOText.java trunk/foray/foray-fotree/src/java/org/foray/fotree/FObj.java trunk/foray/foray-fotree/src/java/org/foray/fotree/FObjMixed.java trunk/foray/foray-fotree/src/java/org/foray/fotree/ForeignXML.java trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/AbstractTableBody.java trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/BasicLink.java trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/BidiOverride.java trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/Block.java trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/BlockContainer.java trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/Bookmark.java trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/BookmarkTitle.java trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/BookmarkTree.java trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/Character.java trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/ColorProfile.java trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/ConditionalPageMasterReference.java trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/Declarations.java trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/ExternalGraphic.java trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/Float.java trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/Flow.java trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/Footnote.java trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/FootnoteBody.java trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/InitialPropertySet.java trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/Inline.java trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/InlineContainer.java trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/InstreamForeignObject.java trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/LayoutMasterSet.java trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/Leader.java trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/ListBlock.java trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/ListItem.java trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/ListItemBody.java trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/ListItemLabel.java trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/Marker.java trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/MultiCase.java trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/MultiProperties.java trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/MultiPropertySet.java trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/MultiSwitch.java trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/MultiToggle.java trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/PageMasterReference.java trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/PageNumber.java trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/PageNumberCitation.java trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/PageSequence.java trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/PageSequenceMaster.java trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/Region.java trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/RegionAfter.java trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/RegionBefore.java trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/RegionBody.java trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/RegionEnd.java trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/RegionStart.java trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/RepeatablePMAlternatives.java trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/RepeatablePMReference.java trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/RetrieveMarker.java trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/Root.java trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/SimplePageMaster.java trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/SinglePageMasterReference.java trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/StaticContent.java trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/Table.java trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/TableAndCaption.java trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/TableBody.java trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/TableCaption.java trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/TableCell.java trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/TableColumn.java trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/TableFooter.java trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/TableHeader.java trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/TableRow.java trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/Title.java trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/Wrapper.java trunk/foray/foray-fotree/src/java/org/foray/fotree/foray/obj/ContinuedLabel.java trunk/foray/foray-fotree/src/java/org/foray/fotree/svg/obj/SVGElement.java Modified: trunk/foray/foray-fotree/src/java/org/foray/fotree/FONode.java =================================================================== --- trunk/foray/foray-fotree/src/java/org/foray/fotree/FONode.java 2006-06-10 17:05:00 UTC (rev 7512) +++ trunk/foray/foray-fotree/src/java/org/foray/fotree/FONode.java 2006-06-10 17:29:41 UTC (rev 7513) @@ -93,11 +93,6 @@ /** * {@inheritDoc} */ - public abstract byte getNodeType() ; - - /** - * {@inheritDoc} - */ public void setProxy(FONodeProxy proxy) { this.proxy = proxy; } Modified: trunk/foray/foray-fotree/src/java/org/foray/fotree/FOText.java =================================================================== --- trunk/foray/foray-fotree/src/java/org/foray/fotree/FOText.java 2006-06-10 17:05:00 UTC (rev 7512) +++ trunk/foray/foray-fotree/src/java/org/foray/fotree/FOText.java 2006-06-10 17:29:41 UTC (rev 7513) @@ -109,10 +109,6 @@ return true; } - public byte getNodeType() { - return FONode.NODE_TEXT; - } - /** * <p>Filters the raw text as needed to present the text that should appear * in the "refined FO tree". Modified: trunk/foray/foray-fotree/src/java/org/foray/fotree/FObj.java =================================================================== --- trunk/foray/foray-fotree/src/java/org/foray/fotree/FObj.java 2006-06-10 17:05:00 UTC (rev 7512) +++ trunk/foray/foray-fotree/src/java/org/foray/fotree/FObj.java 2006-06-10 17:29:41 UTC (rev 7513) @@ -319,13 +319,6 @@ /** * {@inheritDoc} */ - public byte getNodeType() { - return FONode.NODE_FOBJ; - } - - /** - * {@inheritDoc} - */ public void throwException(String message) throws FOTreeException { throwException(getContextMessage(), message); } Modified: trunk/foray/foray-fotree/src/java/org/foray/fotree/FObjMixed.java =================================================================== --- trunk/foray/foray-fotree/src/java/org/foray/fotree/FObjMixed.java 2006-06-10 17:05:00 UTC (rev 7512) +++ trunk/foray/foray-fotree/src/java/org/foray/fotree/FObjMixed.java 2006-06-10 17:29:41 UTC (rev 7513) @@ -133,10 +133,6 @@ return text.getAreaTreeText(context); } - public byte getNodeType() { - return FONode.NODE_FOBJ_MIXED; - } - public boolean canContainBlock() { return true; } Modified: trunk/foray/foray-fotree/src/java/org/foray/fotree/ForeignXML.java =================================================================== --- trunk/foray/foray-fotree/src/java/org/foray/fotree/ForeignXML.java 2006-06-10 17:05:00 UTC (rev 7512) +++ trunk/foray/foray-fotree/src/java/org/foray/fotree/ForeignXML.java 2006-06-10 17:29:41 UTC (rev 7513) @@ -99,10 +99,6 @@ */ protected abstract Document createDOMDocument(); - public byte getNodeType() { - return FONode.NODE_XML_OBJ; - } - public Document getDocument() { return domDocument; } Modified: trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/AbstractTableBody.java =================================================================== --- trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/AbstractTableBody.java 2006-06-10 17:05:00 UTC (rev 7512) +++ trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/AbstractTableBody.java 2006-06-10 17:29:41 UTC (rev 7513) @@ -24,7 +24,6 @@ package org.foray.fotree.fo.obj; -import org.foray.fotree.FONode; import org.foray.fotree.FObj; import org.foray.fotree.Namespace; import org.foray.fotree.PropertyList; @@ -42,10 +41,6 @@ } } - public byte getNodeType() { - return FONode.NODE_ABSTRACT_TABLE_BODY; - } - public Namespace getNamespace() { return this.getFOTreeBuilder().getFONamespace(); } Modified: trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/BasicLink.java =================================================================== --- trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/BasicLink.java 2006-06-10 17:05:00 UTC (rev 7512) +++ trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/BasicLink.java 2006-06-10 17:29:41 UTC (rev 7513) @@ -24,7 +24,6 @@ package org.foray.fotree.fo.obj; -import org.foray.fotree.FONode; import org.foray.fotree.FObj; import org.foray.fotree.PropertyList; @@ -64,10 +63,6 @@ return "basic-link"; } - public byte getNodeType() { - return FONode.NODE_BASIC_LINK; - } - /** * Override the FONode method, because "this" is the object being sought. */ Modified: trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/BidiOverride.java =================================================================== --- trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/BidiOverride.java 2006-06-10 17:05:00 UTC (rev 7512) +++ trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/BidiOverride.java 2006-06-10 17:29:41 UTC (rev 7513) @@ -24,7 +24,6 @@ package org.foray.fotree.fo.obj; -import org.foray.fotree.FONode; import org.foray.fotree.FObj; import org.foray.fotree.Namespace; import org.foray.fotree.PropertyList; @@ -47,10 +46,6 @@ return "bidi-override"; } - public byte getNodeType() { - return FONode.NODE_BIDI_OVERRIDE; - } - public Namespace getNamespace() { return this.getFOTreeBuilder().getFONamespace(); } Modified: trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/Block.java =================================================================== --- trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/Block.java 2006-06-10 17:05:00 UTC (rev 7512) +++ trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/Block.java 2006-06-10 17:29:41 UTC (rev 7513) @@ -62,10 +62,6 @@ return this; } - public byte getNodeType() { - return FONode.NODE_BLOCK; - } - public Namespace getNamespace() { return this.getFOTreeBuilder().getFONamespace(); } Modified: trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/BlockContainer.java =================================================================== --- trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/BlockContainer.java 2006-06-10 17:05:00 UTC (rev 7512) +++ trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/BlockContainer.java 2006-06-10 17:29:41 UTC (rev 7513) @@ -24,7 +24,6 @@ package org.foray.fotree.fo.obj; -import org.foray.fotree.FONode; import org.foray.fotree.FObj; import org.foray.fotree.Namespace; import org.foray.fotree.PropertyList; @@ -54,10 +53,6 @@ return true; } - public byte getNodeType() { - return FONode.NODE_BLOCK_CONTAINER; - } - public Namespace getNamespace() { return this.getFOTreeBuilder().getFONamespace(); } Modified: trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/Bookmark.java =================================================================== --- trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/Bookmark.java 2006-06-10 17:05:00 UTC (rev 7512) +++ trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/Bookmark.java 2006-06-10 17:29:41 UTC (rev 7513) @@ -106,10 +106,6 @@ return "bookmark"; } - public byte getNodeType() { - return FONode.NODE_BOOKMARK; - } - public Namespace getNamespace() { return this.getFOTreeBuilder().getFONamespace(); } Modified: trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/BookmarkTitle.java =================================================================== --- trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/BookmarkTitle.java 2006-06-10 17:05:00 UTC (rev 7512) +++ trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/BookmarkTitle.java 2006-06-10 17:29:41 UTC (rev 7513) @@ -24,7 +24,6 @@ package org.foray.fotree.fo.obj; -import org.foray.fotree.FONode; import org.foray.fotree.FObj; import org.foray.fotree.FObjMixed; import org.foray.fotree.Namespace; @@ -53,10 +52,6 @@ return "bookmark-title"; } - public byte getNodeType() { - return FONode.NODE_BOOKMARK_TITLE; - } - public Namespace getNamespace() { return this.getFOTreeBuilder().getFONamespace(); } Modified: trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/BookmarkTree.java =================================================================== --- trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/BookmarkTree.java 2006-06-10 17:05:00 UTC (rev 7512) +++ trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/BookmarkTree.java 2006-06-10 17:29:41 UTC (rev 7513) @@ -24,7 +24,6 @@ package org.foray.fotree.fo.obj; -import org.foray.fotree.FONode; import org.foray.fotree.FObj; import org.foray.fotree.Namespace; import org.foray.fotree.PropertyList; @@ -63,10 +62,6 @@ return "bookmark-tree"; } - public byte getNodeType() { - return FONode.NODE_BOOKMARK_TREE; - } - public Namespace getNamespace() { return this.getFOTreeBuilder().getFONamespace(); } Modified: trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/Character.java =================================================================== --- trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/Character.java 2006-06-10 17:05:00 UTC (rev 7512) +++ trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/Character.java 2006-06-10 17:29:41 UTC (rev 7513) @@ -24,7 +24,6 @@ package org.foray.fotree.fo.obj; -import org.foray.fotree.FONode; import org.foray.fotree.FOText; import org.foray.fotree.FObj; import org.foray.fotree.Namespace; @@ -49,10 +48,6 @@ return "character"; } - public byte getNodeType() { - return FONode.NODE_CHARACTER; - } - public Namespace getNamespace() { return this.getFOTreeBuilder().getFONamespace(); } Modified: trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/ColorProfile.java =================================================================== --- trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/ColorProfile.java 2006-06-10 17:05:00 UTC (rev 7512) +++ trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/ColorProfile.java 2006-06-10 17:29:41 UTC (rev 7513) @@ -24,7 +24,6 @@ package org.foray.fotree.fo.obj; -import org.foray.fotree.FONode; import org.foray.fotree.FObj; import org.foray.fotree.Namespace; import org.foray.fotree.PropertyList; @@ -47,10 +46,6 @@ return "color-profile"; } - public byte getNodeType() { - return FONode.NODE_COLOR_PROFILE; - } - public Namespace getNamespace() { return this.getFOTreeBuilder().getFONamespace(); } Modified: trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/ConditionalPageMasterReference.java =================================================================== --- trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/ConditionalPageMasterReference.java 2006-06-10 17:05:00 UTC (rev 7512) +++ trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/ConditionalPageMasterReference.java 2006-06-10 17:29:41 UTC (rev 7513) @@ -26,7 +26,6 @@ package org.foray.fotree.fo.obj; -import org.foray.fotree.FONode; import org.foray.fotree.FObj; import org.foray.fotree.Namespace; import org.foray.fotree.PropertyList; @@ -122,10 +121,6 @@ return true; } - public byte getNodeType() { - return FONode.NODE_COND_PAGE_MASTER_REF; - } - public Namespace getNamespace() { return this.getFOTreeBuilder().getFONamespace(); } Modified: trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/Declarations.java =================================================================== --- trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/Declarations.java 2006-06-10 17:05:00 UTC (rev 7512) +++ trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/Declarations.java 2006-06-10 17:29:41 UTC (rev 7513) @@ -24,7 +24,6 @@ package org.foray.fotree.fo.obj; -import org.foray.fotree.FONode; import org.foray.fotree.FObj; import org.foray.fotree.Namespace; import org.foray.fotree.PropertyList; @@ -46,10 +45,6 @@ return "declarations"; } - public byte getNodeType() { - return FONode.NODE_DECLARATIONS; - } - public Namespace getNamespace() { return this.getFOTreeBuilder().getFONamespace(); } Modified: trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/ExternalGraphic.java =================================================================== --- trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/ExternalGraphic.java 2006-06-10 17:05:00 UTC (rev 7512) +++ trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/ExternalGraphic.java 2006-06-10 17:29:41 UTC (rev 7513) @@ -24,7 +24,6 @@ package org.foray.fotree.fo.obj; -import org.foray.fotree.FONode; import org.foray.fotree.FObj; import org.foray.fotree.FObjScaled; import org.foray.fotree.Namespace; @@ -67,10 +66,6 @@ return "external-graphic"; } - public byte getNodeType() { - return FONode.NODE_EXTERNAL_GRAPHIC; - } - public Namespace getNamespace() { return this.getFOTreeBuilder().getFONamespace(); } Modified: trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/Float.java =================================================================== --- trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/Float.java 2006-06-10 17:05:00 UTC (rev 7512) +++ trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/Float.java 2006-06-10 17:29:41 UTC (rev 7513) @@ -24,7 +24,6 @@ package org.foray.fotree.fo.obj; -import org.foray.fotree.FONode; import org.foray.fotree.FObj; import org.foray.fotree.Namespace; import org.foray.fotree.PropertyList; @@ -46,10 +45,6 @@ return "float"; } - public byte getNodeType() { - return FONode.NODE_FLOAT; - } - public Namespace getNamespace() { return this.getFOTreeBuilder().getFONamespace(); } Modified: trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/Flow.java =================================================================== --- trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/Flow.java 2006-06-10 17:05:00 UTC (rev 7512) +++ trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/Flow.java 2006-06-10 17:29:41 UTC (rev 7513) @@ -24,7 +24,6 @@ package org.foray.fotree.fo.obj; -import org.foray.fotree.FONode; import org.foray.fotree.FObj; import org.foray.fotree.PropertyList; @@ -84,10 +83,6 @@ return this; } - public byte getNodeType() { - return FONode.NODE_FLOW; - } - public FONodeProxy makeProxy(ProxyFactory factory) { return factory.makeProxy(this); } Modified: trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/Footnote.java =================================================================== --- trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/Footnote.java 2006-06-10 17:05:00 UTC (rev 7512) +++ trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/Footnote.java 2006-06-10 17:29:41 UTC (rev 7513) @@ -24,7 +24,6 @@ package org.foray.fotree.fo.obj; -import org.foray.fotree.FONode; import org.foray.fotree.FObj; import org.foray.fotree.Namespace; import org.foray.fotree.PropertyList; @@ -45,10 +44,6 @@ return "footnote"; } - public byte getNodeType() { - return FONode.NODE_FOOTNOTE; - } - public Namespace getNamespace() { return this.getFOTreeBuilder().getFONamespace(); } Modified: trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/FootnoteBody.java =================================================================== --- trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/FootnoteBody.java 2006-06-10 17:05:00 UTC (rev 7512) +++ trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/FootnoteBody.java 2006-06-10 17:29:41 UTC (rev 7513) @@ -24,7 +24,6 @@ package org.foray.fotree.fo.obj; -import org.foray.fotree.FONode; import org.foray.fotree.FObj; import org.foray.fotree.Namespace; import org.foray.fotree.PropertyList; @@ -46,10 +45,6 @@ return "footnote-body"; } - public byte getNodeType() { - return FONode.NODE_FOOTNOTE_BODY; - } - public Namespace getNamespace() { return this.getFOTreeBuilder().getFONamespace(); } Modified: trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/InitialPropertySet.java =================================================================== --- trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/InitialPropertySet.java 2006-06-10 17:05:00 UTC (rev 7512) +++ trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/InitialPropertySet.java 2006-06-10 17:29:41 UTC (rev 7513) @@ -24,7 +24,6 @@ package org.foray.fotree.fo.obj; -import org.foray.fotree.FONode; import org.foray.fotree.FObj; import org.foray.fotree.Namespace; import org.foray.fotree.PropertyList; @@ -47,10 +46,6 @@ return "initial-property-set"; } - public byte getNodeType() { - return FONode.NODE_INITIAL_PROPERTY_SET; - } - public Namespace getNamespace() { return this.getFOTreeBuilder().getFONamespace(); } Modified: trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/Inline.java =================================================================== --- trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/Inline.java 2006-06-10 17:05:00 UTC (rev 7512) +++ trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/Inline.java 2006-06-10 17:29:41 UTC (rev 7513) @@ -24,7 +24,6 @@ package org.foray.fotree.fo.obj; -import org.foray.fotree.FONode; import org.foray.fotree.FObj; import org.foray.fotree.FObjMixed; import org.foray.fotree.Namespace; @@ -49,10 +48,6 @@ return "inline"; } - public byte getNodeType() { - return FONode.NODE_INLINE; - } - public Namespace getNamespace() { return this.getFOTreeBuilder().getFONamespace(); } Modified: trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/InlineContainer.java =================================================================== --- trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/InlineContainer.java 2006-06-10 17:05:00 UTC (rev 7512) +++ trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/InlineContainer.java 2006-06-10 17:29:41 UTC (rev 7513) @@ -24,7 +24,6 @@ package org.foray.fotree.fo.obj; -import org.foray.fotree.FONode; import org.foray.fotree.FObj; import org.foray.fotree.Namespace; import org.foray.fotree.PropertyList; @@ -47,10 +46,6 @@ return "inline-container"; } - public byte getNodeType() { - return FONode.NODE_INLINE_CONTAINER; - } - public Namespace getNamespace() { return this.getFOTreeBuilder().getFONamespace(); } Modified: trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/InstreamForeignObject.java =================================================================== --- trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/InstreamForeignObject.java 2006-06-10 17:05:00 UTC (rev 7512) +++ trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/InstreamForeignObject.java 2006-06-10 17:29:41 UTC (rev 7513) @@ -24,7 +24,6 @@ package org.foray.fotree.fo.obj; -import org.foray.fotree.FONode; import org.foray.fotree.FObj; import org.foray.fotree.FObjScaled; import org.foray.fotree.ForeignXML; @@ -60,10 +59,6 @@ return "instream-foreign-object"; } - public byte getNodeType() { - return FONode.NODE_INSTREAM_FOREIGN_OBJECT; - } - public Namespace getNamespace() { return this.getFOTreeBuilder().getFONamespace(); } Modified: trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/LayoutMasterSet.java =================================================================== --- trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/LayoutMasterSet.java 2006-06-10 17:05:00 UTC (rev 7512) +++ trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/LayoutMasterSet.java 2006-06-10 17:29:41 UTC (rev 7513) @@ -24,7 +24,6 @@ package org.foray.fotree.fo.obj; -import org.foray.fotree.FONode; import org.foray.fotree.FObj; import org.foray.fotree.Namespace; import org.foray.fotree.PropertyList; @@ -121,10 +120,6 @@ return (regionClass != null); } - public byte getNodeType() { - return FONode.NODE_LAYOUT_MASTER_SET; - } - public Namespace getNamespace() { return this.getFOTreeBuilder().getFONamespace(); } Modified: trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/Leader.java =================================================================== --- trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/Leader.java 2006-06-10 17:05:00 UTC (rev 7512) +++ trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/Leader.java 2006-06-10 17:29:41 UTC (rev 7513) @@ -24,7 +24,6 @@ package org.foray.fotree.fo.obj; -import org.foray.fotree.FONode; import org.foray.fotree.FObj; import org.foray.fotree.FObjMixed; import org.foray.fotree.Namespace; @@ -70,10 +69,6 @@ return "leader"; } - public byte getNodeType() { - return FONode.NODE_LEADER; - } - public Namespace getNamespace() { return this.getFOTreeBuilder().getFONamespace(); } Modified: trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/ListBlock.java =================================================================== --- trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/ListBlock.java 2006-06-10 17:05:00 UTC (rev 7512) +++ trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/ListBlock.java 2006-06-10 17:29:41 UTC (rev 7513) @@ -24,7 +24,6 @@ package org.foray.fotree.fo.obj; -import org.foray.fotree.FONode; import org.foray.fotree.FObj; import org.foray.fotree.Namespace; import org.foray.fotree.PropertyList; @@ -44,10 +43,6 @@ return "list-block"; } - public byte getNodeType() { - return FONode.NODE_LIST_BLOCK; - } - public Namespace getNamespace() { return this.getFOTreeBuilder().getFONamespace(); } Modified: trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/ListItem.java =================================================================== --- trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/ListItem.java 2006-06-10 17:05:00 UTC (rev 7512) +++ trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/ListItem.java 2006-06-10 17:29:41 UTC (rev 7513) @@ -24,7 +24,6 @@ package org.foray.fotree.fo.obj; -import org.foray.fotree.FONode; import org.foray.fotree.FObj; import org.foray.fotree.Namespace; import org.foray.fotree.PropertyList; @@ -66,10 +65,6 @@ return "list-item"; } - public byte getNodeType() { - return FONode.NODE_LIST_ITEM; - } - public Namespace getNamespace() { return this.getFOTreeBuilder().getFONamespace(); } Modified: trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/ListItemBody.java =================================================================== --- trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/ListItemBody.java 2006-06-10 17:05:00 UTC (rev 7512) +++ trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/ListItemBody.java 2006-06-10 17:29:41 UTC (rev 7513) @@ -24,7 +24,6 @@ package org.foray.fotree.fo.obj; -import org.foray.fotree.FONode; import org.foray.fotree.FObj; import org.foray.fotree.Namespace; import org.foray.fotree.PropertyList; @@ -46,10 +45,6 @@ return "list-item-body"; } - public byte getNodeType() { - return FONode.NODE_LIST_ITEM_BODY; - } - public Namespace getNamespace() { return this.getFOTreeBuilder().getFONamespace(); } Modified: trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/ListItemLabel.java =================================================================== --- trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/ListItemLabel.java 2006-06-10 17:05:00 UTC (rev 7512) +++ trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/ListItemLabel.java 2006-06-10 17:29:41 UTC (rev 7513) @@ -24,7 +24,6 @@ package org.foray.fotree.fo.obj; -import org.foray.fotree.FONode; import org.foray.fotree.FObj; import org.foray.fotree.Namespace; import org.foray.fotree.PropertyList; @@ -47,10 +46,6 @@ return "list-item-label"; } - public byte getNodeType() { - return FONode.NODE_LIST_ITEM_LABEL; - } - public Namespace getNamespace() { return this.getFOTreeBuilder().getFONamespace(); } Modified: trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/Marker.java =================================================================== --- trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/Marker.java 2006-06-10 17:05:00 UTC (rev 7512) +++ trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/Marker.java 2006-06-10 17:29:41 UTC (rev 7513) @@ -91,10 +91,6 @@ return "marker"; } - public byte getNodeType() { - return FONode.NODE_MARKER; - } - public Namespace getNamespace() { return this.getFOTreeBuilder().getFONamespace(); } Modified: trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/MultiCase.java =================================================================== --- trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/MultiCase.java 2006-06-10 17:05:00 UTC (rev 7512) +++ trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/MultiCase.java 2006-06-10 17:29:41 UTC (rev 7513) @@ -24,7 +24,6 @@ package org.foray.fotree.fo.obj; -import org.foray.fotree.FONode; import org.foray.fotree.FObj; import org.foray.fotree.Namespace; import org.foray.fotree.PropertyList; @@ -47,10 +46,6 @@ return "multi-case"; } - public byte getNodeType() { - return FONode.NODE_MULTI_CASE; - } - public Namespace getNamespace() { return this.getFOTreeBuilder().getFONamespace(); } Modified: trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/MultiProperties.java =================================================================== --- trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/MultiProperties.java 2006-06-10 17:05:00 UTC (rev 7512) +++ trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/MultiProperties.java 2006-06-10 17:29:41 UTC (rev 7513) @@ -24,7 +24,6 @@ package org.foray.fotree.fo.obj; -import org.foray.fotree.FONode; import org.foray.fotree.FObj; import org.foray.fotree.Namespace; import org.foray.fotree.PropertyList; @@ -47,10 +46,6 @@ return "multi-properties"; } - public byte getNodeType() { - return FONode.NODE_MULTI_PROPERTIES; - } - public Namespace getNamespace() { return this.getFOTreeBuilder().getFONamespace(); } Modified: trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/MultiPropertySet.java =================================================================== --- trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/MultiPropertySet.java 2006-06-10 17:05:00 UTC (rev 7512) +++ trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/MultiPropertySet.java 2006-06-10 17:29:41 UTC (rev 7513) @@ -24,7 +24,6 @@ package org.foray.fotree.fo.obj; -import org.foray.fotree.FONode; import org.foray.fotree.FObj; import org.foray.fotree.Namespace; import org.foray.fotree.PropertyList; @@ -47,10 +46,6 @@ return "multi-property-set"; } - public byte getNodeType() { - return FONode.NODE_MULTI_PROPERTY_SET; - } - public Namespace getNamespace() { return this.getFOTreeBuilder().getFONamespace(); } Modified: trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/MultiSwitch.java =================================================================== --- trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/MultiSwitch.java 2006-06-10 17:05:00 UTC (rev 7512) +++ trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/MultiSwitch.java 2006-06-10 17:29:41 UTC (rev 7513) @@ -24,7 +24,6 @@ package org.foray.fotree.fo.obj; -import org.foray.fotree.FONode; import org.foray.fotree.FObj; import org.foray.fotree.Namespace; import org.foray.fotree.PropertyList; @@ -47,10 +46,6 @@ return "multi-switch"; } - public byte getNodeType() { - return FONode.NODE_MULTI_SWITCH; - } - public Namespace getNamespace() { return this.getFOTreeBuilder().getFONamespace(); } Modified: trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/MultiToggle.java =================================================================== --- trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/MultiToggle.java 2006-06-10 17:05:00 UTC (rev 7512) +++ trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/MultiToggle.java 2006-06-10 17:29:41 UTC (rev 7513) @@ -24,7 +24,6 @@ package org.foray.fotree.fo.obj; -import org.foray.fotree.FONode; import org.foray.fotree.FObj; import org.foray.fotree.Namespace; import org.foray.fotree.PropertyList; @@ -48,10 +47,6 @@ return "multi-toggle"; } - public byte getNodeType() { - return FONode.NODE_MULTI_TOGGLE; - } - public Namespace getNamespace() { return this.getFOTreeBuilder().getFONamespace(); } Modified: trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/PageMasterReference.java =================================================================== --- trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/PageMasterReference.java 2006-06-10 17:05:00 UTC (rev 7512) +++ trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/PageMasterReference.java 2006-06-10 17:29:41 UTC (rev 7513) @@ -24,7 +24,6 @@ package org.foray.fotree.fo.obj; -import org.foray.fotree.FONode; import org.foray.fotree.FObj; import org.foray.fotree.PropertyList; @@ -44,8 +43,4 @@ super(parent, propertyList, systemId, line, column); } - public byte getNodeType() { - return FONode.NODE_PAGE_MASTER_REFERENCE; - } - } Modified: trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/PageNumber.java =================================================================== --- trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/PageNumber.java 2006-06-10 17:05:00 UTC (rev 7512) +++ trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/PageNumber.java 2006-06-10 17:29:41 UTC (rev 7513) @@ -24,7 +24,6 @@ package org.foray.fotree.fo.obj; -import org.foray.fotree.FONode; import org.foray.fotree.FObj; import org.foray.fotree.Namespace; import org.foray.fotree.PropertyList; @@ -47,10 +46,6 @@ return "page-number"; } - public byte getNodeType() { - return FONode.NODE_PAGE_NUMBER; - } - public Namespace getNamespace() { return this.getFOTreeBuilder().getFONamespace(); } Modified: trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/PageNumberCitation.java =================================================================== --- trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/PageNumberCitation.java 2006-06-10 17:05:00 UTC (rev 7512) +++ trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/PageNumberCitation.java 2006-06-10 17:29:41 UTC (rev 7513) @@ -24,7 +24,6 @@ package org.foray.fotree.fo.obj; -import org.foray.fotree.FONode; import org.foray.fotree.FObj; import org.foray.fotree.Namespace; import org.foray.fotree.PropertyList; @@ -50,10 +49,6 @@ return "page-number-citation"; } - public byte getNodeType() { - return FONode.NODE_PAGE_NUMBER_CITATION; - } - public Namespace getNamespace() { return this.getFOTreeBuilder().getFONamespace(); } Modified: trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/PageSequence.java =================================================================== --- trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/PageSequence.java 2006-06-10 17:05:00 UTC (rev 7512) +++ trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/PageSequence.java 2006-06-10 17:29:41 UTC (rev 7513) @@ -24,7 +24,6 @@ package org.foray.fotree.fo.obj; -import org.foray.fotree.FONode; import org.foray.fotree.FObj; import org.foray.fotree.Namespace; import org.foray.fotree.PropertyList; @@ -150,10 +149,6 @@ return getStaticContent("xsl-footnote-separator"); } - public byte getNodeType() { - return FONode.NODE_PAGE_SEQUENCE; - } - /** * Override the FONode method, because there will be no BasicLink objects * above this one. Modified: trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/PageSequenceMaster.java =================================================================== --- trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/PageSequenceMaster.java 2006-06-10 17:05:00 UTC (rev 7512) +++ trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/PageSequenceMaster.java 2006-06-10 17:29:41 UTC (rev 7513) @@ -24,7 +24,6 @@ package org.foray.fotree.fo.obj; -import org.foray.fotree.FONode; import org.foray.fotree.FObj; import org.foray.fotree.Namespace; import org.foray.fotree.PropertyList; @@ -153,10 +152,6 @@ return "page-sequence-master"; } - public byte getNodeType() { - return FONode.NODE_PAGE_SEQUENCE_MASTER; - } - public Namespace getNamespace() { return this.getFOTreeBuilder().getFONamespace(); } Modified: trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/Region.java =================================================================== --- trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/Region.java 2006-06-10 17:05:00 UTC (rev 7512) +++ trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/Region.java 2006-06-10 17:29:41 UTC (rev 7513) @@ -24,7 +24,6 @@ package org.foray.fotree.fo.obj; -import org.foray.fotree.FONode; import org.foray.fotree.FObj; import org.foray.fotree.Namespace; import org.foray.fotree.PropertyList; @@ -128,10 +127,6 @@ return true; } - public byte getNodeType() { - return FONode.NODE_REGION; - } - /** * <p>Convenience method reporting the region's horizontal position.</p> * @return The X coordinate of the upper left corner of the region's Modified: trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/RegionAfter.java =================================================================== --- trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/RegionAfter.java 2006-06-10 17:05:00 UTC (rev 7512) +++ trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/RegionAfter.java 2006-06-10 17:29:41 UTC (rev 7513) @@ -24,7 +24,6 @@ package org.foray.fotree.fo.obj; -import org.foray.fotree.FONode; import org.foray.fotree.FObj; import org.foray.fotree.PropertyList; @@ -54,10 +53,6 @@ return "xsl-region-after"; } - public byte getNodeType() { - return FONode.NODE_REGION_AFTER; - } - /** * {@inheritDoc} */ Modified: trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/RegionBefore.java =================================================================== --- trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/RegionBefore.java 2006-06-10 17:05:00 UTC (rev 7512) +++ trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/RegionBefore.java 2006-06-10 17:29:41 UTC (rev 7513) @@ -24,7 +24,6 @@ package org.foray.fotree.fo.obj; -import org.foray.fotree.FONode; import org.foray.fotree.FObj; import org.foray.fotree.PropertyList; @@ -54,10 +53,6 @@ return "xsl-region-before"; } - public byte getNodeType() { - return FONode.NODE_REGION_BEFORE; - } - /** * Inherited documentation: @inheritDoc */ Modified: trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/RegionBody.java =================================================================== --- trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/RegionBody.java 2006-06-10 17:05:00 UTC (rev 7512) +++ trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/RegionBody.java 2006-06-10 17:29:41 UTC (rev 7513) @@ -24,7 +24,6 @@ package org.foray.fotree.fo.obj; -import org.foray.fotree.FONode; import org.foray.fotree.FObj; import org.foray.fotree.PropertyList; @@ -54,10 +53,6 @@ return "xsl-region-body"; } - public byte getNodeType() { - return FONode.NODE_REGION_BODY; - } - /** * Inherited documentation: @inheritDoc */ Modified: trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/RegionEnd.java =================================================================== --- trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/RegionEnd.java 2006-06-10 17:05:00 UTC (rev 7512) +++ trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/RegionEnd.java 2006-06-10 17:29:41 UTC (rev 7513) @@ -24,7 +24,6 @@ package org.foray.fotree.fo.obj; -import org.foray.fotree.FONode; import org.foray.fotree.FObj; import org.foray.fotree.PropertyList; @@ -53,10 +52,6 @@ return "xsl-region-end"; } - public byte getNodeType() { - return FONode.NODE_REGION_END; - } - /** * Inherited documentation: @inheritDoc */ Modified: trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/RegionStart.java =================================================================== --- trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/RegionStart.java 2006-06-10 17:05:00 UTC (rev 7512) +++ trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/RegionStart.java 2006-06-10 17:29:41 UTC (rev 7513) @@ -24,7 +24,6 @@ package org.foray.fotree.fo.obj; -import org.foray.fotree.FONode; import org.foray.fotree.FObj; import org.foray.fotree.PropertyList; @@ -54,10 +53,6 @@ return "xsl-region-start"; } - public byte getNodeType() { - return FONode.NODE_REGION_START; - } - /** * Inherited documentation: @inheritDoc */ Modified: trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/RepeatablePMAlternatives.java =================================================================== --- trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/RepeatablePMAlternatives.java 2006-06-10 17:05:00 UTC (rev 7512) +++ trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/RepeatablePMAlternatives.java 2006-06-10 17:29:41 UTC (rev 7513) @@ -26,7 +26,6 @@ package org.foray.fotree.fo.obj; -import org.foray.fotree.FONode; import org.foray.fotree.FObj; import org.foray.fotree.Namespace; import org.foray.fotree.PropertyList; @@ -101,10 +100,6 @@ this.numberConsumed = 0; } - public byte getNodeType() { - return FONode.NODE_REPEAT_PAGE_MASTER_ALTERN; - } - public Namespace getNamespace() { return this.getFOTreeBuilder().getFONamespace(); } Modified: trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/RepeatablePMReference.java =================================================================== --- trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/RepeatablePMReference.java 2006-06-10 17:05:00 UTC (rev 7512) +++ trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/RepeatablePMReference.java 2006-06-10 17:29:41 UTC (rev 7513) @@ -26,7 +26,6 @@ package org.foray.fotree.fo.obj; -import org.foray.fotree.FONode; import org.foray.fotree.FObj; import org.foray.fotree.Namespace; import org.foray.fotree.PropertyList; @@ -86,10 +85,6 @@ this.numberConsumed = 0; } - public byte getNodeType() { - return FONode.NODE_REPEAT_PAGE_MASTER_REF; - } - public Namespace getNamespace() { return this.getFOTreeBuilder().getFONamespace(); } Modified: trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/RetrieveMarker.java =================================================================== --- trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/RetrieveMarker.java 2006-06-10 17:05:00 UTC (rev 7512) +++ trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/RetrieveMarker.java 2006-06-10 17:29:41 UTC (rev 7513) @@ -24,7 +24,6 @@ package org.foray.fotree.fo.obj; -import org.foray.fotree.FONode; import org.foray.fotree.FObj; import org.foray.fotree.Namespace; import org.foray.fotree.PropertyList; @@ -46,10 +45,6 @@ return "retrieve-marker"; } - public byte getNodeType() { - return FONode.NODE_RETRIEVE_MARKER; - } - public Namespace getNamespace() { return this.getFOTreeBuilder().getFONamespace(); } Modified: trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/Root.java =================================================================== --- trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/Root.java 2006-06-10 17:05:00 UTC (rev 7512) +++ trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/Root.java 2006-06-10 17:29:41 UTC (rev 7513) @@ -24,7 +24,6 @@ package org.foray.fotree.fo.obj; -import org.foray.fotree.FONode; import org.foray.fotree.FOTreeBuilder; import org.foray.fotree.FObj; import org.foray.fotree.Namespace; @@ -96,10 +95,6 @@ return "root"; } - public byte getNodeType() { - return FONode.NODE_ROOT; - } - /** * Overrides the FObj method, because this is the top of the tree. * @return Returns the logger. Modified: trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/SimplePageMaster.java =================================================================== --- trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/SimplePageMaster.java 2006-06-10 17:05:00 UTC (rev 7512) +++ trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/SimplePageMaster.java 2006-06-10 17:29:41 UTC (rev 7513) @@ -24,7 +24,6 @@ package org.foray.fotree.fo.obj; -import org.foray.fotree.FONode; import org.foray.fotree.FObj; import org.foray.fotree.Namespace; import org.foray.fotree.PropertyList; @@ -124,10 +123,6 @@ + " in same simple-page-master."); } - public byte getNodeType() { - return FONode.NODE_SIMPLE_PAGE_MASTER; - } - public org.axsl.foR.fo.RegionBody getRegionBody() { return this.regionBody; } Modified: trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/SinglePageMasterReference.java =================================================================== --- trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/SinglePageMasterReference.java 2006-06-10 17:05:00 UTC (rev 7512) +++ trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/SinglePageMasterReference.java 2006-06-10 17:29:41 UTC (rev 7513) @@ -24,7 +24,6 @@ package org.foray.fotree.fo.obj; -import org.foray.fotree.FONode; import org.foray.fotree.FObj; import org.foray.fotree.Namespace; import org.foray.fotree.PropertyList; @@ -81,10 +80,6 @@ this.isDone = false; } - public byte getNodeType() { - return FONode.NODE_SIMPLE_PAGE_MASTER_REF; - } - public Namespace getNamespace() { return this.getFOTreeBuilder().getFONamespace(); } Modified: trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/StaticContent.java =================================================================== --- trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/StaticContent.java 2006-06-10 17:05:00 UTC (rev 7512) +++ trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/StaticContent.java 2006-06-10 17:29:41 UTC (rev 7513) @@ -24,7 +24,6 @@ package org.foray.fotree.fo.obj; -import org.foray.fotree.FONode; import org.foray.fotree.FObj; import org.foray.fotree.PropertyList; @@ -69,10 +68,6 @@ return "static-content"; } - public byte getNodeType() { - return FONode.NODE_STATIC_CONTENT; - } - public FONodeProxy makeProxy(ProxyFactory factory) { return factory.makeProxy(this); } Modified: trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/Table.java =================================================================== --- trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/Table.java 2006-06-10 17:05:00 UTC (rev 7512) +++ trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/Table.java 2006-06-10 17:29:41 UTC (rev 7513) @@ -148,10 +148,6 @@ return this; } - public byte getNodeType() { - return FONode.NODE_TABLE; - } - public Namespace getNamespace() { return this.getFOTreeBuilder().getFONamespace(); } Modified: trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/TableAndCaption.java =================================================================== --- trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/TableAndCaption.java 2006-06-10 17:05:00 UTC (rev 7512) +++ trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/TableAndCaption.java 2006-06-10 17:29:41 UTC (rev 7513) @@ -24,7 +24,6 @@ package org.foray.fotree.fo.obj; -import org.foray.fotree.FONode; import org.foray.fotree.FObj; import org.foray.fotree.Namespace; import org.foray.fotree.PropertyList; @@ -48,10 +47,6 @@ return "table-and-caption"; } - public byte getNodeType() { - return FONode.NODE_TABLE_AND_CAPTION; - } - public Namespace getNamespace() { return this.getFOTreeBuilder().getFONamespace(); } Modified: trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/TableBody.java =================================================================== --- trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/TableBody.java 2006-06-10 17:05:00 UTC (rev 7512) +++ trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/TableBody.java 2006-06-10 17:29:41 UTC (rev 7513) @@ -24,7 +24,6 @@ package org.foray.fotree.fo.obj; -import org.foray.fotree.FONode; import org.foray.fotree.FObj; import org.foray.fotree.PropertyList; @@ -45,10 +44,6 @@ return "table-body"; } - public byte getNodeType() { - return FONode.NODE_TABLE_BODY; - } - public FONodeProxy makeProxy(ProxyFactory factory) { return factory.makeProxy(this); } Modified: trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/TableCaption.java =================================================================== --- trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/TableCaption.java 2006-06-10 17:05:00 UTC (rev 7512) +++ trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/TableCaption.java 2006-06-10 17:29:41 UTC (rev 7513) @@ -24,7 +24,6 @@ package org.foray.fotree.fo.obj; -import org.foray.fotree.FONode; import org.foray.fotree.FObj; import org.foray.fotree.Namespace; import org.foray.fotree.PropertyList; @@ -48,10 +47,6 @@ return "table-caption"; } - public byte getNodeType() { - return FONode.NODE_TABLE_CAPTION; - } - public Namespace getNamespace() { return this.getFOTreeBuilder().getFONamespace(); } Modified: trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/TableCell.java =================================================================== --- trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/TableCell.java 2006-06-10 17:05:00 UTC (rev 7512) +++ trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/TableCell.java 2006-06-10 17:29:41 UTC (rev 7513) @@ -24,7 +24,6 @@ package org.foray.fotree.fo.obj; -import org.foray.fotree.FONode; import org.foray.fotree.FObj; import org.foray.fotree.Namespace; import org.foray.fotree.PropertyList; @@ -95,10 +94,6 @@ return null; } - public byte getNodeType() { - return FONode.NODE_TABLE_CELL; - } - public Namespace getNamespace() { return this.getFOTreeBuilder().getFONamespace(); } Modified: trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/TableColumn.java =================================================================== --- trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/TableColumn.java 2006-06-10 17:05:00 UTC (rev 7512) +++ trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/TableColumn.java 2006-06-10 17:29:41 UTC (rev 7513) @@ -24,7 +24,6 @@ package org.foray.fotree.fo.obj; -import org.foray.fotree.FONode; import org.foray.fotree.FObj; import org.foray.fotree.Namespace; import org.foray.fotree.PropertyList; @@ -99,10 +98,6 @@ return null; } - public byte getNodeType() { - return FONode.NODE_TABLE_COLUMN; - } - public Namespace getNamespace() { return this.getFOTreeBuilder().getFONamespace(); } Modified: trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/TableFooter.java =================================================================== --- trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/TableFooter.java 2006-06-10 17:05:00 UTC (rev 7512) +++ trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/TableFooter.java 2006-06-10 17:29:41 UTC (rev 7513) @@ -24,7 +24,6 @@ package org.foray.fotree.fo.obj; -import org.foray.fotree.FONode; import org.foray.fotree.FObj; import org.foray.fotree.PropertyList; @@ -45,10 +44,6 @@ return "table-footer"; } - public byte getNodeType() { - return FONode.NODE_TABLE_FOOTER; - } - public FONodeProxy makeProxy(ProxyFactory factory) { return factory.makeProxy(this); } Modified: trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/TableHeader.java =================================================================== --- trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/TableHeader.java 2006-06-10 17:05:00 UTC (rev 7512) +++ trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/TableHeader.java 2006-06-10 17:29:41 UTC (rev 7513) @@ -24,7 +24,6 @@ package org.foray.fotree.fo.obj; -import org.foray.fotree.FONode; import org.foray.fotree.FObj; import org.foray.fotree.PropertyList; @@ -45,10 +44,6 @@ return "table-header"; } - public byte getNodeType() { - return FONode.NODE_TABLE_HEADER; - } - public FONodeProxy makeProxy(ProxyFactory factory) { return factory.makeProxy(this); } Modified: trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/TableRow.java =================================================================== --- trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/TableRow.java 2006-06-10 17:05:00 UTC (rev 7512) +++ trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/TableRow.java 2006-06-10 17:29:41 UTC (rev 7513) @@ -24,7 +24,6 @@ package org.foray.fotree.fo.obj; -import org.foray.fotree.FONode; import org.foray.fotree.FObj; import org.foray.fotree.Namespace; import org.foray.fotree.PropertyList; @@ -48,10 +47,6 @@ return "table-row"; } - public byte getNodeType() { - return FONode.NODE_TABLE_ROW; - } - public Namespace getNamespace() { return this.getFOTreeBuilder().getFONamespace(); } Modified: trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/Title.java =================================================================== --- trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/Title.java 2006-06-10 17:05:00 UTC (rev 7512) +++ trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/Title.java 2006-06-10 17:29:41 UTC (rev 7513) @@ -24,7 +24,6 @@ package org.foray.fotree.fo.obj; -import org.foray.fotree.FONode; import org.foray.fotree.FObj; import org.foray.fotree.Namespace; import org.foray.fotree.PropertyList; @@ -48,10 +47,6 @@ return "title"; } - public byte getNodeType() { - return FONode.NODE_TITLE; - } - public Namespace getNamespace() { return this.getFOTreeBuilder().getFONamespace(); } Modified: trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/Wrapper.java =================================================================== --- trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/Wrapper.java 2006-06-10 17:05:00 UTC (rev 7512) +++ trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/Wrapper.java 2006-06-10 17:29:41 UTC (rev 7513) @@ -24,7 +24,6 @@ package org.foray.fotree.fo.obj; -import org.foray.fotree.FONode; import org.foray.fotree.FObj; import org.foray.fotree.FObjMixed; import org.foray.fotree.Namespace; @@ -54,10 +53,6 @@ return "wrapper"; } - public byte getNodeType() { - return FONode.NODE_WRAPPER; - } - public Namespace getNamespace() { return this.getFOTreeBuilder().getFONamespace(); } Modified: trunk/foray/foray-fotree/src/java/org/foray/fotree/foray/obj/ContinuedLabel.java =================================================================== --- trunk/foray/foray-fotree/src/java/org/foray/fotree/foray/obj/ContinuedLabel.java 2006-06-10 17:05:00 UTC (rev 7512) +++ trunk/foray/foray-fotree/src/java/org/foray/fotree/foray/obj/ContinuedLabel.java 2006-06-10 17:29:41 UTC (rev 7513) @@ -24,7 +24,6 @@ package org.foray.fotree.foray.obj; -import org.foray.fotree.FONode; import org.foray.fotree.FObj; import org.foray.fotree.Namespace; import org.foray.fotree.PropertyList; @@ -49,10 +48,6 @@ return "continued-label"; } - public byte getNodeType() { - return FONode.NODE_CONTINUED_LABEL; - } - public Namespace getNamespace() { return this.getFOTreeBuilder().getExtensionNamespace(); } Modified: trunk/foray/foray-fotree/src/java/org/foray/fotree/svg/obj/SVGElement.java =================================================================== --- trunk/foray/foray-fotree/src/java/org/foray/fotree/svg/obj/SVGElement.java 2006-06-10 17:05:00 UTC (rev 7512) +++ trunk/foray/foray-fotree/src/java/org/foray/fotree/svg/obj/SVGElement.java 2006-06-10 17:29:41 UTC (rev 7513) @@ -25,7 +25,6 @@ package org.foray.fotree.svg.obj; import org.foray.common.SVGUserAgent; -import org.foray.fotree.FONode; import org.foray.fotree.FObj; import org.foray.fotree.FObjScaled; import org.foray.fotree.ForeignXML; @@ -75,10 +74,6 @@ return impl.createDocument(svgNS, "svg", null); } - public byte getNodeType() { - return FONode.NODE_SVG_ELEMENT; - } - public Namespace getNamespace() { return this.getFOTreeBuilder().getSVGNamespace(); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
|
From: <vic...@us...> - 2006-06-10 17:05:08
|
Revision: 7512 Author: victormote Date: 2006-06-10 10:05:00 -0700 (Sat, 10 Jun 2006) ViewCVS: http://svn.sourceforge.net/foray/?rev=7512&view=rev Log Message: ----------- Use new abstract factory to create proxy instances instead of numeric constants. Modified Paths: -------------- trunk/foray/foray-pioneer/src/java/org/foray/pioneer/PioneerLS.java Modified: trunk/foray/foray-pioneer/src/java/org/foray/pioneer/PioneerLS.java =================================================================== --- trunk/foray/foray-pioneer/src/java/org/foray/pioneer/PioneerLS.java 2006-06-10 17:03:25 UTC (rev 7511) +++ trunk/foray/foray-pioneer/src/java/org/foray/pioneer/PioneerLS.java 2006-06-10 17:05:00 UTC (rev 7512) @@ -24,32 +24,40 @@ package org.foray.pioneer; +import org.foray.layout.LayoutStrategy; + import org.axsl.areaW.Area; +import org.axsl.areaW.AreaWException; import org.axsl.areaW.NormalBlockArea; import org.axsl.areaW.NormalFlowRA; import org.axsl.areaW.PageArea; -import org.axsl.areaW.RegionRABody; -import org.foray.layout.LayoutStrategy; - -import org.axsl.areaW.AreaWException; import org.axsl.areaW.PageCollection; import org.axsl.areaW.RegionArea; +import org.axsl.areaW.RegionRABody; 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; +import org.axsl.foR.ProxyFactory; import org.axsl.foR.extension.ContinuedLabel; import org.axsl.foR.fo.BasicLink; +import org.axsl.foR.fo.BidiOverride; import org.axsl.foR.fo.Block; import org.axsl.foR.fo.BlockContainer; +import org.axsl.foR.fo.Bookmark; +import org.axsl.foR.fo.BookmarkTitle; import org.axsl.foR.fo.Character; +import org.axsl.foR.fo.ColorProfile; +import org.axsl.foR.fo.Declarations; import org.axsl.foR.fo.ExternalGraphic; +import org.axsl.foR.fo.Float; import org.axsl.foR.fo.Flow; import org.axsl.foR.fo.Footnote; import org.axsl.foR.fo.FootnoteBody; +import org.axsl.foR.fo.InitialPropertySet; import org.axsl.foR.fo.Inline; +import org.axsl.foR.fo.InlineContainer; import org.axsl.foR.fo.InstreamForeignObject; import org.axsl.foR.fo.Leader; import org.axsl.foR.fo.ListBlock; @@ -57,19 +65,36 @@ import org.axsl.foR.fo.ListItemBody; import org.axsl.foR.fo.ListItemLabel; import org.axsl.foR.fo.Marker; +import org.axsl.foR.fo.MultiCase; +import org.axsl.foR.fo.MultiProperties; +import org.axsl.foR.fo.MultiPropertySet; +import org.axsl.foR.fo.MultiSwitch; +import org.axsl.foR.fo.MultiToggle; import org.axsl.foR.fo.PageNumber; import org.axsl.foR.fo.PageNumberCitation; import org.axsl.foR.fo.PageSequence; import org.axsl.foR.fo.Region; +import org.axsl.foR.fo.RegionAfter; +import org.axsl.foR.fo.RegionBefore; +import org.axsl.foR.fo.RegionBody; +import org.axsl.foR.fo.RegionEnd; +import org.axsl.foR.fo.RegionStart; import org.axsl.foR.fo.RetrieveMarker; +import org.axsl.foR.fo.Root; +import org.axsl.foR.fo.SimplePageMaster; import org.axsl.foR.fo.StaticContent; import org.axsl.foR.fo.Table; +import org.axsl.foR.fo.TableAndCaption; import org.axsl.foR.fo.TableBody; +import org.axsl.foR.fo.TableCaption; import org.axsl.foR.fo.TableCell; import org.axsl.foR.fo.TableColumn; import org.axsl.foR.fo.TableFooter; import org.axsl.foR.fo.TableHeader; import org.axsl.foR.fo.TableRow; +import org.axsl.foR.fo.Title; +import org.axsl.foR.fo.Wrapper; +import org.axsl.foR.svg.SVGElement; import org.axsl.text.line.LineBreaker; import org.apache.commons.logging.Log; @@ -96,7 +121,7 @@ * <li>Using the status markers as guides, layout control is returned to the * place where it previously left off.</li> */ -public class PioneerLS extends LayoutStrategy { +public class PioneerLS extends LayoutStrategy implements ProxyFactory { private LineBreaker currentLineBreaker; @@ -256,243 +281,235 @@ } public FONodeProxy makeFObjProxy(FONode node) { - switch (node.getNodeType()) { - case FONode.NODE_ABSTRACT_FLOW: { - return null; - } - case FONode.NODE_CONTINUED_LABEL: { - return new ContinuedLabelPL((ContinuedLabel) node, this); - } - case FONode.NODE_PAGE_SEQUENCE: { - return new NoLayoutPL((PageSequence) node, this); - } - case FONode.NODE_DESTINATION: { - return new NoLayoutPL((FObj) node, this); - } - case FONode.NODE_BOOKMARK_TITLE: { - return new NoLayoutPL((FObj) node, this); - } - case FONode.NODE_BOOKMARK: { - // Outline is a document node & is not laid out. - return new NoLayoutPL((FObj) node, this); - } - case FONode.NODE_COLOR_PROFILE: { - return new NoLayoutPL((FObj) node, this); - } - case FONode.NODE_DECLARATIONS: { - return new NoLayoutPL((FObj) node, this); - } - case FONode.NODE_TEXT: { - return new FOTextPL((FOText) node, this); - } - case FONode.NODE_TITLE: { - return new NoLayoutPL((FObj) node, this); - } - case FONode.NODE_UNKNOWN: { - // This class has been deleted. - return new NoLayoutPL((FObj) node, this); - } - case FONode.NODE_UNKNOWN_XML: { - // This class has been deleted. - return new NoLayoutPL((FObj) node, this); - } - case FONode.NODE_XML_ELEMENT: { - // This class has been deleted. - return new NoLayoutPL((FObj) node, this); - } - case FONode.NODE_SVG: { - return new NoLayoutPL((FObj) node, this); - } - case FONode.NODE_BIDI_OVERRIDE: { - return new NoLayoutPL((FObj) node, this); - } - case FONode.NODE_BLOCK: { - return new BlockPL((Block) node, this); - } - case FONode.NODE_BLOCK_CONTAINER: { - return new BlockContainerPL((BlockContainer) node, this); - } - case FONode.NODE_CHARACTER: { - return new CharacterPL((Character) node, this); - } - case FONode.NODE_EXTERNAL_GRAPHIC: { - return new ExternalGraphicPL((ExternalGraphic) node, this); - } - case FONode.NODE_FLOW: { - return new FlowPL((Flow) node, this); - } - case FONode.NODE_FOOTNOTE: { - return new FootnotePL((Footnote) node, this); - } - case FONode.NODE_FLOAT: { - return new NoLayoutPL((FObj) node, this); - } - case FONode.NODE_FOOTNOTE_BODY: { - return new FootnoteBodyPL((FootnoteBody) node, this); - } - case FONode.NODE_INITIAL_PROPERTY_SET: { - return new NoLayoutPL((FObj) node, this); - } - case FONode.NODE_INLINE: { - return new FObjMixedPL((Inline) node, this); - } - case FONode.NODE_INLINE_CONTAINER: { - return new NoLayoutPL((FObj) node, this); - } - case FONode.NODE_INSTREAM_FOREIGN_OBJECT: { - return new InstreamForeignObjectPL((InstreamForeignObject) node, - this); - } - case FONode.NODE_LEADER: { - return new LeaderPL((Leader) node, this); - } - case FONode.NODE_LIST_BLOCK: { - return new ListBlockPL((ListBlock) node, this); - } - case FONode.NODE_LIST_ITEM: { - return new ListItemPL((ListItem) node, this); - } - case FONode.NODE_LIST_ITEM_BODY: { - return new ListItemBodyPL((ListItemBody) node, this); - } - case FONode.NODE_LIST_ITEM_LABEL: { - return new ListItemLabelPL((ListItemLabel) node, this); - } - case FONode.NODE_MARKER: { - return new MarkerPL((Marker) node, this); - } - case FONode.NODE_MULTI_CASE: { - return new NoLayoutPL((FObj) node, this); - } - case FONode.NODE_MULTI_PROPERTIES: { - return new NoLayoutPL((FObj) node, this); - } - case FONode.NODE_MULTI_PROPERTY_SET: { - return new NoLayoutPL((FObj) node, this); - } - case FONode.NODE_MULTI_SWITCH: { - return new NoLayoutPL((FObj) node, this); - } - case FONode.NODE_MULTI_TOGGLE: { - return new NoLayoutPL((FObj) node, this); - } - case FONode.NODE_PAGE_NUMBER: { - return new PageNumberPL((PageNumber) node, this); - } - case FONode.NODE_PAGE_NUMBER_CITATION: { - return new PageNumberCitationPL((PageNumberCitation) node, this); - } - case FONode.NODE_RETRIEVE_MARKER: { - return new RetrieveMarkerPL((RetrieveMarker) node, this); - } - case FONode.NODE_STATIC_CONTENT: { - return new StaticContentPL((StaticContent) node, this); - } - case FONode.NODE_TABLE: { - return new TablePL((Table) node, this); - } - case FONode.NODE_TABLE_AND_CAPTION: { - return new NoLayoutPL((FObj) node, this); - } - case FONode.NODE_TABLE_BODY: { - return new TableBodyPL((TableBody) node, this); - } - case FONode.NODE_TABLE_CAPTION: { - return new NoLayoutPL((FObj) node, this); - } - case FONode.NODE_TABLE_CELL: { - return new TableCellPL((TableCell) node, this); - } - case FONode.NODE_TABLE_COLUMN: { - return new NoLayoutPL((TableColumn) node, this); - } - case FONode.NODE_TABLE_FOOTER: { - return new TableFooterPL((TableFooter) node, this); - } - case FONode.NODE_TABLE_HEADER: { - return new TableHeaderPL((TableHeader) node, this); - } - case FONode.NODE_TABLE_ROW: { - return new TableRowPL((TableRow) node, this); - } - case FONode.NODE_WRAPPER: { - return new FObjMixedPL((FObjMixed) node, this); - } - case FONode.NODE_COND_PAGE_MASTER_REF: { - return new NoLayoutPL((FObj) node, this); - } - case FONode.NODE_LAYOUT_MASTER_SET: { - return new NoLayoutPL((FObj) node, this); - } - case FONode.NODE_PAGE_SEQUENCE_MASTER: { - return new NoLayoutPL((FObj) node, this); - } - case FONode.NODE_REGION_AFTER: { - return new NoLayoutPL((FObj) node, this); - } - case FONode.NODE_REGION_BEFORE: { - return new NoLayoutPL((FObj) node, this); - } - case FONode.NODE_REGION_BODY: { - return new NoLayoutPL((FObj) node, this); - } - case FONode.NODE_REGION_END: { - return new NoLayoutPL((FObj) node, this); - } - case FONode.NODE_REGION_START: { - return new NoLayoutPL((FObj) node, this); - } - case FONode.NODE_REPEAT_PAGE_MASTER_ALTERN: { - return new NoLayoutPL((FObj) node, this); - } - case FONode.NODE_REPEAT_PAGE_MASTER_REF: { - return new NoLayoutPL((FObj) node, this); - } - case FONode.NODE_ROOT: { - return new NoLayoutPL((FObj) node, this); - } - case FONode.NODE_SIMPLE_PAGE_MASTER: { - return new NoLayoutPL((FObj) node, this); - } - case FONode.NODE_SIMPLE_PAGE_MASTER_REF: { - return new NoLayoutPL((FObj) node, this); - } - case FONode.NODE_EXTENSION: { - return new NoLayoutPL((FObj) node, this); - } - case FONode.NODE_FOBJ: { - return new NoLayoutPL((FObj) node, this); - } - case FONode.NODE_FOBJ_MIXED: { - return new FObjMixedPL((FObjMixed) node, this); - } - case FONode.NODE_TO_BE_IMPLEMENTED: { - return new NoLayoutPL((FObj) node, this); - } - case FONode.NODE_XML_OBJ: { - return new NoLayoutPL((FObj) node, this); - } - case FONode.NODE_BASIC_LINK: { - return new FObjMixedPL((BasicLink) node, this); - } - case FONode.NODE_ABSTRACT_TABLE_BODY: { - return null; - } - case FONode.NODE_REGION: { - return new NoLayoutPL((FObj) node, this); - } - case FONode.NODE_PAGE_MASTER_REFERENCE: { - return new NoLayoutPL((FObj) node, this); - } - case FONode.NODE_SVG_ELEMENT: { - return new NoLayoutPL((FObj) node, this); - } - default: { - return new NoLayoutPL((FObj) node, this); - } - } + return node.makeProxy(this); } + public FONodeProxy makeProxy(FONode node) { + /* TODO: Remove this cast. NoLayoutPL should probably take an FONode + * instead of FObj. */ + return new NoLayoutPL((FObj) node, this); + } + + public FONodeProxy makeProxy(ContinuedLabel node) { + return new ContinuedLabelPL(node, this); + } + + public FONodeProxy makeProxy(PageSequence node) { + return new NoLayoutPL(node, this); + } + + public FONodeProxy makeProxy(BookmarkTitle node) { + return new NoLayoutPL(node, this); + } + + public FONodeProxy makeProxy(Bookmark node) { + return new NoLayoutPL(node, this); + } + + public FONodeProxy makeProxy(ColorProfile node) { + return new NoLayoutPL(node, this); + } + + public FONodeProxy makeProxy(Declarations node) { + return new NoLayoutPL(node, this); + } + + public FONodeProxy makeProxy(FOText node) { + return new FOTextPL(node, this); + } + + public FONodeProxy makeProxy(Title node) { + return new NoLayoutPL(node, this); + } + + public FONodeProxy makeProxy(BidiOverride node) { + return new NoLayoutPL(node, this); + } + + public FONodeProxy makeProxy(Block node) { + return new BlockPL(node, this); + } + + public FONodeProxy makeProxy(BlockContainer node) { + return new BlockContainerPL(node, this); + } + + public FONodeProxy makeProxy(Character node) { + return new CharacterPL(node, this); + } + + public FONodeProxy makeProxy(ExternalGraphic node) { + return new ExternalGraphicPL(node, this); + } + + public FONodeProxy makeProxy(Flow node) { + return new FlowPL(node, this); + } + + public FONodeProxy makeProxy(Footnote node) { + return new FootnotePL(node, this); + } + + public FONodeProxy makeProxy(Float node) { + return new NoLayoutPL(node, this); + } + + public FONodeProxy makeProxy(FootnoteBody node) { + return new FootnoteBodyPL(node, this); + } + + public FONodeProxy makeProxy(InitialPropertySet node) { + return new NoLayoutPL(node, this); + } + + public FONodeProxy makeProxy(Inline node) { + return new FObjMixedPL(node, this); + } + + public FONodeProxy makeProxy(InlineContainer node) { + return new NoLayoutPL(node, this); + } + + public FONodeProxy makeProxy(InstreamForeignObject node) { + return new InstreamForeignObjectPL(node, this); + } + + public FONodeProxy makeProxy(Leader node) { + return new LeaderPL(node, this); + } + + public FONodeProxy makeProxy(ListBlock node) { + return new ListBlockPL(node, this); + } + + public FONodeProxy makeProxy(ListItem node) { + return new ListItemPL(node, this); + } + + public FONodeProxy makeProxy(ListItemBody node) { + return new ListItemBodyPL(node, this); + } + + public FONodeProxy makeProxy(ListItemLabel node) { + return new ListItemLabelPL(node, this); + } + + public FONodeProxy makeProxy(Marker node) { + return new MarkerPL(node, this); + } + + public FONodeProxy makeProxy(MultiCase node) { + return new NoLayoutPL(node, this); + } + + public FONodeProxy makeProxy(MultiProperties node) { + return new NoLayoutPL(node, this); + } + + public FONodeProxy makeProxy(MultiPropertySet node) { + return new NoLayoutPL(node, this); + } + + public FONodeProxy makeProxy(MultiSwitch node) { + return new NoLayoutPL(node, this); + } + + public FONodeProxy makeProxy(MultiToggle node) { + return new NoLayoutPL(node, this); + } + + public FONodeProxy makeProxy(PageNumber node) { + return new PageNumberPL(node, this); + } + + public FONodeProxy makeProxy(PageNumberCitation node) { + return new PageNumberCitationPL(node, this); + } + + public FONodeProxy makeProxy(RetrieveMarker node) { + return new RetrieveMarkerPL(node, this); + } + + public FONodeProxy makeProxy(StaticContent node) { + return new StaticContentPL(node, this); + } + + public FONodeProxy makeProxy(Table node) { + return new TablePL(node, this); + } + + public FONodeProxy makeProxy(TableAndCaption node) { + return new NoLayoutPL(node, this); + } + + public FONodeProxy makeProxy(TableBody node) { + return new TableBodyPL(node, this); + } + + public FONodeProxy makeProxy(TableCaption node) { + return new NoLayoutPL(node, this); + } + + public FONodeProxy makeProxy(TableCell node) { + return new TableCellPL(node, this); + } + + public FONodeProxy makeProxy(TableColumn node) { + return new NoLayoutPL(node, this); + } + + public FONodeProxy makeProxy(TableFooter node) { + return new TableFooterPL(node, this); + } + + public FONodeProxy makeProxy(TableHeader node) { + return new TableHeaderPL(node, this); + } + + public FONodeProxy makeProxy(TableRow node) { + return new TableRowPL(node, this); + } + + public FONodeProxy makeProxy(Wrapper node) { + return new FObjMixedPL(node, this); + } + + public FONodeProxy makeProxy(RegionAfter node) { + return new NoLayoutPL(node, this); + } + + public FONodeProxy makeProxy(RegionBefore node) { + return new NoLayoutPL(node, this); + } + + public FONodeProxy makeProxy(RegionBody node) { + return new NoLayoutPL(node, this); + } + + public FONodeProxy makeProxy(RegionEnd node) { + return new NoLayoutPL(node, this); + } + + public FONodeProxy makeProxy(RegionStart node) { + return new NoLayoutPL(node, this); + } + + public FONodeProxy makeProxy(Root node) { + return new NoLayoutPL(node, this); + } + + public FONodeProxy makeProxy(SimplePageMaster node) { + return new NoLayoutPL(node, this); + } + + public FONodeProxy makeProxy(BasicLink node) { + return new FObjMixedPL(node, this); + } + + public FONodeProxy makeProxy(SVGElement node) { + return new NoLayoutPL(node, this); + } + public static final byte[] listUnsupportedObjectsFO() { return new byte[] { Constants.FO_BIDI_OVERRIDE, This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
|
From: <vic...@us...> - 2006-06-10 17:04:17
|
Revision: 7511 Author: victormote Date: 2006-06-10 10:03:25 -0700 (Sat, 10 Jun 2006) ViewCVS: http://svn.sourceforge.net/foray/?rev=7511&view=rev Log Message: ----------- Conform to axsl change: Add interface for an abstract proxy factory. Modified Paths: -------------- trunk/foray/foray-fotree/src/java/org/foray/fotree/FOText.java trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/BidiOverride.java trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/Block.java trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/BlockContainer.java trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/Bookmark.java trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/BookmarkTitle.java trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/BookmarkTree.java trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/Character.java trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/ColorProfile.java trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/ConditionalPageMasterReference.java trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/Declarations.java trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/ExternalGraphic.java trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/Float.java trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/Flow.java trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/Footnote.java trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/FootnoteBody.java trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/InitialPropertySet.java trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/Inline.java trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/InlineContainer.java trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/InstreamForeignObject.java trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/LayoutMasterSet.java trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/Leader.java trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/ListBlock.java trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/ListItem.java trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/ListItemBody.java trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/ListItemLabel.java trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/Marker.java trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/MultiCase.java trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/MultiProperties.java trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/MultiPropertySet.java trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/MultiSwitch.java trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/MultiToggle.java trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/PageNumber.java trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/PageNumberCitation.java trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/PageSequence.java trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/PageSequenceMaster.java trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/RegionAfter.java trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/RegionBefore.java trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/RegionBody.java trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/RegionEnd.java trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/RegionStart.java trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/RepeatablePMAlternatives.java trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/RepeatablePMReference.java trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/RetrieveMarker.java trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/Root.java trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/SimplePageMaster.java trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/SinglePageMasterReference.java trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/StaticContent.java trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/Table.java trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/TableAndCaption.java trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/TableBody.java trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/TableCaption.java trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/TableCell.java trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/TableColumn.java trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/TableFooter.java trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/TableHeader.java trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/TableRow.java trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/Title.java trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/Wrapper.java trunk/foray/foray-fotree/src/java/org/foray/fotree/foray/obj/ContinuedLabel.java trunk/foray/foray-fotree/src/java/org/foray/fotree/svg/obj/SVGElement.java Modified: trunk/foray/foray-fotree/src/java/org/foray/fotree/FOText.java =================================================================== --- trunk/foray/foray-fotree/src/java/org/foray/fotree/FOText.java 2006-06-10 14:28:33 UTC (rev 7510) +++ trunk/foray/foray-fotree/src/java/org/foray/fotree/FOText.java 2006-06-10 17:03:25 UTC (rev 7511) @@ -28,6 +28,8 @@ import org.axsl.common.Constants; import org.axsl.foR.FOContext; +import org.axsl.foR.FONodeProxy; +import org.axsl.foR.ProxyFactory; import org.axsl.foR.fo.Block; import org.axsl.foR.fo.Leader; import org.axsl.fontR.FontUse; @@ -941,5 +943,9 @@ public int getColumn() { return this.parentFO().getColumn(); } - + + public FONodeProxy makeProxy(ProxyFactory factory) { + return factory.makeProxy(this); + } + } Modified: trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/BidiOverride.java =================================================================== --- trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/BidiOverride.java 2006-06-10 14:28:33 UTC (rev 7510) +++ trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/BidiOverride.java 2006-06-10 17:03:25 UTC (rev 7511) @@ -29,7 +29,9 @@ import org.foray.fotree.Namespace; import org.foray.fotree.PropertyList; +import org.axsl.foR.FONodeProxy; import org.axsl.foR.FOTreeException; +import org.axsl.foR.ProxyFactory; /** */ @@ -57,4 +59,8 @@ return true; } + public FONodeProxy makeProxy(ProxyFactory factory) { + return factory.makeProxy(this); + } + } Modified: trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/Block.java =================================================================== --- trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/Block.java 2006-06-10 14:28:33 UTC (rev 7510) +++ trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/Block.java 2006-06-10 17:03:25 UTC (rev 7511) @@ -32,7 +32,9 @@ import org.foray.fotree.PropertyList; import org.axsl.foR.FOContext; +import org.axsl.foR.FONodeProxy; import org.axsl.foR.FOTreeException; +import org.axsl.foR.ProxyFactory; import java.util.ArrayList; import java.util.List; @@ -153,4 +155,8 @@ return true; } + public FONodeProxy makeProxy(ProxyFactory factory) { + return factory.makeProxy(this); + } + } Modified: trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/BlockContainer.java =================================================================== --- trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/BlockContainer.java 2006-06-10 14:28:33 UTC (rev 7510) +++ trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/BlockContainer.java 2006-06-10 17:03:25 UTC (rev 7511) @@ -29,7 +29,9 @@ import org.foray.fotree.Namespace; import org.foray.fotree.PropertyList; +import org.axsl.foR.FONodeProxy; import org.axsl.foR.FOTreeException; +import org.axsl.foR.ProxyFactory; public class BlockContainer extends FObj implements org.axsl.foR.fo.BlockContainer { @@ -64,4 +66,8 @@ return true; } + public FONodeProxy makeProxy(ProxyFactory factory) { + return factory.makeProxy(this); + } + } Modified: trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/Bookmark.java =================================================================== --- trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/Bookmark.java 2006-06-10 14:28:33 UTC (rev 7510) +++ trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/Bookmark.java 2006-06-10 17:03:25 UTC (rev 7511) @@ -30,7 +30,9 @@ import org.foray.fotree.PropertyList; import org.axsl.foR.FOContext; +import org.axsl.foR.FONodeProxy; import org.axsl.foR.FOTreeException; +import org.axsl.foR.ProxyFactory; /** * An fo:bookmark object in XSL-FO. @@ -119,4 +121,8 @@ return traitInternalDestination(); } + public FONodeProxy makeProxy(ProxyFactory factory) { + return factory.makeProxy(this); + } + } Modified: trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/BookmarkTitle.java =================================================================== --- trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/BookmarkTitle.java 2006-06-10 14:28:33 UTC (rev 7510) +++ trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/BookmarkTitle.java 2006-06-10 17:03:25 UTC (rev 7511) @@ -30,7 +30,9 @@ import org.foray.fotree.Namespace; import org.foray.fotree.PropertyList; +import org.axsl.foR.FONodeProxy; import org.axsl.foR.FOTreeException; +import org.axsl.foR.ProxyFactory; /** * An fo:bookmark-title object in XSL-FO. @@ -66,4 +68,8 @@ return false; } + public FONodeProxy makeProxy(ProxyFactory factory) { + return factory.makeProxy(this); + } + } Modified: trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/BookmarkTree.java =================================================================== --- trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/BookmarkTree.java 2006-06-10 14:28:33 UTC (rev 7510) +++ trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/BookmarkTree.java 2006-06-10 17:03:25 UTC (rev 7511) @@ -29,7 +29,9 @@ import org.foray.fotree.Namespace; import org.foray.fotree.PropertyList; +import org.axsl.foR.FONodeProxy; import org.axsl.foR.FOTreeException; +import org.axsl.foR.ProxyFactory; /** * An fo:bookmark-tree object in XSL-FO. @@ -69,4 +71,8 @@ return this.getFOTreeBuilder().getFONamespace(); } + public FONodeProxy makeProxy(ProxyFactory factory) { + return factory.makeProxy(this); + } + } Modified: trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/Character.java =================================================================== --- trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/Character.java 2006-06-10 14:28:33 UTC (rev 7510) +++ trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/Character.java 2006-06-10 17:03:25 UTC (rev 7511) @@ -31,7 +31,9 @@ import org.foray.fotree.PropertyList; import org.axsl.foR.FOContext; +import org.axsl.foR.FONodeProxy; import org.axsl.foR.FOTreeException; +import org.axsl.foR.ProxyFactory; /** * Represents the flow object 'fo:character'. @@ -79,4 +81,8 @@ return text.getAreaTreeText(context); } + public FONodeProxy makeProxy(ProxyFactory factory) { + return factory.makeProxy(this); + } + } Modified: trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/ColorProfile.java =================================================================== --- trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/ColorProfile.java 2006-06-10 14:28:33 UTC (rev 7510) +++ trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/ColorProfile.java 2006-06-10 17:03:25 UTC (rev 7511) @@ -29,7 +29,9 @@ import org.foray.fotree.Namespace; import org.foray.fotree.PropertyList; +import org.axsl.foR.FONodeProxy; import org.axsl.foR.FOTreeException; +import org.axsl.foR.ProxyFactory; public class ColorProfile extends FObj @@ -53,4 +55,8 @@ return this.getFOTreeBuilder().getFONamespace(); } + public FONodeProxy makeProxy(ProxyFactory factory) { + return factory.makeProxy(this); + } + } Modified: trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/ConditionalPageMasterReference.java =================================================================== --- trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/ConditionalPageMasterReference.java 2006-06-10 14:28:33 UTC (rev 7510) +++ trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/ConditionalPageMasterReference.java 2006-06-10 17:03:25 UTC (rev 7511) @@ -33,7 +33,9 @@ import org.axsl.common.Constants; import org.axsl.foR.FOContext; +import org.axsl.foR.FONodeProxy; import org.axsl.foR.FOTreeException; +import org.axsl.foR.ProxyFactory; /** @@ -128,4 +130,8 @@ return this.getFOTreeBuilder().getFONamespace(); } + public FONodeProxy makeProxy(ProxyFactory factory) { + return factory.makeProxy(this); + } + } Modified: trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/Declarations.java =================================================================== --- trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/Declarations.java 2006-06-10 14:28:33 UTC (rev 7510) +++ trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/Declarations.java 2006-06-10 17:03:25 UTC (rev 7511) @@ -29,7 +29,9 @@ import org.foray.fotree.Namespace; import org.foray.fotree.PropertyList; +import org.axsl.foR.FONodeProxy; import org.axsl.foR.FOTreeException; +import org.axsl.foR.ProxyFactory; public class Declarations extends FObj @@ -52,4 +54,8 @@ return this.getFOTreeBuilder().getFONamespace(); } + public FONodeProxy makeProxy(ProxyFactory factory) { + return factory.makeProxy(this); + } + } Modified: trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/ExternalGraphic.java =================================================================== --- trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/ExternalGraphic.java 2006-06-10 14:28:33 UTC (rev 7510) +++ trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/ExternalGraphic.java 2006-06-10 17:03:25 UTC (rev 7511) @@ -32,7 +32,9 @@ import org.axsl.common.Constants; import org.axsl.foR.FOContext; +import org.axsl.foR.FONodeProxy; import org.axsl.foR.FOTreeException; +import org.axsl.foR.ProxyFactory; import org.axsl.graphicR.Graphic; import org.axsl.graphicR.GraphicException; import org.axsl.text.line.LineNonText; @@ -141,4 +143,8 @@ return this.getNextSibling() == null; } + public FONodeProxy makeProxy(ProxyFactory factory) { + return factory.makeProxy(this); + } + } Modified: trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/Float.java =================================================================== --- trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/Float.java 2006-06-10 14:28:33 UTC (rev 7510) +++ trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/Float.java 2006-06-10 17:03:25 UTC (rev 7511) @@ -29,7 +29,9 @@ import org.foray.fotree.Namespace; import org.foray.fotree.PropertyList; +import org.axsl.foR.FONodeProxy; import org.axsl.foR.FOTreeException; +import org.axsl.foR.ProxyFactory; /** */ @@ -64,4 +66,8 @@ return true; } + public FONodeProxy makeProxy(ProxyFactory factory) { + return factory.makeProxy(this); + } + } Modified: trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/Flow.java =================================================================== --- trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/Flow.java 2006-06-10 14:28:33 UTC (rev 7510) +++ trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/Flow.java 2006-06-10 17:03:25 UTC (rev 7511) @@ -29,7 +29,9 @@ import org.foray.fotree.PropertyList; import org.axsl.foR.FOContext; +import org.axsl.foR.FONodeProxy; import org.axsl.foR.FOTreeException; +import org.axsl.foR.ProxyFactory; public class Flow extends AbstractFlow implements org.axsl.foR.fo.Flow { @@ -86,4 +88,8 @@ return FONode.NODE_FLOW; } + public FONodeProxy makeProxy(ProxyFactory factory) { + return factory.makeProxy(this); + } + } Modified: trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/Footnote.java =================================================================== --- trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/Footnote.java 2006-06-10 14:28:33 UTC (rev 7510) +++ trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/Footnote.java 2006-06-10 17:03:25 UTC (rev 7511) @@ -29,7 +29,9 @@ import org.foray.fotree.Namespace; import org.foray.fotree.PropertyList; +import org.axsl.foR.FONodeProxy; import org.axsl.foR.FOTreeException; +import org.axsl.foR.ProxyFactory; public class Footnote extends FObj implements org.axsl.foR.fo.Footnote { @@ -82,4 +84,8 @@ return (FootnoteBody) this.children.get(1); } + public FONodeProxy makeProxy(ProxyFactory factory) { + return factory.makeProxy(this); + } + } Modified: trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/FootnoteBody.java =================================================================== --- trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/FootnoteBody.java 2006-06-10 14:28:33 UTC (rev 7510) +++ trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/FootnoteBody.java 2006-06-10 17:03:25 UTC (rev 7511) @@ -29,7 +29,9 @@ import org.foray.fotree.Namespace; import org.foray.fotree.PropertyList; +import org.axsl.foR.FONodeProxy; import org.axsl.foR.FOTreeException; +import org.axsl.foR.ProxyFactory; public class FootnoteBody extends FObj @@ -52,4 +54,8 @@ return this.getFOTreeBuilder().getFONamespace(); } + public FONodeProxy makeProxy(ProxyFactory factory) { + return factory.makeProxy(this); + } + } Modified: trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/InitialPropertySet.java =================================================================== --- trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/InitialPropertySet.java 2006-06-10 14:28:33 UTC (rev 7510) +++ trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/InitialPropertySet.java 2006-06-10 17:03:25 UTC (rev 7511) @@ -29,7 +29,9 @@ import org.foray.fotree.Namespace; import org.foray.fotree.PropertyList; +import org.axsl.foR.FONodeProxy; import org.axsl.foR.FOTreeException; +import org.axsl.foR.ProxyFactory; /** */ @@ -53,4 +55,8 @@ return this.getFOTreeBuilder().getFONamespace(); } + public FONodeProxy makeProxy(ProxyFactory factory) { + return factory.makeProxy(this); + } + } Modified: trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/Inline.java =================================================================== --- trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/Inline.java 2006-06-10 14:28:33 UTC (rev 7510) +++ trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/Inline.java 2006-06-10 17:03:25 UTC (rev 7511) @@ -30,7 +30,9 @@ import org.foray.fotree.Namespace; import org.foray.fotree.PropertyList; +import org.axsl.foR.FONodeProxy; import org.axsl.foR.FOTreeException; +import org.axsl.foR.ProxyFactory; public class Inline extends FObjMixed implements org.axsl.foR.fo.Inline { @@ -66,4 +68,8 @@ return true; } + public FONodeProxy makeProxy(ProxyFactory factory) { + return factory.makeProxy(this); + } + } Modified: trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/InlineContainer.java =================================================================== --- trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/InlineContainer.java 2006-06-10 14:28:33 UTC (rev 7510) +++ trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/InlineContainer.java 2006-06-10 17:03:25 UTC (rev 7511) @@ -29,7 +29,9 @@ import org.foray.fotree.Namespace; import org.foray.fotree.PropertyList; +import org.axsl.foR.FONodeProxy; import org.axsl.foR.FOTreeException; +import org.axsl.foR.ProxyFactory; /** */ @@ -62,4 +64,8 @@ return true; } + public FONodeProxy makeProxy(ProxyFactory factory) { + return factory.makeProxy(this); + } + } Modified: trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/InstreamForeignObject.java =================================================================== --- trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/InstreamForeignObject.java 2006-06-10 14:28:33 UTC (rev 7510) +++ trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/InstreamForeignObject.java 2006-06-10 17:03:25 UTC (rev 7511) @@ -31,7 +31,9 @@ import org.foray.fotree.Namespace; import org.foray.fotree.PropertyList; +import org.axsl.foR.FONodeProxy; import org.axsl.foR.FOTreeException; +import org.axsl.foR.ProxyFactory; public class InstreamForeignObject extends FObjScaled implements org.axsl.foR.fo.InstreamForeignObject { @@ -93,4 +95,8 @@ return this.getNextSibling() == null; } + public FONodeProxy makeProxy(ProxyFactory factory) { + return factory.makeProxy(this); + } + } Modified: trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/LayoutMasterSet.java =================================================================== --- trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/LayoutMasterSet.java 2006-06-10 14:28:33 UTC (rev 7510) +++ trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/LayoutMasterSet.java 2006-06-10 17:03:25 UTC (rev 7511) @@ -30,7 +30,9 @@ import org.foray.fotree.PropertyList; import org.axsl.foR.FOContext; +import org.axsl.foR.FONodeProxy; import org.axsl.foR.FOTreeException; +import org.axsl.foR.ProxyFactory; import java.util.HashMap; import java.util.Map; @@ -150,4 +152,8 @@ regionMap.put(region.traitRegionName(), region.getName()); } + public FONodeProxy makeProxy(ProxyFactory factory) { + return factory.makeProxy(this); + } + } Modified: trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/Leader.java =================================================================== --- trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/Leader.java 2006-06-10 14:28:33 UTC (rev 7510) +++ trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/Leader.java 2006-06-10 17:03:25 UTC (rev 7511) @@ -31,7 +31,9 @@ import org.foray.fotree.PropertyList; import org.axsl.foR.FOContext; +import org.axsl.foR.FONodeProxy; import org.axsl.foR.FOTreeException; +import org.axsl.foR.ProxyFactory; import org.axsl.text.line.LineNonText; /** @@ -116,4 +118,8 @@ return true; } + public FONodeProxy makeProxy(ProxyFactory factory) { + return factory.makeProxy(this); + } + } Modified: trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/ListBlock.java =================================================================== --- trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/ListBlock.java 2006-06-10 14:28:33 UTC (rev 7510) +++ trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/ListBlock.java 2006-06-10 17:03:25 UTC (rev 7511) @@ -29,7 +29,9 @@ import org.foray.fotree.Namespace; import org.foray.fotree.PropertyList; +import org.axsl.foR.FONodeProxy; import org.axsl.foR.FOTreeException; +import org.axsl.foR.ProxyFactory; public class ListBlock extends FObj implements org.axsl.foR.fo.ListBlock { @@ -67,4 +69,8 @@ } } + public FONodeProxy makeProxy(ProxyFactory factory) { + return factory.makeProxy(this); + } + } Modified: trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/ListItem.java =================================================================== --- trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/ListItem.java 2006-06-10 14:28:33 UTC (rev 7510) +++ trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/ListItem.java 2006-06-10 17:03:25 UTC (rev 7511) @@ -30,7 +30,9 @@ import org.foray.fotree.PropertyList; import org.axsl.foR.FOContext; +import org.axsl.foR.FONodeProxy; import org.axsl.foR.FOTreeException; +import org.axsl.foR.ProxyFactory; public class ListItem extends FObj implements org.axsl.foR.fo.ListItem { @@ -72,4 +74,8 @@ return this.getFOTreeBuilder().getFONamespace(); } + public FONodeProxy makeProxy(ProxyFactory factory) { + return factory.makeProxy(this); + } + } Modified: trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/ListItemBody.java =================================================================== --- trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/ListItemBody.java 2006-06-10 14:28:33 UTC (rev 7510) +++ trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/ListItemBody.java 2006-06-10 17:03:25 UTC (rev 7511) @@ -30,7 +30,9 @@ import org.foray.fotree.PropertyList; import org.axsl.foR.FOContext; +import org.axsl.foR.FONodeProxy; import org.axsl.foR.FOTreeException; +import org.axsl.foR.ProxyFactory; public class ListItemBody extends FObj implements org.axsl.foR.fo.ListItemBody { @@ -60,4 +62,8 @@ return this; } + public FONodeProxy makeProxy(ProxyFactory factory) { + return factory.makeProxy(this); + } + } Modified: trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/ListItemLabel.java =================================================================== --- trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/ListItemLabel.java 2006-06-10 14:28:33 UTC (rev 7510) +++ trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/ListItemLabel.java 2006-06-10 17:03:25 UTC (rev 7511) @@ -30,7 +30,9 @@ import org.foray.fotree.PropertyList; import org.axsl.foR.FOContext; +import org.axsl.foR.FONodeProxy; import org.axsl.foR.FOTreeException; +import org.axsl.foR.ProxyFactory; public class ListItemLabel extends FObj @@ -61,4 +63,8 @@ return this; } + public FONodeProxy makeProxy(ProxyFactory factory) { + return factory.makeProxy(this); + } + } Modified: trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/Marker.java =================================================================== --- trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/Marker.java 2006-06-10 14:28:33 UTC (rev 7510) +++ trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/Marker.java 2006-06-10 17:03:25 UTC (rev 7511) @@ -32,7 +32,9 @@ import org.foray.fotree.PropertyList; import org.axsl.foR.FOContext; +import org.axsl.foR.FONodeProxy; import org.axsl.foR.FOTreeException; +import org.axsl.foR.ProxyFactory; import java.util.List; @@ -104,4 +106,8 @@ return true; } + public FONodeProxy makeProxy(ProxyFactory factory) { + return factory.makeProxy(this); + } + } Modified: trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/MultiCase.java =================================================================== --- trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/MultiCase.java 2006-06-10 14:28:33 UTC (rev 7510) +++ trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/MultiCase.java 2006-06-10 17:03:25 UTC (rev 7511) @@ -29,7 +29,9 @@ import org.foray.fotree.Namespace; import org.foray.fotree.PropertyList; +import org.axsl.foR.FONodeProxy; import org.axsl.foR.FOTreeException; +import org.axsl.foR.ProxyFactory; /** @@ -53,4 +55,8 @@ return this.getFOTreeBuilder().getFONamespace(); } + public FONodeProxy makeProxy(ProxyFactory factory) { + return factory.makeProxy(this); + } + } Modified: trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/MultiProperties.java =================================================================== --- trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/MultiProperties.java 2006-06-10 14:28:33 UTC (rev 7510) +++ trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/MultiProperties.java 2006-06-10 17:03:25 UTC (rev 7511) @@ -29,7 +29,9 @@ import org.foray.fotree.Namespace; import org.foray.fotree.PropertyList; +import org.axsl.foR.FONodeProxy; import org.axsl.foR.FOTreeException; +import org.axsl.foR.ProxyFactory; /** */ @@ -65,4 +67,8 @@ return true; } + public FONodeProxy makeProxy(ProxyFactory factory) { + return factory.makeProxy(this); + } + } Modified: trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/MultiPropertySet.java =================================================================== --- trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/MultiPropertySet.java 2006-06-10 14:28:33 UTC (rev 7510) +++ trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/MultiPropertySet.java 2006-06-10 17:03:25 UTC (rev 7511) @@ -29,7 +29,9 @@ import org.foray.fotree.Namespace; import org.foray.fotree.PropertyList; +import org.axsl.foR.FONodeProxy; import org.axsl.foR.FOTreeException; +import org.axsl.foR.ProxyFactory; /** */ @@ -53,4 +55,8 @@ return this.getFOTreeBuilder().getFONamespace(); } + public FONodeProxy makeProxy(ProxyFactory factory) { + return factory.makeProxy(this); + } + } Modified: trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/MultiSwitch.java =================================================================== --- trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/MultiSwitch.java 2006-06-10 14:28:33 UTC (rev 7510) +++ trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/MultiSwitch.java 2006-06-10 17:03:25 UTC (rev 7511) @@ -29,7 +29,9 @@ import org.foray.fotree.Namespace; import org.foray.fotree.PropertyList; +import org.axsl.foR.FONodeProxy; import org.axsl.foR.FOTreeException; +import org.axsl.foR.ProxyFactory; /** */ @@ -65,4 +67,8 @@ return true; } + public FONodeProxy makeProxy(ProxyFactory factory) { + return factory.makeProxy(this); + } + } Modified: trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/MultiToggle.java =================================================================== --- trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/MultiToggle.java 2006-06-10 14:28:33 UTC (rev 7510) +++ trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/MultiToggle.java 2006-06-10 17:03:25 UTC (rev 7511) @@ -29,7 +29,9 @@ import org.foray.fotree.Namespace; import org.foray.fotree.PropertyList; +import org.axsl.foR.FONodeProxy; import org.axsl.foR.FOTreeException; +import org.axsl.foR.ProxyFactory; /** @@ -58,4 +60,8 @@ return true; } + public FONodeProxy makeProxy(ProxyFactory factory) { + return factory.makeProxy(this); + } + } Modified: trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/PageNumber.java =================================================================== --- trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/PageNumber.java 2006-06-10 14:28:33 UTC (rev 7510) +++ trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/PageNumber.java 2006-06-10 17:03:25 UTC (rev 7511) @@ -30,7 +30,9 @@ import org.foray.fotree.PropertyList; import org.axsl.foR.FOContext; +import org.axsl.foR.FONodeProxy; import org.axsl.foR.FOTreeException; +import org.axsl.foR.ProxyFactory; import org.axsl.text.line.LineNonText; public class PageNumber extends FObj implements LineNonText, @@ -78,4 +80,8 @@ return this.getNextSibling() == null; } + public FONodeProxy makeProxy(ProxyFactory factory) { + return factory.makeProxy(this); + } + } Modified: trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/PageNumberCitation.java =================================================================== --- trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/PageNumberCitation.java 2006-06-10 14:28:33 UTC (rev 7510) +++ trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/PageNumberCitation.java 2006-06-10 17:03:25 UTC (rev 7511) @@ -30,7 +30,9 @@ import org.foray.fotree.PropertyList; import org.axsl.foR.FOContext; +import org.axsl.foR.FONodeProxy; import org.axsl.foR.FOTreeException; +import org.axsl.foR.ProxyFactory; import org.axsl.text.line.LineNonText; /** @@ -90,4 +92,8 @@ return this.getNextSibling() == null; } + public FONodeProxy makeProxy(ProxyFactory factory) { + return factory.makeProxy(this); + } + } Modified: trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/PageSequence.java =================================================================== --- trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/PageSequence.java 2006-06-10 14:28:33 UTC (rev 7510) +++ trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/PageSequence.java 2006-06-10 17:03:25 UTC (rev 7511) @@ -30,7 +30,9 @@ import org.foray.fotree.PropertyList; import org.axsl.foR.FOContext; +import org.axsl.foR.FONodeProxy; import org.axsl.foR.FOTreeException; +import org.axsl.foR.ProxyFactory; import org.axsl.foR.fo.Flow; import org.axsl.foR.fo.SimplePageMaster; @@ -255,4 +257,8 @@ } } + public FONodeProxy makeProxy(ProxyFactory factory) { + return factory.makeProxy(this); + } + } Modified: trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/PageSequenceMaster.java =================================================================== --- trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/PageSequenceMaster.java 2006-06-10 14:28:33 UTC (rev 7510) +++ trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/PageSequenceMaster.java 2006-06-10 17:03:25 UTC (rev 7511) @@ -30,7 +30,9 @@ import org.foray.fotree.PropertyList; import org.axsl.foR.FOContext; +import org.axsl.foR.FONodeProxy; import org.axsl.foR.FOTreeException; +import org.axsl.foR.ProxyFactory; import java.util.ArrayList; @@ -159,4 +161,8 @@ return this.getFOTreeBuilder().getFONamespace(); } + public FONodeProxy makeProxy(ProxyFactory factory) { + return factory.makeProxy(this); + } + } Modified: trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/RegionAfter.java =================================================================== --- trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/RegionAfter.java 2006-06-10 14:28:33 UTC (rev 7510) +++ trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/RegionAfter.java 2006-06-10 17:03:25 UTC (rev 7511) @@ -29,7 +29,9 @@ import org.foray.fotree.PropertyList; import org.axsl.foR.FOContext; +import org.axsl.foR.FONodeProxy; import org.axsl.foR.FOTreeException; +import org.axsl.foR.ProxyFactory; /** @@ -95,4 +97,8 @@ return traitExtent(context); } + public FONodeProxy makeProxy(ProxyFactory factory) { + return factory.makeProxy(this); + } + } Modified: trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/RegionBefore.java =================================================================== --- trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/RegionBefore.java 2006-06-10 14:28:33 UTC (rev 7510) +++ trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/RegionBefore.java 2006-06-10 17:03:25 UTC (rev 7511) @@ -29,7 +29,9 @@ import org.foray.fotree.PropertyList; import org.axsl.foR.FOContext; +import org.axsl.foR.FONodeProxy; import org.axsl.foR.FOTreeException; +import org.axsl.foR.ProxyFactory; /** @@ -99,4 +101,8 @@ return traitExtent(context); } + public FONodeProxy makeProxy(ProxyFactory factory) { + return factory.makeProxy(this); + } + } Modified: trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/RegionBody.java =================================================================== --- trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/RegionBody.java 2006-06-10 14:28:33 UTC (rev 7510) +++ trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/RegionBody.java 2006-06-10 17:03:25 UTC (rev 7511) @@ -29,7 +29,9 @@ import org.foray.fotree.PropertyList; import org.axsl.foR.FOContext; +import org.axsl.foR.FONodeProxy; import org.axsl.foR.FOTreeException; +import org.axsl.foR.ProxyFactory; /** @@ -101,4 +103,8 @@ - this.getMarginBottom(context, pageWidth); } + public FONodeProxy makeProxy(ProxyFactory factory) { + return factory.makeProxy(this); + } + } Modified: trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/RegionEnd.java =================================================================== --- trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/RegionEnd.java 2006-06-10 14:28:33 UTC (rev 7510) +++ trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/RegionEnd.java 2006-06-10 17:03:25 UTC (rev 7511) @@ -29,7 +29,9 @@ import org.foray.fotree.PropertyList; import org.axsl.foR.FOContext; +import org.axsl.foR.FONodeProxy; import org.axsl.foR.FOTreeException; +import org.axsl.foR.ProxyFactory; /** @@ -96,4 +98,8 @@ return height; } + public FONodeProxy makeProxy(ProxyFactory factory) { + return factory.makeProxy(this); + } + } Modified: trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/RegionStart.java =================================================================== --- trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/RegionStart.java 2006-06-10 14:28:33 UTC (rev 7510) +++ trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/RegionStart.java 2006-06-10 17:03:25 UTC (rev 7511) @@ -29,7 +29,9 @@ import org.foray.fotree.PropertyList; import org.axsl.foR.FOContext; +import org.axsl.foR.FONodeProxy; import org.axsl.foR.FOTreeException; +import org.axsl.foR.ProxyFactory; /** @@ -95,4 +97,8 @@ return height; } + public FONodeProxy makeProxy(ProxyFactory factory) { + return factory.makeProxy(this); + } + } Modified: trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/RepeatablePMAlternatives.java =================================================================== --- trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/RepeatablePMAlternatives.java 2006-06-10 14:28:33 UTC (rev 7510) +++ trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/RepeatablePMAlternatives.java 2006-06-10 17:03:25 UTC (rev 7511) @@ -32,7 +32,9 @@ import org.foray.fotree.PropertyList; import org.axsl.foR.FOContext; +import org.axsl.foR.FONodeProxy; import org.axsl.foR.FOTreeException; +import org.axsl.foR.ProxyFactory; import java.util.ArrayList; @@ -107,4 +109,8 @@ return this.getFOTreeBuilder().getFONamespace(); } + public FONodeProxy makeProxy(ProxyFactory factory) { + return factory.makeProxy(this); + } + } Modified: trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/RepeatablePMReference.java =================================================================== --- trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/RepeatablePMReference.java 2006-06-10 14:28:33 UTC (rev 7510) +++ trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/RepeatablePMReference.java 2006-06-10 17:03:25 UTC (rev 7511) @@ -32,7 +32,9 @@ import org.foray.fotree.PropertyList; import org.axsl.foR.FOContext; +import org.axsl.foR.FONodeProxy; import org.axsl.foR.FOTreeException; +import org.axsl.foR.ProxyFactory; /** @@ -92,4 +94,8 @@ return this.getFOTreeBuilder().getFONamespace(); } + public FONodeProxy makeProxy(ProxyFactory factory) { + return factory.makeProxy(this); + } + } Modified: trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/RetrieveMarker.java =================================================================== --- trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/RetrieveMarker.java 2006-06-10 14:28:33 UTC (rev 7510) +++ trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/RetrieveMarker.java 2006-06-10 17:03:25 UTC (rev 7511) @@ -29,7 +29,9 @@ import org.foray.fotree.Namespace; import org.foray.fotree.PropertyList; +import org.axsl.foR.FONodeProxy; import org.axsl.foR.FOTreeException; +import org.axsl.foR.ProxyFactory; public class RetrieveMarker extends FObj @@ -64,4 +66,8 @@ return true; } + public FONodeProxy makeProxy(ProxyFactory factory) { + return factory.makeProxy(this); + } + } Modified: trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/Root.java =================================================================== --- trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/Root.java 2006-06-10 14:28:33 UTC (rev 7510) +++ trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/Root.java 2006-06-10 17:03:25 UTC (rev 7511) @@ -31,7 +31,9 @@ import org.foray.fotree.PropertyList; import org.axsl.foR.FOContext; +import org.axsl.foR.FONodeProxy; import org.axsl.foR.FOTreeException; +import org.axsl.foR.ProxyFactory; import org.apache.commons.logging.Log; @@ -235,4 +237,8 @@ return null; } + public FONodeProxy makeProxy(ProxyFactory factory) { + return factory.makeProxy(this); + } + } Modified: trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/SimplePageMaster.java =================================================================== --- trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/SimplePageMaster.java 2006-06-10 14:28:33 UTC (rev 7510) +++ trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/SimplePageMaster.java 2006-06-10 17:03:25 UTC (rev 7511) @@ -30,7 +30,9 @@ import org.foray.fotree.PropertyList; import org.axsl.foR.FOContext; +import org.axsl.foR.FONodeProxy; import org.axsl.foR.FOTreeException; +import org.axsl.foR.ProxyFactory; /** * Models the fo:simple-page-master object. @@ -283,4 +285,8 @@ return true; } + public FONodeProxy makeProxy(ProxyFactory factory) { + return factory.makeProxy(this); + } + } Modified: trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/SinglePageMasterReference.java =================================================================== --- trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/SinglePageMasterReference.java 2006-06-10 14:28:33 UTC (rev 7510) +++ trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/SinglePageMasterReference.java 2006-06-10 17:03:25 UTC (rev 7511) @@ -30,7 +30,9 @@ import org.foray.fotree.PropertyList; import org.axsl.foR.FOContext; +import org.axsl.foR.FONodeProxy; import org.axsl.foR.FOTreeException; +import org.axsl.foR.ProxyFactory; /** @@ -87,4 +89,8 @@ return this.getFOTreeBuilder().getFONamespace(); } + public FONodeProxy makeProxy(ProxyFactory factory) { + return factory.makeProxy(this); + } + } Modified: trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/StaticContent.java =================================================================== --- trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/StaticContent.java 2006-06-10 14:28:33 UTC (rev 7510) +++ trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/StaticContent.java 2006-06-10 17:03:25 UTC (rev 7511) @@ -28,7 +28,9 @@ import org.foray.fotree.FObj; import org.foray.fotree.PropertyList; +import org.axsl.foR.FONodeProxy; import org.axsl.foR.FOTreeException; +import org.axsl.foR.ProxyFactory; public class StaticContent extends AbstractFlow @@ -71,4 +73,8 @@ return FONode.NODE_STATIC_CONTENT; } + public FONodeProxy makeProxy(ProxyFactory factory) { + return factory.makeProxy(this); + } + } Modified: trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/Table.java =================================================================== --- trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/Table.java 2006-06-10 14:28:33 UTC (rev 7510) +++ trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/Table.java 2006-06-10 17:03:25 UTC (rev 7511) @@ -30,7 +30,9 @@ import org.foray.fotree.PropertyList; import org.axsl.foR.FOContext; +import org.axsl.foR.FONodeProxy; import org.axsl.foR.FOTreeException; +import org.axsl.foR.ProxyFactory; import java.util.ArrayList; @@ -200,4 +202,8 @@ return tableHeader; } + public FONodeProxy makeProxy(ProxyFactory factory) { + return factory.makeProxy(this); + } + } Modified: trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/TableAndCaption.java =================================================================== --- trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/TableAndCaption.java 2006-06-10 14:28:33 UTC (rev 7510) +++ trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/TableAndCaption.java 2006-06-10 17:03:25 UTC (rev 7511) @@ -29,7 +29,9 @@ import org.foray.fotree.Namespace; import org.foray.fotree.PropertyList; +import org.axsl.foR.FONodeProxy; import org.axsl.foR.FOTreeException; +import org.axsl.foR.ProxyFactory; /** * An fo:table-and-caption object in XSL-FO. @@ -58,4 +60,8 @@ return true; } + public FONodeProxy makeProxy(ProxyFactory factory) { + return factory.makeProxy(this); + } + } Modified: trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/TableBody.java =================================================================== --- trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/TableBody.java 2006-06-10 14:28:33 UTC (rev 7510) +++ trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/TableBody.java 2006-06-10 17:03:25 UTC (rev 7511) @@ -28,7 +28,9 @@ import org.foray.fotree.FObj; import org.foray.fotree.PropertyList; +import org.axsl.foR.FONodeProxy; import org.axsl.foR.FOTreeException; +import org.axsl.foR.ProxyFactory; public class TableBody extends AbstractTableBody @@ -47,4 +49,8 @@ return FONode.NODE_TABLE_BODY; } + public FONodeProxy makeProxy(ProxyFactory factory) { + return factory.makeProxy(this); + } + } Modified: trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/TableCaption.java =================================================================== --- trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/TableCaption.java 2006-06-10 14:28:33 UTC (rev 7510) +++ trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/TableCaption.java 2006-06-10 17:03:25 UTC (rev 7511) @@ -29,7 +29,9 @@ import org.foray.fotree.Namespace; import org.foray.fotree.PropertyList; +import org.axsl.foR.FONodeProxy; import org.axsl.foR.FOTreeException; +import org.axsl.foR.ProxyFactory; /** @@ -59,4 +61,8 @@ return true; } + public FONodeProxy makeProxy(ProxyFactory factory) { + return factory.makeProxy(this); + } + } Modified: trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/TableCell.java =================================================================== --- trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/TableCell.java 2006-06-10 14:28:33 UTC (rev 7510) +++ trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/TableCell.java 2006-06-10 17:03:25 UTC (rev 7511) @@ -29,7 +29,9 @@ import org.foray.fotree.Namespace; import org.foray.fotree.PropertyList; +import org.axsl.foR.FONodeProxy; import org.axsl.foR.FOTreeException; +import org.axsl.foR.ProxyFactory; import java.util.List; @@ -121,4 +123,8 @@ } } + public FONodeProxy makeProxy(ProxyFactory factory) { + return factory.makeProxy(this); + } + } Modified: trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/TableColumn.java =================================================================== --- trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/TableColumn.java 2006-06-10 14:28:33 UTC (rev 7510) +++ trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/TableColumn.java 2006-06-10 17:03:25 UTC (rev 7511) @@ -30,7 +30,9 @@ import org.foray.fotree.PropertyList; import org.axsl.foR.FOContext; +import org.axsl.foR.FONodeProxy; import org.axsl.foR.FOTreeException; +import org.axsl.foR.ProxyFactory; import java.util.List; @@ -105,4 +107,8 @@ return this.getFOTreeBuilder().getFONamespace(); } + public FONodeProxy makeProxy(ProxyFactory factory) { + return factory.makeProxy(this); + } + } Modified: trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/TableFooter.java =================================================================== --- trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/TableFooter.java 2006-06-10 14:28:33 UTC (rev 7510) +++ trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/TableFooter.java 2006-06-10 17:03:25 UTC (rev 7511) @@ -28,7 +28,9 @@ import org.foray.fotree.FObj; import org.foray.fotree.PropertyList; +import org.axsl.foR.FONodeProxy; import org.axsl.foR.FOTreeException; +import org.axsl.foR.ProxyFactory; public class TableFooter extends AbstractTableBody @@ -47,4 +49,8 @@ return FONode.NODE_TABLE_FOOTER; } + public FONodeProxy makeProxy(ProxyFactory factory) { + return factory.makeProxy(this); + } + } Modified: trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/TableHeader.java =================================================================== --- trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/TableHeader.java 2006-06-10 14:28:33 UTC (rev 7510) +++ trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/TableHeader.java 2006-06-10 17:03:25 UTC (rev 7511) @@ -28,7 +28,9 @@ import org.foray.fotree.FObj; import org.foray.fotree.PropertyList; +import org.axsl.foR.FONodeProxy; import org.axsl.foR.FOTreeException; +import org.axsl.foR.ProxyFactory; public class TableHeader extends AbstractTableBody @@ -47,4 +49,8 @@ return FONode.NODE_TABLE_HEADER; } + public FONodeProxy makeProxy(ProxyFactory factory) { + return factory.makeProxy(this); + } + } Modified: trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/TableRow.java =================================================================== --- trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/TableRow.java 2006-06-10 14:28:33 UTC (rev 7510) +++ trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/TableRow.java 2006-06-10 17:03:25 UTC (rev 7511) @@ -29,7 +29,9 @@ import org.foray.fotree.Namespace; import org.foray.fotree.PropertyList; +import org.axsl.foR.FONodeProxy; import org.axsl.foR.FOTreeException; +import org.axsl.foR.ProxyFactory; public class TableRow extends FObj implements org.axsl.foR.fo.TableRow { @@ -54,4 +56,8 @@ return this.getFOTreeBuilder().getFONamespace(); } + public FONodeProxy makeProxy(ProxyFactory factory) { + return factory.makeProxy(this); + } + } Modified: trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/Title.java =================================================================== --- trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/Title.java 2006-06-10 14:28:33 UTC (rev 7510) +++ trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/Title.java 2006-06-10 17:03:25 UTC (rev 7511) @@ -29,7 +29,9 @@ import org.foray.fotree.Namespace; import org.foray.fotree.PropertyList; +import org.axsl.foR.FONodeProxy; import org.axsl.foR.FOTreeException; +import org.axsl.foR.ProxyFactory; /** @@ -59,4 +61,8 @@ return true; } + public FONodeProxy makeProxy(ProxyFactory factory) { + return factory.makeProxy(this); + } + } Modified: trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/Wrapper.java =================================================================== --- trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/Wrapper.java 2006-06-10 14:28:33 UTC (rev 7510) +++ trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/Wrapper.java 2006-06-10 17:03:25 UTC (rev 7511) @@ -31,7 +31,9 @@ import org.foray.fotree.PropertyList; import org.axsl.foR.FOContext; +import org.axsl.foR.FONodeProxy; import org.axsl.foR.FOTreeException; +import org.axsl.foR.ProxyFactory; /** * Implementation for fo:wrapper formatting object. @@ -110,4 +112,8 @@ return true; } + public FONodeProxy makeProxy(ProxyFactory factory) { + return factory.makeProxy(this); + } + } Modified: trunk/foray/foray-fotree/src/java/org/foray/fotree/foray/obj/ContinuedLabel.java =================================================================== --- trunk/foray/foray-fotree/src/java/org/foray/fotree/foray/obj/ContinuedLabel.java 2006-06-10 14:28:33 UTC (rev 7510) +++ trunk/foray/foray-fotree/src/java/org/foray/fotree/foray/obj/ContinuedLabel.java 2006-06-10 17:03:25 UTC (rev 7511) @@ -29,7 +29,9 @@ import org.foray.fotree.Namespace; import org.foray.fotree.PropertyList; +import org.axsl.foR.FONodeProxy; import org.axsl.foR.FOTreeException; +import org.axsl.foR.ProxyFactory; /** * Implement continued labels for table header/footer. @@ -55,4 +57,8 @@ return this.getFOTreeBuilder().getExtensionNamespace(); } + public FONodeProxy makeProxy(ProxyFactory factory) { + return factory.makeProxy(this); + } + } Modified: trunk/foray/foray-fotree/src/java/org/foray/fotree/svg/obj/SVGElement.java =================================================================== --- trunk/foray/foray-fotree/src/java/org/foray/fotree/svg/obj/SVGElement.java 2006-06-10 14:28:33 UTC (rev 7510) +++ trunk/foray/foray-fotree/src/java/org/foray/fotree/svg/obj/SVGElement.java 2006-06-10 17:03:25 UTC (rev 7511) @@ -32,7 +32,9 @@ import org.foray.fotree.Namespace; import org.foray.fotree.PropertyListUnparsed; +import org.axsl.foR.FONodeProxy; import org.axsl.foR.FOTreeException; +import org.axsl.foR.ProxyFactory; import org.apache.batik.bridge.BridgeContext; import org.apache.batik.bridge.UnitProcessor; @@ -139,4 +141,8 @@ return FObjScaled.pixelsToMillipoints(pixels, 72); } + public FONodeProxy makeProxy(ProxyFactory factory) { + return factory.makeProxy(this); + } + } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
|
From: <vic...@us...> - 2006-06-10 14:29:06
|
Revision: 7510 Author: victormote Date: 2006-06-10 07:28:33 -0700 (Sat, 10 Jun 2006) ViewCVS: http://svn.sourceforge.net/foray/?rev=7510&view=rev Log Message: ----------- Conform to axsl change: Remove no-longer-needed AreaTree constants. 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/BasicLinkArea.java trunk/foray/foray-areatree/src/java/org/foray/area/BeforeFloatRA.java trunk/foray/foray-areatree/src/java/org/foray/area/BlockContainerRA.java trunk/foray/foray-areatree/src/java/org/foray/area/BookmarkArea.java trunk/foray/foray-areatree/src/java/org/foray/area/BookmarkTitleArea.java trunk/foray/foray-areatree/src/java/org/foray/area/BookmarkTreeArea.java trunk/foray/foray-areatree/src/java/org/foray/area/ExternalGraphicArea.java trunk/foray/foray-areatree/src/java/org/foray/area/FootnoteRA.java trunk/foray/foray-areatree/src/java/org/foray/area/ForeignObjectArea.java trunk/foray/foray-areatree/src/java/org/foray/area/GenericContainer.java trunk/foray/foray-areatree/src/java/org/foray/area/InlineArea.java trunk/foray/foray-areatree/src/java/org/foray/area/LeaderArea.java trunk/foray/foray-areatree/src/java/org/foray/area/LineArea.java trunk/foray/foray-areatree/src/java/org/foray/area/ListBlockArea.java trunk/foray/foray-areatree/src/java/org/foray/area/MainRA.java trunk/foray/foray-areatree/src/java/org/foray/area/MarkerContentArea.java trunk/foray/foray-areatree/src/java/org/foray/area/NormalBlockArea.java trunk/foray/foray-areatree/src/java/org/foray/area/NormalFlowRA.java trunk/foray/foray-areatree/src/java/org/foray/area/PageCollection.java trunk/foray/foray-areatree/src/java/org/foray/area/PageNumberArea.java trunk/foray/foray-areatree/src/java/org/foray/area/PageNumberCitationArea.java trunk/foray/foray-areatree/src/java/org/foray/area/PageRA.java trunk/foray/foray-areatree/src/java/org/foray/area/RegionRA.java trunk/foray/foray-areatree/src/java/org/foray/area/RegionRABody.java trunk/foray/foray-areatree/src/java/org/foray/area/SVGArea.java trunk/foray/foray-areatree/src/java/org/foray/area/SpanRA.java trunk/foray/foray-areatree/src/java/org/foray/area/TableBodyContainer.java trunk/foray/foray-areatree/src/java/org/foray/area/TableCellRA.java trunk/foray/foray-areatree/src/java/org/foray/area/TableFooterContainer.java trunk/foray/foray-areatree/src/java/org/foray/area/TableHeaderContainer.java trunk/foray/foray-areatree/src/java/org/foray/area/TableRA.java trunk/foray/foray-areatree/src/java/org/foray/area/TableRowContainer.java trunk/foray/foray-areatree/src/java/org/foray/area/TextArea.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-06-10 14:12:55 UTC (rev 7509) +++ trunk/foray/foray-areatree/src/java/org/foray/area/AreaNode.java 2006-06-10 14:28:33 UTC (rev 7510) @@ -281,12 +281,6 @@ return traitGeneratedBy().traitFontStyle(this); } - /** - * Reports the area type without needing to do an instanceof(). - * @return One of the AREATYPE_ constants. - */ - public abstract byte getAreaType(); - public AreaNode getFirstAreaNodeChild() { return (AreaNode) getFirstChild(); } Modified: trunk/foray/foray-areatree/src/java/org/foray/area/AreaTree.java =================================================================== --- trunk/foray/foray-areatree/src/java/org/foray/area/AreaTree.java 2006-06-10 14:12:55 UTC (rev 7509) +++ trunk/foray/foray-areatree/src/java/org/foray/area/AreaTree.java 2006-06-10 14:28:33 UTC (rev 7510) @@ -30,7 +30,6 @@ import org.axsl.areaW.AreaTreeListener; import org.axsl.areaW.AreaWException; import org.axsl.areaW.PageArea; -import org.axsl.common.ConstantsAreaTree; import org.axsl.foR.FObj; import org.axsl.foR.fo.Bookmark; import org.axsl.foR.fo.BookmarkTitle; @@ -108,10 +107,6 @@ return this.logger; } - public byte getAreaType() { - return ConstantsAreaTree.AREATYPE_AREA_TREE; - } - /** * {@inheritDoc} */ Modified: trunk/foray/foray-areatree/src/java/org/foray/area/BasicLinkArea.java =================================================================== --- trunk/foray/foray-areatree/src/java/org/foray/area/BasicLinkArea.java 2006-06-10 14:12:55 UTC (rev 7509) +++ trunk/foray/foray-areatree/src/java/org/foray/area/BasicLinkArea.java 2006-06-10 14:28:33 UTC (rev 7510) @@ -25,7 +25,6 @@ package org.foray.area; import org.axsl.areaR.RenderVisitor; -import org.axsl.common.ConstantsAreaTree; import org.axsl.foR.fo.BasicLink; /** @@ -39,10 +38,6 @@ super(generatedBy, parentArea); } - public byte getAreaType() { - return ConstantsAreaTree.AREATYPE_BASIC_LINK; - } - public int crIPD() { int ipd = 0; for (int i = 0; i < getChildren().size(); i++) { Modified: trunk/foray/foray-areatree/src/java/org/foray/area/BeforeFloatRA.java =================================================================== --- trunk/foray/foray-areatree/src/java/org/foray/area/BeforeFloatRA.java 2006-06-10 14:12:55 UTC (rev 7509) +++ trunk/foray/foray-areatree/src/java/org/foray/area/BeforeFloatRA.java 2006-06-10 14:28:33 UTC (rev 7510) @@ -26,7 +26,6 @@ import org.axsl.areaR.RenderVisitor; import org.axsl.areaW.AreaWException; -import org.axsl.common.ConstantsAreaTree; import org.axsl.foR.FObj; /** @@ -41,10 +40,6 @@ super(generatedBy, parentArea); } - public byte getAreaType() { - return ConstantsAreaTree.AREATYPE_BEFORE_FLOAT_RA; - } - public int crBPD() { return ((RegionRABody) getParentArea()).getDimensionBeforeFloatRA(); } Modified: trunk/foray/foray-areatree/src/java/org/foray/area/BlockContainerRA.java =================================================================== --- trunk/foray/foray-areatree/src/java/org/foray/area/BlockContainerRA.java 2006-06-10 14:12:55 UTC (rev 7509) +++ trunk/foray/foray-areatree/src/java/org/foray/area/BlockContainerRA.java 2006-06-10 14:28:33 UTC (rev 7510) @@ -27,7 +27,6 @@ import org.axsl.areaR.BlockContainerArea; import org.axsl.areaR.RenderVisitor; import org.axsl.common.Constants; -import org.axsl.common.ConstantsAreaTree; import org.axsl.foR.FObj; /** @@ -40,10 +39,6 @@ super(generatedBy, parentArea); } - public byte getAreaType() { - return ConstantsAreaTree.AREATYPE_BLOCK_CONTAINER; - } - public boolean isAbsolutelyPositioned() { if (this.traitAbsolutePosition() == Constants.FOVAL_AUTO) { return false; Modified: trunk/foray/foray-areatree/src/java/org/foray/area/BookmarkArea.java =================================================================== --- trunk/foray/foray-areatree/src/java/org/foray/area/BookmarkArea.java 2006-06-10 14:12:55 UTC (rev 7509) +++ trunk/foray/foray-areatree/src/java/org/foray/area/BookmarkArea.java 2006-06-10 14:28:33 UTC (rev 7510) @@ -26,7 +26,6 @@ import org.axsl.areaR.BookmarkTitleArea; import org.axsl.areaR.RenderVisitor; -import org.axsl.common.ConstantsAreaTree; import org.axsl.foR.fo.Bookmark; /** @@ -39,10 +38,6 @@ super(generatedBy, parent); } - public byte getAreaType() { - return ConstantsAreaTree.AREATYPE_BOOKMARK; - } - public BookmarkTitleArea getBookmarkTitle() { if (getChildren() == null || getChildren().size() < 1 || ! (getChildren().get(0) instanceof BookmarkTitleArea)) { Modified: trunk/foray/foray-areatree/src/java/org/foray/area/BookmarkTitleArea.java =================================================================== --- trunk/foray/foray-areatree/src/java/org/foray/area/BookmarkTitleArea.java 2006-06-10 14:12:55 UTC (rev 7509) +++ trunk/foray/foray-areatree/src/java/org/foray/area/BookmarkTitleArea.java 2006-06-10 14:28:33 UTC (rev 7510) @@ -25,7 +25,6 @@ package org.foray.area; import org.axsl.areaR.RenderVisitor; -import org.axsl.common.ConstantsAreaTree; import org.axsl.foR.fo.BookmarkTitle; /** @@ -38,10 +37,6 @@ super(generatedBy, parent); } - public byte getAreaType() { - return ConstantsAreaTree.AREATYPE_BOOKMARK_TITLE; - } - public String getTitleText() { // Cast verified at construction. BookmarkTitle generatedBy = (BookmarkTitle) traitGeneratedBy(); Modified: trunk/foray/foray-areatree/src/java/org/foray/area/BookmarkTreeArea.java =================================================================== --- trunk/foray/foray-areatree/src/java/org/foray/area/BookmarkTreeArea.java 2006-06-10 14:12:55 UTC (rev 7509) +++ trunk/foray/foray-areatree/src/java/org/foray/area/BookmarkTreeArea.java 2006-06-10 14:28:33 UTC (rev 7510) @@ -25,7 +25,6 @@ package org.foray.area; import org.axsl.areaR.RenderVisitor; -import org.axsl.common.ConstantsAreaTree; import org.axsl.foR.fo.BookmarkTree; /** @@ -38,10 +37,6 @@ super(generatedBy, parent); } - public byte getAreaType() { - return ConstantsAreaTree.AREATYPE_BOOKMARK_TREE; - } - /** * {@inheritDoc} */ Modified: trunk/foray/foray-areatree/src/java/org/foray/area/ExternalGraphicArea.java =================================================================== --- trunk/foray/foray-areatree/src/java/org/foray/area/ExternalGraphicArea.java 2006-06-10 14:12:55 UTC (rev 7509) +++ trunk/foray/foray-areatree/src/java/org/foray/area/ExternalGraphicArea.java 2006-06-10 14:28:33 UTC (rev 7510) @@ -25,7 +25,6 @@ package org.foray.area; import org.axsl.areaR.RenderVisitor; -import org.axsl.common.ConstantsAreaTree; import org.axsl.foR.fo.ExternalGraphic; import org.axsl.graphicR.Graphic; @@ -46,10 +45,6 @@ return ((ExternalGraphic) this.traitGeneratedBy()).getGraphic(this); } - public byte getAreaType() { - return ConstantsAreaTree.AREATYPE_IMAGE; - } - public void initializeProgressionDimension() { // PD is set in the constructor. return; Modified: trunk/foray/foray-areatree/src/java/org/foray/area/FootnoteRA.java =================================================================== --- trunk/foray/foray-areatree/src/java/org/foray/area/FootnoteRA.java 2006-06-10 14:12:55 UTC (rev 7509) +++ trunk/foray/foray-areatree/src/java/org/foray/area/FootnoteRA.java 2006-06-10 14:28:33 UTC (rev 7510) @@ -26,7 +26,6 @@ import org.axsl.areaR.RenderVisitor; import org.axsl.areaW.AreaWException; -import org.axsl.common.ConstantsAreaTree; import org.axsl.foR.FObj; /** @@ -39,10 +38,6 @@ super(generatedBy, parentArea); } - public byte getAreaType() { - return ConstantsAreaTree.AREATYPE_FOOTNOTE_RA; - } - public int crBPD() { return ((RegionRABody) getParentArea()).getDimensionFootnoteRA(); } Modified: trunk/foray/foray-areatree/src/java/org/foray/area/ForeignObjectArea.java =================================================================== --- trunk/foray/foray-areatree/src/java/org/foray/area/ForeignObjectArea.java 2006-06-10 14:12:55 UTC (rev 7509) +++ trunk/foray/foray-areatree/src/java/org/foray/area/ForeignObjectArea.java 2006-06-10 14:28:33 UTC (rev 7510) @@ -25,7 +25,6 @@ package org.foray.area; import org.axsl.areaR.RenderVisitor; -import org.axsl.common.ConstantsAreaTree; import org.axsl.foR.ForeignXML; import org.axsl.foR.fo.InstreamForeignObject; import org.axsl.foR.svg.SVGElement; @@ -48,10 +47,6 @@ } } - public byte getAreaType() { - return ConstantsAreaTree.AREATYPE_FOREIGN_OBJECT; - } - public boolean traitIsReferenceArea() { return true; } Modified: trunk/foray/foray-areatree/src/java/org/foray/area/GenericContainer.java =================================================================== --- trunk/foray/foray-areatree/src/java/org/foray/area/GenericContainer.java 2006-06-10 14:12:55 UTC (rev 7509) +++ trunk/foray/foray-areatree/src/java/org/foray/area/GenericContainer.java 2006-06-10 14:28:33 UTC (rev 7510) @@ -24,7 +24,6 @@ package org.foray.area; -import org.axsl.common.ConstantsAreaTree; import org.axsl.foR.FObj; public abstract class GenericContainer extends ContainerRA @@ -53,8 +52,4 @@ return this.yPosition; } - public byte getAreaType() { - return ConstantsAreaTree.AREATYPE_GENERIC_CONTAINER; - } - } Modified: trunk/foray/foray-areatree/src/java/org/foray/area/InlineArea.java =================================================================== --- trunk/foray/foray-areatree/src/java/org/foray/area/InlineArea.java 2006-06-10 14:12:55 UTC (rev 7509) +++ trunk/foray/foray-areatree/src/java/org/foray/area/InlineArea.java 2006-06-10 14:28:33 UTC (rev 7510) @@ -25,7 +25,6 @@ package org.foray.area; import org.axsl.areaR.RenderVisitor; -import org.axsl.common.ConstantsAreaTree; import org.axsl.foR.FOText; import org.axsl.foR.fo.ExternalGraphic; import org.axsl.foR.fo.Inline; @@ -45,10 +44,6 @@ super(generatedBy, parentArea); } - public byte getAreaType() { - return ConstantsAreaTree.AREATYPE_INLINE; - } - /** * {@inheritDoc} */ Modified: trunk/foray/foray-areatree/src/java/org/foray/area/LeaderArea.java =================================================================== --- trunk/foray/foray-areatree/src/java/org/foray/area/LeaderArea.java 2006-06-10 14:12:55 UTC (rev 7509) +++ trunk/foray/foray-areatree/src/java/org/foray/area/LeaderArea.java 2006-06-10 14:28:33 UTC (rev 7510) @@ -34,7 +34,6 @@ import org.axsl.areaR.RenderVisitor; import org.axsl.common.Constants; -import org.axsl.common.ConstantsAreaTree; /** * An Area containing a leader item. @@ -69,10 +68,6 @@ setProgressionDimension(initialProgressionDimension); } - public byte getAreaType() { - return ConstantsAreaTree.AREATYPE_LEADER; - } - /** * Pass-thru of the FOTree trait value, with one exception. In the case of * leader-pattern="rule", if the effective rule-thickness is 0, Modified: trunk/foray/foray-areatree/src/java/org/foray/area/LineArea.java =================================================================== --- trunk/foray/foray-areatree/src/java/org/foray/area/LineArea.java 2006-06-10 14:12:55 UTC (rev 7509) +++ trunk/foray/foray-areatree/src/java/org/foray/area/LineArea.java 2006-06-10 14:28:33 UTC (rev 7510) @@ -27,7 +27,6 @@ import org.axsl.areaR.RenderVisitor; import org.axsl.areaW.AreaWException; import org.axsl.common.Constants; -import org.axsl.common.ConstantsAreaTree; import org.axsl.foR.FOContext; import org.axsl.foR.FOText; import org.axsl.foR.FOTextContent; @@ -424,10 +423,6 @@ return !(children.size() > 0); } - public byte getAreaType() { - return ConstantsAreaTree.AREATYPE_LINE; - } - /** * @return True iff this is the first LineArea instance generated by the * parent Block. Modified: trunk/foray/foray-areatree/src/java/org/foray/area/ListBlockArea.java =================================================================== --- trunk/foray/foray-areatree/src/java/org/foray/area/ListBlockArea.java 2006-06-10 14:12:55 UTC (rev 7509) +++ trunk/foray/foray-areatree/src/java/org/foray/area/ListBlockArea.java 2006-06-10 14:28:33 UTC (rev 7510) @@ -25,7 +25,6 @@ package org.foray.area; import org.axsl.areaR.RenderVisitor; -import org.axsl.common.ConstantsAreaTree; import org.axsl.foR.fo.ListBlock; import org.axsl.foR.fo.ListItem; @@ -40,10 +39,6 @@ return new ListItemArea(listItem, this); } - public byte getAreaType() { - return ConstantsAreaTree.AREATYPE_LIST_BLOCK; - } - /** * {@inheritDoc} */ Modified: trunk/foray/foray-areatree/src/java/org/foray/area/MainRA.java =================================================================== --- trunk/foray/foray-areatree/src/java/org/foray/area/MainRA.java 2006-06-10 14:12:55 UTC (rev 7509) +++ trunk/foray/foray-areatree/src/java/org/foray/area/MainRA.java 2006-06-10 14:28:33 UTC (rev 7510) @@ -28,7 +28,6 @@ import org.axsl.areaR.RenderVisitor; import org.axsl.areaW.AreaWException; import org.axsl.common.Constants; -import org.axsl.common.ConstantsAreaTree; import org.axsl.foR.FObj; import org.axsl.foR.fo.Block; import org.axsl.foR.fo.BlockContainer; @@ -49,10 +48,6 @@ super(generatedBy, parentArea); } - public byte getAreaType() { - return ConstantsAreaTree.AREATYPE_MAIN_RA; - } - /** * Depending on the column-count of the next FO, determine whether * a new span area needs to be constructed or not, and return the Modified: trunk/foray/foray-areatree/src/java/org/foray/area/MarkerContentArea.java =================================================================== --- trunk/foray/foray-areatree/src/java/org/foray/area/MarkerContentArea.java 2006-06-10 14:12:55 UTC (rev 7509) +++ trunk/foray/foray-areatree/src/java/org/foray/area/MarkerContentArea.java 2006-06-10 14:28:33 UTC (rev 7510) @@ -25,7 +25,6 @@ package org.foray.area; import org.axsl.areaR.RenderVisitor; -import org.axsl.common.ConstantsAreaTree; import org.axsl.foR.fo.Marker; import org.axsl.foR.fo.RetrieveMarker; @@ -45,10 +44,6 @@ this.marker = marker; } - public byte getAreaType() { - return ConstantsAreaTree.AREATYPE_MARKER_CONTENT; - } - public String getAreaName() { return "marker-content"; } Modified: trunk/foray/foray-areatree/src/java/org/foray/area/NormalBlockArea.java =================================================================== --- trunk/foray/foray-areatree/src/java/org/foray/area/NormalBlockArea.java 2006-06-10 14:12:55 UTC (rev 7509) +++ trunk/foray/foray-areatree/src/java/org/foray/area/NormalBlockArea.java 2006-06-10 14:28:33 UTC (rev 7510) @@ -26,7 +26,6 @@ import org.axsl.areaR.RenderVisitor; import org.axsl.areaW.AreaWException; -import org.axsl.common.ConstantsAreaTree; import org.axsl.foR.FObj; import org.axsl.foR.fo.ListItem; import org.axsl.foR.fo.ListItemBody; @@ -75,10 +74,6 @@ return new LineArea(traitGeneratedBy(), this); } - public byte getAreaType() { - return ConstantsAreaTree.AREATYPE_BLOCK; - } - public Area getOverflowArea(Area childRequesting) throws AreaWException { Area overflow = getParentArea().getOverflowArea(this); if (overflow == null) { Modified: trunk/foray/foray-areatree/src/java/org/foray/area/NormalFlowRA.java =================================================================== --- trunk/foray/foray-areatree/src/java/org/foray/area/NormalFlowRA.java 2006-06-10 14:12:55 UTC (rev 7509) +++ trunk/foray/foray-areatree/src/java/org/foray/area/NormalFlowRA.java 2006-06-10 14:28:33 UTC (rev 7510) @@ -27,7 +27,6 @@ import org.axsl.areaR.NormalFlowArea; import org.axsl.areaR.RenderVisitor; import org.axsl.areaW.AreaWException; -import org.axsl.common.ConstantsAreaTree; import org.axsl.foR.FObj; /** @@ -57,10 +56,6 @@ throw new AreaWException("ColumnRA overflow failed."); } - public byte getAreaType() { - return ConstantsAreaTree.AREATYPE_COLUMN_RA; - } - public SpanRA getParentSpan() { return (SpanRA) getParentArea(); } Modified: trunk/foray/foray-areatree/src/java/org/foray/area/PageCollection.java =================================================================== --- trunk/foray/foray-areatree/src/java/org/foray/area/PageCollection.java 2006-06-10 14:12:55 UTC (rev 7509) +++ trunk/foray/foray-areatree/src/java/org/foray/area/PageCollection.java 2006-06-10 14:28:33 UTC (rev 7510) @@ -28,7 +28,6 @@ import org.axsl.areaW.AreaWException; import org.axsl.areaW.PageArea; import org.axsl.common.Constants; -import org.axsl.common.ConstantsAreaTree; import org.axsl.foR.FOTreeException; import org.axsl.foR.FObj; import org.axsl.foR.fo.PageSequence; @@ -305,10 +304,6 @@ getNextPage(false, false, true); } - public byte getAreaType() { - return ConstantsAreaTree.AREATYPE_PAGE_COLLECTION; - } - public AreaTree getAreaTree() { // Cast validated during construction. return (AreaTree) getParent(); Modified: trunk/foray/foray-areatree/src/java/org/foray/area/PageNumberArea.java =================================================================== --- trunk/foray/foray-areatree/src/java/org/foray/area/PageNumberArea.java 2006-06-10 14:12:55 UTC (rev 7509) +++ trunk/foray/foray-areatree/src/java/org/foray/area/PageNumberArea.java 2006-06-10 14:28:33 UTC (rev 7510) @@ -25,7 +25,6 @@ package org.foray.area; import org.axsl.areaR.RenderVisitor; -import org.axsl.common.ConstantsAreaTree; import org.axsl.foR.FObj; /** @@ -47,10 +46,6 @@ return text; } - public byte getAreaType() { - return ConstantsAreaTree.AREATYPE_PAGE_NUMBER_AREA; - } - /** * {@inheritDoc} */ Modified: trunk/foray/foray-areatree/src/java/org/foray/area/PageNumberCitationArea.java =================================================================== --- trunk/foray/foray-areatree/src/java/org/foray/area/PageNumberCitationArea.java 2006-06-10 14:12:55 UTC (rev 7509) +++ trunk/foray/foray-areatree/src/java/org/foray/area/PageNumberCitationArea.java 2006-06-10 14:28:33 UTC (rev 7510) @@ -25,7 +25,6 @@ package org.foray.area; import org.axsl.areaR.RenderVisitor; -import org.axsl.common.ConstantsAreaTree; import org.axsl.foR.FObj; public class PageNumberCitationArea extends AbstractInlineArea @@ -50,10 +49,6 @@ return text; } - public byte getAreaType() { - return ConstantsAreaTree.AREATYPE_PAGE_NUMBER_CITATION_AREA; - } - /** * {@inheritDoc} */ Modified: trunk/foray/foray-areatree/src/java/org/foray/area/PageRA.java =================================================================== --- trunk/foray/foray-areatree/src/java/org/foray/area/PageRA.java 2006-06-10 14:12:55 UTC (rev 7509) +++ trunk/foray/foray-areatree/src/java/org/foray/area/PageRA.java 2006-06-10 14:28:33 UTC (rev 7510) @@ -30,7 +30,6 @@ import org.axsl.areaR.RenderVisitor; import org.axsl.areaW.AreaWException; import org.axsl.common.Constants; -import org.axsl.common.ConstantsAreaTree; import org.axsl.foR.FObj; import org.axsl.foR.fo.Marker; import org.axsl.foR.fo.PageSequence; @@ -345,10 +344,6 @@ return null; } - public byte getAreaType() { - return ConstantsAreaTree.AREATYPE_PAGE; - } - public int crIPD() { if (getWritingMode().getIPAxis() == Constants.AXIS_HORIZONTAL) { return traitPageWidth() - getMarginLeft() - getMarginRight(); Modified: trunk/foray/foray-areatree/src/java/org/foray/area/RegionRA.java =================================================================== --- trunk/foray/foray-areatree/src/java/org/foray/area/RegionRA.java 2006-06-10 14:12:55 UTC (rev 7509) +++ trunk/foray/foray-areatree/src/java/org/foray/area/RegionRA.java 2006-06-10 14:28:33 UTC (rev 7510) @@ -26,7 +26,6 @@ import org.axsl.areaR.RegionArea; import org.axsl.areaR.RenderVisitor; -import org.axsl.common.ConstantsAreaTree; import org.axsl.foR.fo.Region; import org.axsl.foR.fo.RegionAfter; import org.axsl.foR.fo.RegionBefore; @@ -51,10 +50,6 @@ return ((Region) traitGeneratedBy()).getXPositionVP_CR(this); } - public byte getAreaType() { - return ConstantsAreaTree.AREATYPE_REGION_RA; - } - public int crBPD() { if (this.generatedBy.getFONode() instanceof RegionBefore || this.generatedBy.getFONode() instanceof RegionAfter) { Modified: trunk/foray/foray-areatree/src/java/org/foray/area/RegionRABody.java =================================================================== --- trunk/foray/foray-areatree/src/java/org/foray/area/RegionRABody.java 2006-06-10 14:12:55 UTC (rev 7509) +++ trunk/foray/foray-areatree/src/java/org/foray/area/RegionRABody.java 2006-06-10 14:28:33 UTC (rev 7510) @@ -29,7 +29,6 @@ import org.axsl.areaR.RenderVisitor; import org.axsl.areaW.AreaWException; import org.axsl.common.Constants; -import org.axsl.common.ConstantsAreaTree; import org.axsl.foR.fo.RegionBody; import org.axsl.foR.fo.SimplePageMaster; @@ -74,10 +73,6 @@ return footnoteReferenceArea; } - public byte getAreaType() { - return ConstantsAreaTree.AREATYPE_BODY_AREA_CONTAINER; - } - public int crBPD() { int dimension = getParentArea().brBPD(); if (this.getBPAxis() == Constants.AXIS_VERTICAL) { Modified: trunk/foray/foray-areatree/src/java/org/foray/area/SVGArea.java =================================================================== --- trunk/foray/foray-areatree/src/java/org/foray/area/SVGArea.java 2006-06-10 14:12:55 UTC (rev 7509) +++ trunk/foray/foray-areatree/src/java/org/foray/area/SVGArea.java 2006-06-10 14:28:33 UTC (rev 7510) @@ -26,7 +26,6 @@ import org.axsl.areaR.RenderVisitor; import org.axsl.areaW.AreaWException; -import org.axsl.common.ConstantsAreaTree; import org.axsl.foR.svg.SVGElement; import org.w3c.dom.svg.SVGDocument; @@ -52,10 +51,6 @@ return generatedBy.getSVGDocument(); } - public byte getAreaType() { - return ConstantsAreaTree.AREATYPE_SVG; - } - public Area getOverflowArea(Area childRequesting) throws AreaWException { return getParentArea().getOverflowArea(this); } Modified: trunk/foray/foray-areatree/src/java/org/foray/area/SpanRA.java =================================================================== --- trunk/foray/foray-areatree/src/java/org/foray/area/SpanRA.java 2006-06-10 14:12:55 UTC (rev 7509) +++ trunk/foray/foray-areatree/src/java/org/foray/area/SpanRA.java 2006-06-10 14:28:33 UTC (rev 7510) @@ -28,7 +28,6 @@ import org.axsl.areaR.SpanArea; import org.axsl.areaW.AreaWException; import org.axsl.common.Constants; -import org.axsl.common.ConstantsAreaTree; import org.axsl.foR.FObj; import org.axsl.foR.fo.RegionBody; @@ -120,10 +119,6 @@ return (currentColumn == traitColumnCount()); } - public byte getAreaType() { - return ConstantsAreaTree.AREATYPE_SPAN_RA; - } - public Area getOverflowArea(Area childRequesting) throws AreaWException { AreaNode nextColumn = (AreaNode) childRequesting.getNextSibling(); if (nextColumn != null & nextColumn instanceof Area) { Modified: trunk/foray/foray-areatree/src/java/org/foray/area/TableBodyContainer.java =================================================================== --- trunk/foray/foray-areatree/src/java/org/foray/area/TableBodyContainer.java 2006-06-10 14:12:55 UTC (rev 7509) +++ trunk/foray/foray-areatree/src/java/org/foray/area/TableBodyContainer.java 2006-06-10 14:28:33 UTC (rev 7510) @@ -25,7 +25,6 @@ package org.foray.area; import org.axsl.areaR.RenderVisitor; -import org.axsl.common.ConstantsAreaTree; import org.axsl.foR.FObj; public class TableBodyContainer extends AbstractTableContainer @@ -52,10 +51,6 @@ return this.yPosition; } - public byte getAreaType() { - return ConstantsAreaTree.AREATYPE_TABLE_BODY_RA; - } - /** * {@inheritDoc} */ Modified: trunk/foray/foray-areatree/src/java/org/foray/area/TableCellRA.java =================================================================== --- trunk/foray/foray-areatree/src/java/org/foray/area/TableCellRA.java 2006-06-10 14:12:55 UTC (rev 7509) +++ trunk/foray/foray-areatree/src/java/org/foray/area/TableCellRA.java 2006-06-10 14:28:33 UTC (rev 7510) @@ -27,7 +27,6 @@ import org.axsl.areaR.RenderVisitor; import org.axsl.areaR.TableCellArea; import org.axsl.common.Constants; -import org.axsl.common.ConstantsAreaTree; import org.axsl.foR.fo.TableCell; public class TableCellRA extends ContainerRA implements TableCellArea, @@ -77,10 +76,6 @@ return tableCellGeneratedBy().traitNumberColumnsSpanned(); } - public byte getAreaType() { - return ConstantsAreaTree.AREATYPE_TABLE_CELL_RA; - } - /** * @return Returns the centeringPaddingBottom. */ Modified: trunk/foray/foray-areatree/src/java/org/foray/area/TableFooterContainer.java =================================================================== --- trunk/foray/foray-areatree/src/java/org/foray/area/TableFooterContainer.java 2006-06-10 14:12:55 UTC (rev 7509) +++ trunk/foray/foray-areatree/src/java/org/foray/area/TableFooterContainer.java 2006-06-10 14:28:33 UTC (rev 7510) @@ -25,7 +25,6 @@ package org.foray.area; import org.axsl.areaR.RenderVisitor; -import org.axsl.common.ConstantsAreaTree; import org.axsl.foR.FObj; public class TableFooterContainer extends AbstractTableContainer @@ -52,10 +51,6 @@ return this.yPosition; } - public byte getAreaType() { - return ConstantsAreaTree.AREATYPE_TABLE_FOOTER_RA; - } - /** * {@inheritDoc} */ Modified: trunk/foray/foray-areatree/src/java/org/foray/area/TableHeaderContainer.java =================================================================== --- trunk/foray/foray-areatree/src/java/org/foray/area/TableHeaderContainer.java 2006-06-10 14:12:55 UTC (rev 7509) +++ trunk/foray/foray-areatree/src/java/org/foray/area/TableHeaderContainer.java 2006-06-10 14:28:33 UTC (rev 7510) @@ -25,7 +25,6 @@ package org.foray.area; import org.axsl.areaR.RenderVisitor; -import org.axsl.common.ConstantsAreaTree; import org.axsl.foR.FObj; public class TableHeaderContainer extends AbstractTableContainer @@ -52,10 +51,6 @@ return this.yPosition; } - public byte getAreaType() { - return ConstantsAreaTree.AREATYPE_TABLE_HEADER_RA; - } - /** * {@inheritDoc} */ Modified: trunk/foray/foray-areatree/src/java/org/foray/area/TableRA.java =================================================================== --- trunk/foray/foray-areatree/src/java/org/foray/area/TableRA.java 2006-06-10 14:12:55 UTC (rev 7509) +++ trunk/foray/foray-areatree/src/java/org/foray/area/TableRA.java 2006-06-10 14:28:33 UTC (rev 7510) @@ -28,7 +28,6 @@ import org.axsl.areaR.TableArea; import org.axsl.areaW.TableFooterContainer; import org.axsl.areaW.TableHeaderContainer; -import org.axsl.common.ConstantsAreaTree; import org.axsl.foR.FOContext; import org.axsl.foR.fo.Table; import org.axsl.foR.fo.TableBody; @@ -51,10 +50,6 @@ this.calcFixedColumnWidths(this.crIPD()); } - public byte getAreaType() { - return ConstantsAreaTree.AREATYPE_TABLE_RA; - } - /** * Computes the content-rectangle inline-progression-dimension of a * cell. Modified: trunk/foray/foray-areatree/src/java/org/foray/area/TableRowContainer.java =================================================================== --- trunk/foray/foray-areatree/src/java/org/foray/area/TableRowContainer.java 2006-06-10 14:12:55 UTC (rev 7509) +++ trunk/foray/foray-areatree/src/java/org/foray/area/TableRowContainer.java 2006-06-10 14:28:33 UTC (rev 7510) @@ -27,7 +27,6 @@ import org.axsl.areaR.RenderVisitor; import org.axsl.areaW.TableCellArea; import org.axsl.common.Constants; -import org.axsl.common.ConstantsAreaTree; import org.axsl.foR.fo.TableCell; import org.axsl.foR.fo.TableRow; @@ -44,10 +43,6 @@ super(generatedBy, parentArea); } - public byte getAreaType() { - return ConstantsAreaTree.AREATYPE_TABLE_ROW_RA; - } - /* * Overrides superclass method because TableRowContainer contents stack in * the IPD. Modified: trunk/foray/foray-areatree/src/java/org/foray/area/TextArea.java =================================================================== --- trunk/foray/foray-areatree/src/java/org/foray/area/TextArea.java 2006-06-10 14:12:55 UTC (rev 7509) +++ trunk/foray/foray-areatree/src/java/org/foray/area/TextArea.java 2006-06-10 14:28:33 UTC (rev 7510) @@ -28,7 +28,6 @@ import org.axsl.areaR.RenderVisitor; import org.axsl.common.Constants; -import org.axsl.common.ConstantsAreaTree; import org.axsl.foR.FONode; import org.axsl.foR.FOTextContent; import org.axsl.foR.FObj; @@ -183,10 +182,6 @@ return this.getTextContent().getAreaTreeText(this); } - public byte getAreaType() { - return ConstantsAreaTree.AREATYPE_TEXT_AREA; - } - /** * Overrides Area because line-areas have no borders or padding. See * XSL-FO Standard 1.0, Section 4.5. This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
|
From: <vic...@us...> - 2006-06-10 14:13:08
|
Revision: 7509 Author: victormote Date: 2006-06-10 07:12:55 -0700 (Sat, 10 Jun 2006) ViewCVS: http://svn.sourceforge.net/foray/?rev=7509&view=rev Log Message: ----------- Use new AreaTree Visitor pattern to eliminate dependency on type constants and casting. Modified Paths: -------------- trunk/foray/foray-render/src/java/org/foray/render/Renderer.java trunk/foray/foray-render/src/java/org/foray/render/awt/AWTRenderer.java trunk/foray/foray-render/src/java/org/foray/render/pcl/PCLRenderer.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/svg/SVGRenderer.java trunk/foray/foray-render/src/java/org/foray/render/txt/TXTRenderer.java trunk/foray/foray-render/src/java/org/foray/render/xml/XMLRenderer.java Modified: trunk/foray/foray-render/src/java/org/foray/render/Renderer.java =================================================================== --- trunk/foray/foray-render/src/java/org/foray/render/Renderer.java 2006-06-10 14:11:43 UTC (rev 7508) +++ trunk/foray/foray-render/src/java/org/foray/render/Renderer.java 2006-06-10 14:12:55 UTC (rev 7509) @@ -67,7 +67,6 @@ import org.axsl.areaR.TableHeaderContainer; import org.axsl.areaR.TableRowContainer; import org.axsl.areaR.TextArea; -import org.axsl.common.ConstantsAreaTree; import org.axsl.graphicR.Graphic; import org.axsl.graphicR.GraphicException; @@ -86,7 +85,7 @@ * fragment. */ public abstract class Renderer extends OutputTarget - implements org.axsl.output.Renderer { + implements org.axsl.output.Renderer, org.axsl.areaR.RenderVisitor { AreaTree areaTree; @@ -300,7 +299,7 @@ protected abstract void drawGraphic(Area area, Graphic image, Rectangle contentRectangle, Rectangle clipRectangle); - protected void render(AreaNode node) { + public void render(AreaNode node) { renderChildren(node); } @@ -330,12 +329,12 @@ * * @param area the area container to render */ - protected void render(BlockContainerArea area) { + public void render(BlockContainerArea area) { doFrame(area); renderChildren(area); } - protected void render(RegionBodyArea area) { + public void render(RegionBodyArea area) { markBackground(area); renderChildren(area); } @@ -345,7 +344,7 @@ * * @param area the region area container to render */ - protected void render(RegionArea area) { + public void render(RegionArea area) { markBackground(area); renderChildren(area); } @@ -353,19 +352,19 @@ /** * render the given span area */ - protected void render(SpanArea area) { + public void render(SpanArea area) { renderChildren(area); } - protected void render(NormalFlowArea area) { + public void render(NormalFlowArea area) { renderChildren(area); } - protected void renderChildren(AreaNode area) { + public void renderChildren(AreaNode area) { List children = area.getChildren(); for (int i = 0; i < children.size(); i++) { - AreaNode b = (AreaNode)children.get(i); - renderUnknownArea(b); + AreaNode child = (AreaNode)children.get(i); + child.render(this); } } @@ -374,7 +373,7 @@ * * @param area the block area to render */ - protected void render(NormalBlockArea area) { + public void render(NormalBlockArea area) { doFrame(area); renderChildren(area); } @@ -382,17 +381,17 @@ /** * render the given SVG area */ - protected abstract void render(SVGArea area); + public abstract void render(SVGArea area); /** * render a foreign object area */ - protected abstract void render(ForeignObjectArea area); + public abstract void render(ForeignObjectArea area); /** * render the given image area */ - protected void render(ExternalGraphicArea area) { + public void render(ExternalGraphicArea area) { Graphic graphic = area.getGraphic(); if (graphic == null) { getLogger().error("(Render) ImageArea contains no graphic."); @@ -407,7 +406,7 @@ * Render a table-reference-area. * @param area The TableRA instance to render. */ - protected void render(TableArea area) { + public void render(TableArea area) { Area[] backgroundAreas = area.getBackgroundAreas(); if (backgroundAreas != null) { for (int i = 0; i < backgroundAreas.length; i++) { @@ -444,22 +443,22 @@ } } - protected void render(TableRowContainer area) { + public void render(TableRowContainer area) { doFrame(area); renderChildren(area); } - protected void render(TableBodyContainer area) { + public void render(TableBodyContainer area) { markBackground(area); renderChildren(area); } - protected void render(TableHeaderContainer area) { + public void render(TableHeaderContainer area) { markBackground(area); renderChildren(area); } - protected void render(TableFooterContainer area) { + public void render(TableFooterContainer area) { markBackground(area); renderChildren(area); } @@ -469,7 +468,7 @@ * * @param area the area container to render */ - protected void render(TableCellArea area) { + public void render(TableCellArea area) { doFrame(area); renderChildren(area); } @@ -489,7 +488,7 @@ * Render a line-area. * @param area area to render */ - protected void render(LineArea area) { + public void render(LineArea area) { area.optimizeLine(); renderChildren(area); } @@ -497,40 +496,40 @@ /** * render the given leader area */ - protected abstract void render(LeaderArea area); + public abstract void render(LeaderArea area); - protected abstract void render(TextArea area); + public abstract void render(TextArea area); - protected abstract void render(BookmarkTreeArea area); + public abstract void render(BookmarkTreeArea area); - protected void render(FootnoteArea area) { + public void render(FootnoteArea area) { renderChildren(area); } - protected void render(BeforeFloatArea area) { + public void render(BeforeFloatArea area) { renderChildren(area); } - protected void render(MainReferenceArea area) { + public void render(MainReferenceArea area) { renderChildren(area); } - protected void render(PageNumberCitationArea area) { + public void render(PageNumberCitationArea area) { renderTextSegment(area, area.resolve().toCharArray()); } - protected void render(PageNumberArea area) { + public void render(PageNumberArea area) { renderTextSegment(area, area.resolve().toCharArray()); } - protected void render(BasicLinkArea area) { + public void render(BasicLinkArea area) { createBasicLink(area); renderChildren(area); } protected abstract void createBasicLink(BasicLinkArea area) ; - protected void render(InlineArea area) { + public void render(InlineArea area) { doFrame(area); renderChildren(area); } @@ -545,161 +544,12 @@ for (int i = 0; i < children.size(); i++) { AreaNode atNode = (AreaNode) children.get(i); if (! (atNode instanceof PageCollection)) { - renderUnknownArea(atNode); + render(atNode); } } } /** - * Render a generic area by first casting it to the proper subclass. - * This method uses contiguous integrals returned from the AreaNode - * subclasses to mimic inheritance. This allows us to keep the rendering - * logic out of the area tree. - * @param atNode The AreaNode that should be cast and rendered. - */ - protected void renderUnknownArea(AreaNode atNode) { - if (atNode == null) { - return; - } - /* - * Keep the items in order and contiguous for better performance. - */ - switch (atNode.getAreaType()) { - case ConstantsAreaTree.AREATYPE_BLOCK: { - render((NormalBlockArea) atNode); - return; - } - case ConstantsAreaTree.AREATYPE_FOREIGN_OBJECT: { - render((ForeignObjectArea) atNode); - return; - } - case ConstantsAreaTree.AREATYPE_BLOCK_CONTAINER: { - render((BlockContainerArea) atNode); - return; - } - case ConstantsAreaTree.AREATYPE_BODY_AREA_CONTAINER: { - render((RegionBodyArea) atNode); - return; - } - case ConstantsAreaTree.AREATYPE_LINE: { - render((LineArea) atNode); - return; - } - case ConstantsAreaTree.AREATYPE_IMAGE: { - render((ExternalGraphicArea) atNode); - return; - } - case ConstantsAreaTree.AREATYPE_SVG: { - render((SVGArea) atNode); - return; - } - case ConstantsAreaTree.AREATYPE_LEADER: { - render((LeaderArea) atNode); - return; - } - case ConstantsAreaTree.AREATYPE_EXTENSION: { - /* There is nothing to do here. */ - render(atNode); - return; - } - case ConstantsAreaTree.AREATYPE_REGION_RA: { - render((RegionArea) atNode); - return; - } - case ConstantsAreaTree.AREATYPE_FOOTNOTE_RA: { - render((FootnoteArea) atNode); - return; - } - case ConstantsAreaTree.AREATYPE_BEFORE_FLOAT_RA: { - render((BeforeFloatArea) atNode); - return; - } - case ConstantsAreaTree.AREATYPE_MAIN_RA: { - render((MainReferenceArea) atNode); - return; - } - case ConstantsAreaTree.AREATYPE_SPAN_RA: { - render((SpanArea) atNode); - return; - } - case ConstantsAreaTree.AREATYPE_COLUMN_RA: { - render((NormalFlowArea) atNode); - return; - } - case ConstantsAreaTree.AREATYPE_TABLE_RA: { - render((TableArea) atNode); - return; - } - case ConstantsAreaTree.AREATYPE_GENERIC_CONTAINER: { - render(atNode); - return; - } - case ConstantsAreaTree.AREATYPE_TABLE_CELL_RA: { - render((TableCellArea) atNode); - return; - } - case ConstantsAreaTree.AREATYPE_TABLE_COLUMN_RA: { - return; - } - case ConstantsAreaTree.AREATYPE_TABLE_ROW_RA: { - render((TableRowContainer) atNode); - return; - } - case ConstantsAreaTree.AREATYPE_TABLE_BODY_RA: { - render((TableBodyContainer) atNode); - return; - } - case ConstantsAreaTree.AREATYPE_TABLE_HEADER_RA: { - render((TableHeaderContainer) atNode); - return; - } - case ConstantsAreaTree.AREATYPE_TABLE_FOOTER_RA: { - render((TableFooterContainer) atNode); - return; - } - case ConstantsAreaTree.AREATYPE_BOOKMARK: { - render(atNode); - return; - } - case ConstantsAreaTree.AREATYPE_DESTINATION: { - render(atNode); - return; - } - case ConstantsAreaTree.AREATYPE_BLOCK_GROUP: { - render(atNode); - return; - } - case ConstantsAreaTree.AREATYPE_TEXT_AREA: { - render((TextArea) atNode); - return; - } - case ConstantsAreaTree.AREATYPE_PAGE_NUMBER_CITATION_AREA: { - render((PageNumberCitationArea) atNode); - return; - } - case ConstantsAreaTree.AREATYPE_BOOKMARK_TREE: { - render((BookmarkTreeArea) atNode); - return; - } - case ConstantsAreaTree.AREATYPE_PAGE_NUMBER_AREA: { - render((PageNumberArea) atNode); - return; - } - case ConstantsAreaTree.AREATYPE_BASIC_LINK: { - render((BasicLinkArea) atNode); - return; - } - case ConstantsAreaTree.AREATYPE_INLINE: { - render((InlineArea) atNode); - return; - } - default: { - render(atNode); - } - } - } - - /** * Provides the Renderer with an opportunity to close any text objects that * are in progress. */ Modified: trunk/foray/foray-render/src/java/org/foray/render/awt/AWTRenderer.java =================================================================== --- trunk/foray/foray-render/src/java/org/foray/render/awt/AWTRenderer.java 2006-06-10 14:11:43 UTC (rev 7508) +++ trunk/foray/foray-render/src/java/org/foray/render/awt/AWTRenderer.java 2006-06-10 14:12:55 UTC (rev 7509) @@ -865,7 +865,7 @@ */ public void render(ForeignObjectArea area) { - renderUnknownArea(area.getContainedForeignObject()); + render(area.getContainedForeignObject()); } public void startOutput() throws IOException {} Modified: trunk/foray/foray-render/src/java/org/foray/render/pcl/PCLRenderer.java =================================================================== --- trunk/foray/foray-render/src/java/org/foray/render/pcl/PCLRenderer.java 2006-06-10 14:11:43 UTC (rev 7508) +++ trunk/foray/foray-render/src/java/org/foray/render/pcl/PCLRenderer.java 2006-06-10 14:12:55 UTC (rev 7509) @@ -441,7 +441,7 @@ case Constants.FOVAL_HIDDEN: break; } - renderUnknownArea(area.getContainedForeignObject()); + render(area.getContainedForeignObject()); } /** 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-06-10 14:11:43 UTC (rev 7508) +++ trunk/foray/foray-render/src/java/org/foray/render/pdf/PDFRenderer.java 2006-06-10 14:12:55 UTC (rev 7509) @@ -239,7 +239,7 @@ * @param area the foreign object area to be rendered */ public void render(ForeignObjectArea area) { - renderUnknownArea(area.getContainedForeignObject()); + render(area.getContainedForeignObject()); } /** 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-06-10 14:11:43 UTC (rev 7508) +++ trunk/foray/foray-render/src/java/org/foray/render/ps/PSRenderer.java 2006-06-10 14:12:55 UTC (rev 7509) @@ -438,7 +438,7 @@ * render a foreign object area */ public void render(ForeignObjectArea area) { - renderUnknownArea(area.getContainedForeignObject()); + render(area.getContainedForeignObject()); } /** Modified: trunk/foray/foray-render/src/java/org/foray/render/svg/SVGRenderer.java =================================================================== --- trunk/foray/foray-render/src/java/org/foray/render/svg/SVGRenderer.java 2006-06-10 14:11:43 UTC (rev 7508) +++ trunk/foray/foray-render/src/java/org/foray/render/svg/SVGRenderer.java 2006-06-10 14:12:55 UTC (rev 7509) @@ -522,7 +522,7 @@ } public void render(ForeignObjectArea area) { - renderUnknownArea(area.getContainedForeignObject()); + render(area.getContainedForeignObject()); } public void startOutput() throws IOException { Modified: trunk/foray/foray-render/src/java/org/foray/render/txt/TXTRenderer.java =================================================================== --- trunk/foray/foray-render/src/java/org/foray/render/txt/TXTRenderer.java 2006-06-10 14:11:43 UTC (rev 7508) +++ trunk/foray/foray-render/src/java/org/foray/render/txt/TXTRenderer.java 2006-06-10 14:12:55 UTC (rev 7509) @@ -440,7 +440,7 @@ case Constants.FOVAL_HIDDEN: break; } - renderUnknownArea(area.getContainedForeignObject()); + render(area.getContainedForeignObject()); } 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-06-10 14:11:43 UTC (rev 7508) +++ trunk/foray/foray-render/src/java/org/foray/render/xml/XMLRenderer.java 2006-06-10 14:12:55 UTC (rev 7509) @@ -472,7 +472,7 @@ this.writer.write("</content>\n"); } - protected void render(PageNumberCitationArea area) { + public void render(PageNumberCitationArea area) { StringBuffer buffer = new StringBuffer(); outputGeneratedBy(area, buffer); outputDimension(area, buffer); @@ -482,7 +482,7 @@ writeEndTag(area); } - protected void render(BasicLinkArea area) { + public void render(BasicLinkArea area) { StringBuffer buffer = new StringBuffer(); outputGeneratedBy(area, buffer); outputDimension(area, buffer); @@ -492,7 +492,7 @@ writeEndTag(area); } - protected void render(InlineArea area) { + public void render(InlineArea area) { StringBuffer buffer = new StringBuffer(); outputGeneratedBy(area, buffer); outputDimension(area, buffer); @@ -502,7 +502,7 @@ writeEndTag(area); } - protected void render(TableArea area) { + public void render(TableArea area) { StringBuffer buffer = new StringBuffer(); outputGeneratedBy(area, buffer); outputDimension(area, buffer); @@ -512,7 +512,7 @@ writeEndTag(area); } - protected void render(TableHeaderContainer area) { + public void render(TableHeaderContainer area) { StringBuffer buffer = new StringBuffer(); outputGeneratedBy(area, buffer); outputDimension(area, buffer); @@ -522,7 +522,7 @@ writeEndTag(area); } - protected void render(TableFooterContainer area) { + public void render(TableFooterContainer area) { StringBuffer buffer = new StringBuffer(); outputGeneratedBy(area, buffer); outputDimension(area, buffer); @@ -532,7 +532,7 @@ writeEndTag(area); } - protected void render(TableBodyContainer area) { + public void render(TableBodyContainer area) { StringBuffer buffer = new StringBuffer(); outputGeneratedBy(area, buffer); outputDimension(area, buffer); @@ -542,7 +542,7 @@ writeEndTag(area); } - protected void render(TableRowContainer area) { + public void render(TableRowContainer area) { StringBuffer buffer = new StringBuffer(); outputGeneratedBy(area, buffer); outputDimension(area, buffer); @@ -552,7 +552,7 @@ writeEndTag(area); } - protected void render(TableCellArea area) { + public void render(TableCellArea area) { StringBuffer buffer = new StringBuffer(); outputGeneratedBy(area, buffer); outputDimension(area, buffer); @@ -562,7 +562,7 @@ writeEndTag(area); } - protected void render(AreaNode node) { + public void render(AreaNode node) { writeStartTag(node, null); renderChildren(node); writeEndTag(node); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
|
From: <vic...@us...> - 2006-06-10 14:12:18
|
Revision: 7508 Author: victormote Date: 2006-06-10 07:11:43 -0700 (Sat, 10 Jun 2006) ViewCVS: http://svn.sourceforge.net/foray/?rev=7508&view=rev Log Message: ----------- Conform to axsl changes: Expose a Visitor pattern that can be used to allow an Area to cast itself properly for an external Renderer. Modified Paths: -------------- trunk/foray/foray-areatree/src/java/org/foray/area/AreaTree.java trunk/foray/foray-areatree/src/java/org/foray/area/BasicLinkArea.java trunk/foray/foray-areatree/src/java/org/foray/area/BeforeFloatRA.java trunk/foray/foray-areatree/src/java/org/foray/area/BlockContainerRA.java trunk/foray/foray-areatree/src/java/org/foray/area/BookmarkArea.java trunk/foray/foray-areatree/src/java/org/foray/area/BookmarkTitleArea.java trunk/foray/foray-areatree/src/java/org/foray/area/BookmarkTreeArea.java trunk/foray/foray-areatree/src/java/org/foray/area/ExternalGraphicArea.java trunk/foray/foray-areatree/src/java/org/foray/area/FootnoteRA.java trunk/foray/foray-areatree/src/java/org/foray/area/ForeignObjectArea.java trunk/foray/foray-areatree/src/java/org/foray/area/InlineArea.java trunk/foray/foray-areatree/src/java/org/foray/area/LeaderArea.java trunk/foray/foray-areatree/src/java/org/foray/area/LineArea.java trunk/foray/foray-areatree/src/java/org/foray/area/ListBlockArea.java trunk/foray/foray-areatree/src/java/org/foray/area/MainRA.java trunk/foray/foray-areatree/src/java/org/foray/area/MarkerContentArea.java trunk/foray/foray-areatree/src/java/org/foray/area/NormalBlockArea.java trunk/foray/foray-areatree/src/java/org/foray/area/NormalFlowRA.java trunk/foray/foray-areatree/src/java/org/foray/area/PageCollection.java trunk/foray/foray-areatree/src/java/org/foray/area/PageNumberArea.java trunk/foray/foray-areatree/src/java/org/foray/area/PageNumberCitationArea.java trunk/foray/foray-areatree/src/java/org/foray/area/PageRA.java trunk/foray/foray-areatree/src/java/org/foray/area/RegionRA.java trunk/foray/foray-areatree/src/java/org/foray/area/RegionRABody.java trunk/foray/foray-areatree/src/java/org/foray/area/SVGArea.java trunk/foray/foray-areatree/src/java/org/foray/area/SpanRA.java trunk/foray/foray-areatree/src/java/org/foray/area/TableBodyContainer.java trunk/foray/foray-areatree/src/java/org/foray/area/TableCellRA.java trunk/foray/foray-areatree/src/java/org/foray/area/TableFooterContainer.java trunk/foray/foray-areatree/src/java/org/foray/area/TableHeaderContainer.java trunk/foray/foray-areatree/src/java/org/foray/area/TableRA.java trunk/foray/foray-areatree/src/java/org/foray/area/TableRowContainer.java trunk/foray/foray-areatree/src/java/org/foray/area/TextArea.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-06-10 13:03:09 UTC (rev 7507) +++ trunk/foray/foray-areatree/src/java/org/foray/area/AreaTree.java 2006-06-10 14:11:43 UTC (rev 7508) @@ -24,6 +24,7 @@ package org.foray.area; +import org.axsl.areaR.RenderVisitor; import org.axsl.areaW.Area; import org.axsl.areaW.AreaTreeEvent; import org.axsl.areaW.AreaTreeListener; @@ -233,4 +234,8 @@ return "area-tree"; } + public void render(RenderVisitor visitor) { + visitor.render(this); + } + } Modified: trunk/foray/foray-areatree/src/java/org/foray/area/BasicLinkArea.java =================================================================== --- trunk/foray/foray-areatree/src/java/org/foray/area/BasicLinkArea.java 2006-06-10 13:03:09 UTC (rev 7507) +++ trunk/foray/foray-areatree/src/java/org/foray/area/BasicLinkArea.java 2006-06-10 14:11:43 UTC (rev 7508) @@ -24,6 +24,7 @@ package org.foray.area; +import org.axsl.areaR.RenderVisitor; import org.axsl.common.ConstantsAreaTree; import org.axsl.foR.fo.BasicLink; @@ -61,4 +62,8 @@ return "basic-link"; } + public void render(RenderVisitor visitor) { + visitor.render(this); + } + } Modified: trunk/foray/foray-areatree/src/java/org/foray/area/BeforeFloatRA.java =================================================================== --- trunk/foray/foray-areatree/src/java/org/foray/area/BeforeFloatRA.java 2006-06-10 13:03:09 UTC (rev 7507) +++ trunk/foray/foray-areatree/src/java/org/foray/area/BeforeFloatRA.java 2006-06-10 14:11:43 UTC (rev 7508) @@ -24,6 +24,7 @@ package org.foray.area; +import org.axsl.areaR.RenderVisitor; import org.axsl.areaW.AreaWException; import org.axsl.common.ConstantsAreaTree; import org.axsl.foR.FObj; @@ -93,4 +94,8 @@ this.getRegionBodyArea().incrementBeforeFloatDimension(incrementAmount); } + public void render(RenderVisitor visitor) { + visitor.render(this); + } + } Modified: trunk/foray/foray-areatree/src/java/org/foray/area/BlockContainerRA.java =================================================================== --- trunk/foray/foray-areatree/src/java/org/foray/area/BlockContainerRA.java 2006-06-10 13:03:09 UTC (rev 7507) +++ trunk/foray/foray-areatree/src/java/org/foray/area/BlockContainerRA.java 2006-06-10 14:11:43 UTC (rev 7508) @@ -25,6 +25,7 @@ package org.foray.area; import org.axsl.areaR.BlockContainerArea; +import org.axsl.areaR.RenderVisitor; import org.axsl.common.Constants; import org.axsl.common.ConstantsAreaTree; import org.axsl.foR.FObj; @@ -80,4 +81,8 @@ return "block-container"; } + public void render(RenderVisitor visitor) { + visitor.render(this); + } + } Modified: trunk/foray/foray-areatree/src/java/org/foray/area/BookmarkArea.java =================================================================== --- trunk/foray/foray-areatree/src/java/org/foray/area/BookmarkArea.java 2006-06-10 13:03:09 UTC (rev 7507) +++ trunk/foray/foray-areatree/src/java/org/foray/area/BookmarkArea.java 2006-06-10 14:11:43 UTC (rev 7508) @@ -25,6 +25,7 @@ package org.foray.area; import org.axsl.areaR.BookmarkTitleArea; +import org.axsl.areaR.RenderVisitor; import org.axsl.common.ConstantsAreaTree; import org.axsl.foR.fo.Bookmark; @@ -57,4 +58,8 @@ return "bookmark"; } + public void render(RenderVisitor visitor) { + visitor.render(this); + } + } Modified: trunk/foray/foray-areatree/src/java/org/foray/area/BookmarkTitleArea.java =================================================================== --- trunk/foray/foray-areatree/src/java/org/foray/area/BookmarkTitleArea.java 2006-06-10 13:03:09 UTC (rev 7507) +++ trunk/foray/foray-areatree/src/java/org/foray/area/BookmarkTitleArea.java 2006-06-10 14:11:43 UTC (rev 7508) @@ -24,6 +24,7 @@ package org.foray.area; +import org.axsl.areaR.RenderVisitor; import org.axsl.common.ConstantsAreaTree; import org.axsl.foR.fo.BookmarkTitle; @@ -54,4 +55,8 @@ return "bookmark-title"; } + public void render(RenderVisitor visitor) { + visitor.render(this); + } + } Modified: trunk/foray/foray-areatree/src/java/org/foray/area/BookmarkTreeArea.java =================================================================== --- trunk/foray/foray-areatree/src/java/org/foray/area/BookmarkTreeArea.java 2006-06-10 13:03:09 UTC (rev 7507) +++ trunk/foray/foray-areatree/src/java/org/foray/area/BookmarkTreeArea.java 2006-06-10 14:11:43 UTC (rev 7508) @@ -24,6 +24,7 @@ package org.foray.area; +import org.axsl.areaR.RenderVisitor; import org.axsl.common.ConstantsAreaTree; import org.axsl.foR.fo.BookmarkTree; @@ -48,4 +49,8 @@ return "bookmark-tree"; } + public void render(RenderVisitor visitor) { + visitor.render(this); + } + } Modified: trunk/foray/foray-areatree/src/java/org/foray/area/ExternalGraphicArea.java =================================================================== --- trunk/foray/foray-areatree/src/java/org/foray/area/ExternalGraphicArea.java 2006-06-10 13:03:09 UTC (rev 7507) +++ trunk/foray/foray-areatree/src/java/org/foray/area/ExternalGraphicArea.java 2006-06-10 14:11:43 UTC (rev 7508) @@ -24,6 +24,7 @@ package org.foray.area; +import org.axsl.areaR.RenderVisitor; import org.axsl.common.ConstantsAreaTree; import org.axsl.foR.fo.ExternalGraphic; @@ -73,4 +74,8 @@ return "external-graphic"; } + public void render(RenderVisitor visitor) { + visitor.render(this); + } + } Modified: trunk/foray/foray-areatree/src/java/org/foray/area/FootnoteRA.java =================================================================== --- trunk/foray/foray-areatree/src/java/org/foray/area/FootnoteRA.java 2006-06-10 13:03:09 UTC (rev 7507) +++ trunk/foray/foray-areatree/src/java/org/foray/area/FootnoteRA.java 2006-06-10 14:11:43 UTC (rev 7508) @@ -24,6 +24,7 @@ package org.foray.area; +import org.axsl.areaR.RenderVisitor; import org.axsl.areaW.AreaWException; import org.axsl.common.ConstantsAreaTree; import org.axsl.foR.FObj; @@ -104,4 +105,8 @@ this.getRegionBodyArea().incrementFootnoteDimension(incrementAmount); } + public void render(RenderVisitor visitor) { + visitor.render(this); + } + } Modified: trunk/foray/foray-areatree/src/java/org/foray/area/ForeignObjectArea.java =================================================================== --- trunk/foray/foray-areatree/src/java/org/foray/area/ForeignObjectArea.java 2006-06-10 13:03:09 UTC (rev 7507) +++ trunk/foray/foray-areatree/src/java/org/foray/area/ForeignObjectArea.java 2006-06-10 14:11:43 UTC (rev 7508) @@ -24,6 +24,7 @@ package org.foray.area; +import org.axsl.areaR.RenderVisitor; import org.axsl.common.ConstantsAreaTree; import org.axsl.foR.ForeignXML; import org.axsl.foR.fo.InstreamForeignObject; @@ -80,4 +81,8 @@ return "foreign-object"; } + public void render(RenderVisitor visitor) { + visitor.render(this); + } + } Modified: trunk/foray/foray-areatree/src/java/org/foray/area/InlineArea.java =================================================================== --- trunk/foray/foray-areatree/src/java/org/foray/area/InlineArea.java 2006-06-10 13:03:09 UTC (rev 7507) +++ trunk/foray/foray-areatree/src/java/org/foray/area/InlineArea.java 2006-06-10 14:11:43 UTC (rev 7508) @@ -24,6 +24,7 @@ package org.foray.area; +import org.axsl.areaR.RenderVisitor; import org.axsl.common.ConstantsAreaTree; import org.axsl.foR.FOText; import org.axsl.foR.fo.ExternalGraphic; @@ -91,4 +92,8 @@ isLastItemOnLine, this); } + public void render(RenderVisitor visitor) { + visitor.render(this); + } + } Modified: trunk/foray/foray-areatree/src/java/org/foray/area/LeaderArea.java =================================================================== --- trunk/foray/foray-areatree/src/java/org/foray/area/LeaderArea.java 2006-06-10 13:03:09 UTC (rev 7507) +++ trunk/foray/foray-areatree/src/java/org/foray/area/LeaderArea.java 2006-06-10 14:11:43 UTC (rev 7508) @@ -32,6 +32,7 @@ import org.axsl.foR.fo.PageNumber; import org.axsl.foR.fo.PageNumberCitation; +import org.axsl.areaR.RenderVisitor; import org.axsl.common.Constants; import org.axsl.common.ConstantsAreaTree; @@ -289,4 +290,8 @@ isLastItemOnLine, this); } + public void render(RenderVisitor visitor) { + visitor.render(this); + } + } Modified: trunk/foray/foray-areatree/src/java/org/foray/area/LineArea.java =================================================================== --- trunk/foray/foray-areatree/src/java/org/foray/area/LineArea.java 2006-06-10 13:03:09 UTC (rev 7507) +++ trunk/foray/foray-areatree/src/java/org/foray/area/LineArea.java 2006-06-10 14:11:43 UTC (rev 7508) @@ -24,6 +24,7 @@ package org.foray.area; +import org.axsl.areaR.RenderVisitor; import org.axsl.areaW.AreaWException; import org.axsl.common.Constants; import org.axsl.common.ConstantsAreaTree; @@ -916,4 +917,8 @@ return "line"; } + public void render(RenderVisitor visitor) { + visitor.render(this); + } + } Modified: trunk/foray/foray-areatree/src/java/org/foray/area/ListBlockArea.java =================================================================== --- trunk/foray/foray-areatree/src/java/org/foray/area/ListBlockArea.java 2006-06-10 13:03:09 UTC (rev 7507) +++ trunk/foray/foray-areatree/src/java/org/foray/area/ListBlockArea.java 2006-06-10 14:11:43 UTC (rev 7508) @@ -24,6 +24,7 @@ package org.foray.area; +import org.axsl.areaR.RenderVisitor; import org.axsl.common.ConstantsAreaTree; import org.axsl.foR.fo.ListBlock; import org.axsl.foR.fo.ListItem; @@ -55,4 +56,8 @@ return null; } + public void render(RenderVisitor visitor) { + visitor.render(this); + } + } Modified: trunk/foray/foray-areatree/src/java/org/foray/area/MainRA.java =================================================================== --- trunk/foray/foray-areatree/src/java/org/foray/area/MainRA.java 2006-06-10 13:03:09 UTC (rev 7507) +++ trunk/foray/foray-areatree/src/java/org/foray/area/MainRA.java 2006-06-10 14:11:43 UTC (rev 7508) @@ -25,6 +25,7 @@ package org.foray.area; import org.axsl.areaR.MainReferenceArea; +import org.axsl.areaR.RenderVisitor; import org.axsl.areaW.AreaWException; import org.axsl.common.Constants; import org.axsl.common.ConstantsAreaTree; @@ -267,4 +268,8 @@ return "main"; } + public void render(RenderVisitor visitor) { + visitor.render(this); + } + } Modified: trunk/foray/foray-areatree/src/java/org/foray/area/MarkerContentArea.java =================================================================== --- trunk/foray/foray-areatree/src/java/org/foray/area/MarkerContentArea.java 2006-06-10 13:03:09 UTC (rev 7507) +++ trunk/foray/foray-areatree/src/java/org/foray/area/MarkerContentArea.java 2006-06-10 14:11:43 UTC (rev 7508) @@ -24,6 +24,7 @@ package org.foray.area; +import org.axsl.areaR.RenderVisitor; import org.axsl.common.ConstantsAreaTree; import org.axsl.foR.fo.Marker; import org.axsl.foR.fo.RetrieveMarker; @@ -61,4 +62,8 @@ return (RetrieveMarker) this.generatedBy; } + public void render(RenderVisitor visitor) { + visitor.render(this); + } + } Modified: trunk/foray/foray-areatree/src/java/org/foray/area/NormalBlockArea.java =================================================================== --- trunk/foray/foray-areatree/src/java/org/foray/area/NormalBlockArea.java 2006-06-10 13:03:09 UTC (rev 7507) +++ trunk/foray/foray-areatree/src/java/org/foray/area/NormalBlockArea.java 2006-06-10 14:11:43 UTC (rev 7508) @@ -24,6 +24,7 @@ package org.foray.area; +import org.axsl.areaR.RenderVisitor; import org.axsl.areaW.AreaWException; import org.axsl.common.ConstantsAreaTree; import org.axsl.foR.FObj; @@ -178,4 +179,8 @@ return "normal-block"; } + public void render(RenderVisitor visitor) { + visitor.render(this); + } + } Modified: trunk/foray/foray-areatree/src/java/org/foray/area/NormalFlowRA.java =================================================================== --- trunk/foray/foray-areatree/src/java/org/foray/area/NormalFlowRA.java 2006-06-10 13:03:09 UTC (rev 7507) +++ trunk/foray/foray-areatree/src/java/org/foray/area/NormalFlowRA.java 2006-06-10 14:11:43 UTC (rev 7508) @@ -25,6 +25,7 @@ package org.foray.area; import org.axsl.areaR.NormalFlowArea; +import org.axsl.areaR.RenderVisitor; import org.axsl.areaW.AreaWException; import org.axsl.common.ConstantsAreaTree; import org.axsl.foR.FObj; @@ -117,4 +118,8 @@ return "normal-flow"; } + public void render(RenderVisitor visitor) { + visitor.render(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-06-10 13:03:09 UTC (rev 7507) +++ trunk/foray/foray-areatree/src/java/org/foray/area/PageCollection.java 2006-06-10 14:11:43 UTC (rev 7508) @@ -24,6 +24,7 @@ package org.foray.area; +import org.axsl.areaR.RenderVisitor; import org.axsl.areaW.AreaWException; import org.axsl.areaW.PageArea; import org.axsl.common.Constants; @@ -376,4 +377,8 @@ return "page-collection"; } + public void render(RenderVisitor visitor) { + visitor.render(this); + } + } Modified: trunk/foray/foray-areatree/src/java/org/foray/area/PageNumberArea.java =================================================================== --- trunk/foray/foray-areatree/src/java/org/foray/area/PageNumberArea.java 2006-06-10 13:03:09 UTC (rev 7507) +++ trunk/foray/foray-areatree/src/java/org/foray/area/PageNumberArea.java 2006-06-10 14:11:43 UTC (rev 7508) @@ -24,6 +24,7 @@ package org.foray.area; +import org.axsl.areaR.RenderVisitor; import org.axsl.common.ConstantsAreaTree; import org.axsl.foR.FObj; @@ -57,4 +58,8 @@ return "page-number"; } + public void render(RenderVisitor visitor) { + visitor.render(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-06-10 13:03:09 UTC (rev 7507) +++ trunk/foray/foray-areatree/src/java/org/foray/area/PageNumberCitationArea.java 2006-06-10 14:11:43 UTC (rev 7508) @@ -24,6 +24,7 @@ package org.foray.area; +import org.axsl.areaR.RenderVisitor; import org.axsl.common.ConstantsAreaTree; import org.axsl.foR.FObj; @@ -70,4 +71,8 @@ return "page-number-citation"; } + public void render(RenderVisitor visitor) { + visitor.render(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-06-10 13:03:09 UTC (rev 7507) +++ trunk/foray/foray-areatree/src/java/org/foray/area/PageRA.java 2006-06-10 14:11:43 UTC (rev 7508) @@ -27,6 +27,7 @@ import org.axsl.areaR.PageArea; import org.axsl.areaR.RegionArea; import org.axsl.areaR.RegionBodyArea; +import org.axsl.areaR.RenderVisitor; import org.axsl.areaW.AreaWException; import org.axsl.common.Constants; import org.axsl.common.ConstantsAreaTree; @@ -575,4 +576,8 @@ return "page"; } + public void render(RenderVisitor visitor) { + visitor.render(this); + } + } Modified: trunk/foray/foray-areatree/src/java/org/foray/area/RegionRA.java =================================================================== --- trunk/foray/foray-areatree/src/java/org/foray/area/RegionRA.java 2006-06-10 13:03:09 UTC (rev 7507) +++ trunk/foray/foray-areatree/src/java/org/foray/area/RegionRA.java 2006-06-10 14:11:43 UTC (rev 7508) @@ -25,6 +25,7 @@ package org.foray.area; import org.axsl.areaR.RegionArea; +import org.axsl.areaR.RenderVisitor; import org.axsl.common.ConstantsAreaTree; import org.axsl.foR.fo.Region; import org.axsl.foR.fo.RegionAfter; @@ -120,4 +121,8 @@ return this.generatedByName(); } + public void render(RenderVisitor visitor) { + visitor.render(this); + } + } Modified: trunk/foray/foray-areatree/src/java/org/foray/area/RegionRABody.java =================================================================== --- trunk/foray/foray-areatree/src/java/org/foray/area/RegionRABody.java 2006-06-10 13:03:09 UTC (rev 7507) +++ trunk/foray/foray-areatree/src/java/org/foray/area/RegionRABody.java 2006-06-10 14:11:43 UTC (rev 7508) @@ -26,6 +26,7 @@ import org.axsl.areaR.MainReferenceArea; import org.axsl.areaR.RegionBodyArea; +import org.axsl.areaR.RenderVisitor; import org.axsl.areaW.AreaWException; import org.axsl.common.Constants; import org.axsl.common.ConstantsAreaTree; @@ -226,4 +227,8 @@ this.dimensionBeforeFloatRA += incrementAmount; } + public void render(RenderVisitor visitor) { + visitor.render(this); + } + } Modified: trunk/foray/foray-areatree/src/java/org/foray/area/SVGArea.java =================================================================== --- trunk/foray/foray-areatree/src/java/org/foray/area/SVGArea.java 2006-06-10 13:03:09 UTC (rev 7507) +++ trunk/foray/foray-areatree/src/java/org/foray/area/SVGArea.java 2006-06-10 14:11:43 UTC (rev 7508) @@ -24,6 +24,7 @@ package org.foray.area; +import org.axsl.areaR.RenderVisitor; import org.axsl.areaW.AreaWException; import org.axsl.common.ConstantsAreaTree; import org.axsl.foR.svg.SVGElement; @@ -66,4 +67,8 @@ return "svg"; } + public void render(RenderVisitor visitor) { + visitor.render(this); + } + } Modified: trunk/foray/foray-areatree/src/java/org/foray/area/SpanRA.java =================================================================== --- trunk/foray/foray-areatree/src/java/org/foray/area/SpanRA.java 2006-06-10 13:03:09 UTC (rev 7507) +++ trunk/foray/foray-areatree/src/java/org/foray/area/SpanRA.java 2006-06-10 14:11:43 UTC (rev 7508) @@ -24,6 +24,7 @@ package org.foray.area; +import org.axsl.areaR.RenderVisitor; import org.axsl.areaR.SpanArea; import org.axsl.areaW.AreaWException; import org.axsl.common.Constants; @@ -283,4 +284,8 @@ return "span"; } + public void render(RenderVisitor visitor) { + visitor.render(this); + } + } Modified: trunk/foray/foray-areatree/src/java/org/foray/area/TableBodyContainer.java =================================================================== --- trunk/foray/foray-areatree/src/java/org/foray/area/TableBodyContainer.java 2006-06-10 13:03:09 UTC (rev 7507) +++ trunk/foray/foray-areatree/src/java/org/foray/area/TableBodyContainer.java 2006-06-10 14:11:43 UTC (rev 7508) @@ -24,6 +24,7 @@ package org.foray.area; +import org.axsl.areaR.RenderVisitor; import org.axsl.common.ConstantsAreaTree; import org.axsl.foR.FObj; @@ -62,4 +63,8 @@ return "table-body"; } + public void render(RenderVisitor visitor) { + visitor.render(this); + } + } Modified: trunk/foray/foray-areatree/src/java/org/foray/area/TableCellRA.java =================================================================== --- trunk/foray/foray-areatree/src/java/org/foray/area/TableCellRA.java 2006-06-10 13:03:09 UTC (rev 7507) +++ trunk/foray/foray-areatree/src/java/org/foray/area/TableCellRA.java 2006-06-10 14:11:43 UTC (rev 7508) @@ -24,6 +24,7 @@ package org.foray.area; +import org.axsl.areaR.RenderVisitor; import org.axsl.areaR.TableCellArea; import org.axsl.common.Constants; import org.axsl.common.ConstantsAreaTree; @@ -163,4 +164,8 @@ return (TableCell) this.traitGeneratedBy(); } + public void render(RenderVisitor visitor) { + visitor.render(this); + } + } Modified: trunk/foray/foray-areatree/src/java/org/foray/area/TableFooterContainer.java =================================================================== --- trunk/foray/foray-areatree/src/java/org/foray/area/TableFooterContainer.java 2006-06-10 13:03:09 UTC (rev 7507) +++ trunk/foray/foray-areatree/src/java/org/foray/area/TableFooterContainer.java 2006-06-10 14:11:43 UTC (rev 7508) @@ -24,6 +24,7 @@ package org.foray.area; +import org.axsl.areaR.RenderVisitor; import org.axsl.common.ConstantsAreaTree; import org.axsl.foR.FObj; @@ -62,4 +63,8 @@ return "table-footer"; } + public void render(RenderVisitor visitor) { + visitor.render(this); + } + } Modified: trunk/foray/foray-areatree/src/java/org/foray/area/TableHeaderContainer.java =================================================================== --- trunk/foray/foray-areatree/src/java/org/foray/area/TableHeaderContainer.java 2006-06-10 13:03:09 UTC (rev 7507) +++ trunk/foray/foray-areatree/src/java/org/foray/area/TableHeaderContainer.java 2006-06-10 14:11:43 UTC (rev 7508) @@ -24,6 +24,7 @@ package org.foray.area; +import org.axsl.areaR.RenderVisitor; import org.axsl.common.ConstantsAreaTree; import org.axsl.foR.FObj; @@ -62,4 +63,8 @@ return "table-header"; } + public void render(RenderVisitor visitor) { + visitor.render(this); + } + } Modified: trunk/foray/foray-areatree/src/java/org/foray/area/TableRA.java =================================================================== --- trunk/foray/foray-areatree/src/java/org/foray/area/TableRA.java 2006-06-10 13:03:09 UTC (rev 7507) +++ trunk/foray/foray-areatree/src/java/org/foray/area/TableRA.java 2006-06-10 14:11:43 UTC (rev 7508) @@ -24,6 +24,7 @@ package org.foray.area; +import org.axsl.areaR.RenderVisitor; import org.axsl.areaR.TableArea; import org.axsl.areaW.TableFooterContainer; import org.axsl.areaW.TableHeaderContainer; @@ -300,4 +301,8 @@ return null; } + public void render(RenderVisitor visitor) { + visitor.render(this); + } + } Modified: trunk/foray/foray-areatree/src/java/org/foray/area/TableRowContainer.java =================================================================== --- trunk/foray/foray-areatree/src/java/org/foray/area/TableRowContainer.java 2006-06-10 13:03:09 UTC (rev 7507) +++ trunk/foray/foray-areatree/src/java/org/foray/area/TableRowContainer.java 2006-06-10 14:11:43 UTC (rev 7508) @@ -24,6 +24,7 @@ package org.foray.area; +import org.axsl.areaR.RenderVisitor; import org.axsl.areaW.TableCellArea; import org.axsl.common.Constants; import org.axsl.common.ConstantsAreaTree; @@ -75,4 +76,8 @@ return "table-row"; } + public void render(RenderVisitor visitor) { + visitor.render(this); + } + } Modified: trunk/foray/foray-areatree/src/java/org/foray/area/TextArea.java =================================================================== --- trunk/foray/foray-areatree/src/java/org/foray/area/TextArea.java 2006-06-10 13:03:09 UTC (rev 7507) +++ trunk/foray/foray-areatree/src/java/org/foray/area/TextArea.java 2006-06-10 14:11:43 UTC (rev 7508) @@ -26,6 +26,7 @@ import org.foray.common.XMLCharacter; +import org.axsl.areaR.RenderVisitor; import org.axsl.common.Constants; import org.axsl.common.ConstantsAreaTree; import org.axsl.foR.FONode; @@ -542,4 +543,8 @@ return generatedBy.parentFO(); } + public void render(RenderVisitor visitor) { + visitor.render(this); + } + } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
|
From: <vic...@us...> - 2006-06-10 13:03:13
|
Revision: 7507 Author: victormote Date: 2006-06-10 06:03:09 -0700 (Sat, 10 Jun 2006) ViewCVS: http://svn.sourceforge.net/foray/?rev=7507&view=rev Log Message: ----------- Require a HyphenationServer to start a FOraySession. Modified Paths: -------------- trunk/foray/foray-app/src/java/org/foray/app/FOraySpecific.java Modified: trunk/foray/foray-app/src/java/org/foray/app/FOraySpecific.java =================================================================== --- trunk/foray/foray-app/src/java/org/foray/app/FOraySpecific.java 2006-06-10 13:02:57 UTC (rev 7506) +++ trunk/foray/foray-app/src/java/org/foray/app/FOraySpecific.java 2006-06-10 13:03:09 UTC (rev 7507) @@ -78,8 +78,10 @@ Log logger = FOraySpecific.makeLogger(sessionConfig); FontServer fontServer = FOraySpecific.makeFontServer(logger, sessionConfig); + HyphenationServer hyphenServer = FOraySpecific.makeHyphenationServer( + logger, sessionConfig); TextServer textServer = FOraySpecific.makeTextServer(logger, - sessionConfig); + hyphenServer); GraphicServer graphicServer = FOraySpecific.makeGraphicServer(logger); FOTreeFactory foTreeServer = FOraySpecific.makeFOTreeFactory(logger, sessionConfig, graphicServer, textServer); @@ -87,8 +89,8 @@ logger, textServer); LayoutFactory layoutFactory = FOraySpecific.makeLayoutFactory(logger); FOraySession session = new FOraySession(logger, sessionConfig, - fontServer, textServer, graphicServer, foTreeServer, - areaTreeFactory, layoutFactory); + fontServer, hyphenServer, textServer, graphicServer, + foTreeServer, areaTreeFactory, layoutFactory); return session; } @@ -118,10 +120,8 @@ } public static TextServer makeTextServer(Log logger, - SessionConfig configuration) throws FOrayException { - HyphenationServer hyphenationServer = makeHyphenationServer(logger, - configuration); - return new org.foray.text.TextServer(logger, hyphenationServer); + HyphenationServer hyphenServer) throws FOrayException { + return new org.foray.text.TextServer(logger, hyphenServer); } public static HyphenationServer makeHyphenationServer(Log logger, This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
|
From: <vic...@us...> - 2006-06-10 13:03:06
|
Revision: 7506 Author: victormote Date: 2006-06-10 06:02:57 -0700 (Sat, 10 Jun 2006) ViewCVS: http://svn.sourceforge.net/foray/?rev=7506&view=rev Log Message: ----------- Require a HyphenationServer to start a FOraySession. Modified Paths: -------------- trunk/foray/foray-core/.classpath trunk/foray/foray-core/src/java/org/foray/core/FOraySession.java Modified: trunk/foray/foray-core/.classpath =================================================================== --- trunk/foray/foray-core/.classpath 2006-06-10 02:39:08 UTC (rev 7505) +++ trunk/foray/foray-core/.classpath 2006-06-10 13:02:57 UTC (rev 7506) @@ -13,5 +13,6 @@ <classpathentry combineaccessrules="false" kind="src" path="/axslArea-R"/> <classpathentry combineaccessrules="false" kind="src" path="/axslOutput"/> <classpathentry combineaccessrules="false" kind="src" path="/axslCommon"/> + <classpathentry combineaccessrules="false" kind="src" path="/axslHyphen-R"/> <classpathentry kind="output" path="build/eclipse"/> </classpath> Modified: trunk/foray/foray-core/src/java/org/foray/core/FOraySession.java =================================================================== --- trunk/foray/foray-core/src/java/org/foray/core/FOraySession.java 2006-06-10 02:39:08 UTC (rev 7505) +++ trunk/foray/foray-core/src/java/org/foray/core/FOraySession.java 2006-06-10 13:02:57 UTC (rev 7506) @@ -29,6 +29,7 @@ import org.axsl.foR.FOTreeFactory; import org.axsl.fontR.FontServer; import org.axsl.graphicR.GraphicServer; +import org.axsl.hyphenR.HyphenationServer; import org.axsl.layout.LayoutFactory; import org.axsl.text.TextServer; @@ -68,6 +69,8 @@ /** A FontServer instance to be used for this session. */ private FontServer fontServer; + private HyphenationServer hyphenServer; + /** A TextServer instance to be used for this session. */ private TextServer textServer; @@ -108,10 +111,10 @@ * it needs to be fully configured and ready to be used. */ public FOraySession(Log logger, SessionConfig configuration, - FontServer fontServer, TextServer textServer, - GraphicServer graphicServer, FOTreeFactory foTreeFactory, - AreaTreeFactory areaTreeFactory, LayoutFactory layoutFactory) - throws FOrayException { + FontServer fontServer, HyphenationServer hyphenServer, + TextServer textServer, GraphicServer graphicServer, + FOTreeFactory foTreeFactory, AreaTreeFactory areaTreeFactory, + LayoutFactory layoutFactory) throws FOrayException { /* Validate Logger. */ if (logger == null) { throw new FOrayException("Logger required for FOraySession."); @@ -132,6 +135,13 @@ this.fontServer = fontServer; setupFontServer(); + /* Validate HyphenationServer. */ + if (hyphenServer == null) { + throw new FOrayException("HyphenationServer required for " + + "FOraySession"); + } + this.hyphenServer = hyphenServer; + /* Validate TextServer. */ if (textServer == null) { throw new FOrayException("TextServer required for FOraySession."); @@ -211,6 +221,10 @@ return this.fontServer; } + public HyphenationServer getHyphenationServer() { + return this.hyphenServer; + } + public TextServer getTextServer() { return this.textServer; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
|
From: <vic...@us...> - 2006-06-10 02:39:19
|
Revision: 7505 Author: victormote Date: 2006-06-09 19:39:08 -0700 (Fri, 09 Jun 2006) ViewCVS: http://svn.sourceforge.net/foray/?rev=7505&view=rev Log Message: ----------- Conform to axsl changes: Move three methods from FObj to TableCell. Two of these can conceivably be used by TableColumn, but probably will not be. Modified Paths: -------------- trunk/foray/foray-fotree/src/java/org/foray/fotree/FObj.java trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/Table.java Modified: trunk/foray/foray-fotree/src/java/org/foray/fotree/FObj.java =================================================================== --- trunk/foray/foray-fotree/src/java/org/foray/fotree/FObj.java 2006-06-10 02:38:58 UTC (rev 7504) +++ trunk/foray/foray-fotree/src/java/org/foray/fotree/FObj.java 2006-06-10 02:39:08 UTC (rev 7505) @@ -553,23 +553,14 @@ return propertyList.getRetrieveBoundary(context); } - /** - * {@inheritDoc} - */ public int traitColumnNumber(FOContext context) { return propertyList.getColumnNumber(context); } - /** - * {@inheritDoc} - */ public int traitNumberColumnsSpanned() { return propertyList.getNumberColumnsSpanned(); } - /** - * {@inheritDoc} - */ public int traitNumberRowsSpanned() { return propertyList.getNumberRowsSpanned(); } Modified: trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/Table.java =================================================================== --- trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/Table.java 2006-06-10 02:38:58 UTC (rev 7504) +++ trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/Table.java 2006-06-10 02:39:08 UTC (rev 7505) @@ -31,7 +31,6 @@ import org.axsl.foR.FOContext; import org.axsl.foR.FOTreeException; -import org.axsl.foR.fo.TableColumn; import java.util.ArrayList; @@ -184,7 +183,7 @@ return (TableColumn) this.columns[index]; } - public TableColumn[] getTableColumns() { + public org.axsl.foR.fo.TableColumn[] getTableColumns() { return this.columns; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
|
From: <vic...@us...> - 2006-06-10 02:39:06
|
Revision: 7504 Author: victormote Date: 2006-06-09 19:38:58 -0700 (Fri, 09 Jun 2006) ViewCVS: http://svn.sourceforge.net/foray/?rev=7504&view=rev Log Message: ----------- Conform to axsl changes: Move three methods from FObj to TableCell. Two of these can conceivably be used by TableColumn, but probably will not be. Modified Paths: -------------- trunk/foray/foray-areatree/src/java/org/foray/area/TableCellRA.java Modified: trunk/foray/foray-areatree/src/java/org/foray/area/TableCellRA.java =================================================================== --- trunk/foray/foray-areatree/src/java/org/foray/area/TableCellRA.java 2006-06-10 02:02:16 UTC (rev 7503) +++ trunk/foray/foray-areatree/src/java/org/foray/area/TableCellRA.java 2006-06-10 02:38:58 UTC (rev 7504) @@ -69,11 +69,11 @@ } public int traitNumberRowsSpanned() { - return traitGeneratedBy().traitNumberRowsSpanned(); + return tableCellGeneratedBy().traitNumberRowsSpanned(); } public int traitNumberColumnsSpanned() { - return traitGeneratedBy().traitNumberColumnsSpanned(); + return tableCellGeneratedBy().traitNumberColumnsSpanned(); } public byte getAreaType() { @@ -146,8 +146,9 @@ */ public int getProgressionDimension() { TableRA tableRA = this.ancestorTableArea(); - int startingColumn = this.traitGeneratedBy().traitColumnNumber(this); - int span = this.traitGeneratedBy().traitNumberColumnsSpanned(); + int startingColumn = this.tableCellGeneratedBy().traitColumnNumber( + this); + int span = this.tableCellGeneratedBy().traitNumberColumnsSpanned(); return tableRA.ipdCell(startingColumn, span); } @@ -158,4 +159,8 @@ return "table-cell"; } + public TableCell tableCellGeneratedBy() { + return (TableCell) this.traitGeneratedBy(); + } + } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
|
From: <vic...@us...> - 2006-06-10 02:02:21
|
Revision: 7503 Author: victormote Date: 2006-06-09 19:02:16 -0700 (Fri, 09 Jun 2006) ViewCVS: http://svn.sourceforge.net/foray/?rev=7503&view=rev Log Message: ----------- Conform to axsl change: Return the TableCells in a more convenient cast. Modified Paths: -------------- trunk/foray/foray-pioneer/src/java/org/foray/pioneer/AbstractTableBodyPL.java trunk/foray/foray-pioneer/src/java/org/foray/pioneer/TableRowPL.java Modified: trunk/foray/foray-pioneer/src/java/org/foray/pioneer/AbstractTableBodyPL.java =================================================================== --- trunk/foray/foray-pioneer/src/java/org/foray/pioneer/AbstractTableBodyPL.java 2006-06-10 02:02:09 UTC (rev 7502) +++ trunk/foray/foray-pioneer/src/java/org/foray/pioneer/AbstractTableBodyPL.java 2006-06-10 02:02:16 UTC (rev 7503) @@ -125,7 +125,7 @@ } if (rowSpanMgr == null) { - rowSpanMgr = new RowSpanMgr(table.getTableColumns().size()); + rowSpanMgr = new RowSpanMgr(table.getTableColumns().length); } // if (this.isInListBody) { Modified: trunk/foray/foray-pioneer/src/java/org/foray/pioneer/TableRowPL.java =================================================================== --- trunk/foray/foray-pioneer/src/java/org/foray/pioneer/TableRowPL.java 2006-06-10 02:02:09 UTC (rev 7502) +++ trunk/foray/foray-pioneer/src/java/org/foray/pioneer/TableRowPL.java 2006-06-10 02:02:16 UTC (rev 7503) @@ -32,10 +32,9 @@ import org.axsl.foR.FOContext; import org.axsl.foR.Keep; import org.axsl.foR.fo.TableCell; +import org.axsl.foR.fo.TableColumn; import org.axsl.foR.fo.TableRow; -import java.util.List; - public class TableRowPL extends FObjPL { private RowSpanMgr rowSpanMgr = null; @@ -64,8 +63,8 @@ */ private void initCellArray(FOContext context) throws AreaWException { TableRow node = getReal(); - List columns = node.getNearestTable(context).getTableColumns(); - cellArray = new RowCellArray(rowSpanMgr, columns.size()); + TableColumn[] columns = node.getNearestTable(context).getTableColumns(); + cellArray = new RowCellArray(rowSpanMgr, columns.length); int colNum = 1; for (int i = 0; i < getReal().getChildren().size(); i++) { colNum = cellArray.getNextFreeCell(colNum); @@ -85,7 +84,7 @@ + "positioned beyond number of columns"); } cellColNum = colNum; - } else if (cellColNum > columns.size()) { + } else if (cellColNum > columns.length) { // Explicit colomn number specification out of range, skip it. layout.getLogger().error("Cell (#" + i + ") explicitly " + "positioned beyond number of columns, dropped:\n" @@ -93,12 +92,12 @@ continue; } // see if it fits and doesn't overwrite anything - if (cellColNum + numCols - 1 > columns.size()) { + if (cellColNum + numCols - 1 > columns.length) { // Too many columns spanned. layout.getLogger().error("Cell (#" + i + ") spans columns " + "beyond available number, clipped:\n" + cell.getContextMessage()); - numCols = columns.size() - cellColNum + 1; + numCols = columns.length - cellColNum + 1; } // Check for overwriting other cells (returns false) if (cellArray.storeCell(cell, cellColNum, numCols) == false) { @@ -125,7 +124,7 @@ public int layout(Area area) throws AreaWException { TableRow node = getReal(); - List columns = node.getNearestTable(area).getTableColumns(); + TableColumn[] columns = node.getNearestTable(area).getTableColumns(); if (getProgress() == FONodePL.BREAK_AFTER) { return Status.OK; } @@ -168,7 +167,7 @@ * Pass column object to cell to get offset and width and border * info if borders are "collapsed". */ - for (int i = 0; i < columns.size(); i++) { + for (int i = 0; i < columns.length; i++) { TableCell cell; TableCellPL cellPL; ++iColIndex; @@ -227,7 +226,7 @@ // Only do this for "STARTCELL", ending spans are handled separately // What about empty cells? Yes, we should set their height too! - for (int iCol = 1; iCol <= columns.size(); iCol++) { + for (int iCol = 1; iCol <= columns.length; iCol++) { if (cellArray.getCellType(iCol) == RowCellArray.CELLSTART && rowSpanMgr.isSpanned(iCol) == false) { TableCell cell = cellArray.getCell(iCol); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
|
From: <vic...@us...> - 2006-06-10 02:02:14
|
Revision: 7502 Author: victormote Date: 2006-06-09 19:02:09 -0700 (Fri, 09 Jun 2006) ViewCVS: http://svn.sourceforge.net/foray/?rev=7502&view=rev Log Message: ----------- Conform to axsl change: Return the TableCells in a more convenient cast. Modified Paths: -------------- trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/Table.java Modified: trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/Table.java =================================================================== --- trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/Table.java 2006-06-10 02:01:59 UTC (rev 7501) +++ trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/Table.java 2006-06-10 02:02:09 UTC (rev 7502) @@ -48,7 +48,7 @@ /** A List of the TableColumns instances associated with this table. These * can also be found in this.children, but not necessarily in the same * order. */ - private ArrayList columns = new ArrayList(); + private TableColumn[] columns; public Table(FObj parent, PropertyList propertyList, String systemId, int line, int column) throws FOTreeException { @@ -60,6 +60,7 @@ } public void end() throws FOTreeException { + ArrayList columns = new ArrayList(); boolean doneWithMarkers = false; boolean doneWithColumns = false; boolean doneWithHeader = false; @@ -74,7 +75,7 @@ if (child instanceof TableColumn && ! doneWithColumns) { doneWithMarkers = true; TableColumn c = (TableColumn) child; - nextColumnNumber = processColumn(nextColumnNumber, c); + nextColumnNumber = processColumn(nextColumnNumber, c, columns); continue; } if (child instanceof TableHeader && ! doneWithHeader) { @@ -101,6 +102,10 @@ } throwException("Invalid Table content."); } + this.columns = new TableColumn[columns.size()]; + for (int i = 0; i < columns.size(); i++) { + this.columns[i] = (TableColumn) columns.get(i); + } } /** @@ -108,12 +113,10 @@ * @param c * @throws FOTreeException */ - private int processColumn(int nextColumnNumber, TableColumn c) - throws FOTreeException { - /* TODO: Handle context better. */ - FOContext context = null; + private int processColumn(int nextColumnNumber, TableColumn c, + ArrayList columns) throws FOTreeException { int numColumnsRepeated = c.traitNumberColumnsRepeated(); - int currentColumnNumber = c.traitColumnNumber(context); + int currentColumnNumber = c.traitColumnNumber(null); if (currentColumnNumber == 0) { currentColumnNumber = nextColumnNumber; } @@ -166,7 +169,7 @@ * @return The number of columns in this table. */ public int numberOfColumns() { - return this.columns.size(); + return this.columns.length; } /** @@ -175,23 +178,13 @@ * @return The TableColumn specified, or null if index is not valid. */ public TableColumn getTableColumn(int index) { - if (index < 0 || index > this.columns.size() - 1) { + if (index < 0 || index > this.columns.length - 1) { return null; } - return (TableColumn) this.columns.get(index); + return (TableColumn) this.columns[index]; } - /** - * Returns the 0-based index into the List of TableColumns for a specific - * TableColumn. - * @param tableColumn The TableColumn whose index is sought. - * @return The 0-based index of tableColumn. - */ - public int getTableColumnIndex(TableColumn tableColumn) { - return this.getTableColumns().indexOf(tableColumn); - } - - public ArrayList getTableColumns() { + public TableColumn[] getTableColumns() { return this.columns; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
|
From: <vic...@us...> - 2006-06-10 02:02:06
|
Revision: 7501 Author: victormote Date: 2006-06-09 19:01:59 -0700 (Fri, 09 Jun 2006) ViewCVS: http://svn.sourceforge.net/foray/?rev=7501&view=rev Log Message: ----------- Conform to axsl change: Return the TableCells in a more convenient cast. 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-06-10 01:20:55 UTC (rev 7500) +++ trunk/foray/foray-areatree/src/java/org/foray/area/TableRA.java 2006-06-10 02:01:59 UTC (rev 7501) @@ -142,8 +142,8 @@ * Loop through the columns and total the fixed widths and proportional * units for each one. */ - for (int i = 0; i < node.getTableColumns().size(); i++) { - TableColumn column = (TableColumn) node.getTableColumns().get(i); + for (int i = 0; i < node.getTableColumns().length; i++) { + TableColumn column = (TableColumn) node.getTableColumns()[i]; if (column == null) { getLogger().warn("No table-column specification for column " + (i + 1) + "."); @@ -258,8 +258,8 @@ } // Now distribute the extra units onto each column and set offsets int columnOffset = 0; - for (int i = 0; i < node.getTableColumns().size(); i++) { - TableColumn column = (TableColumn) node.getTableColumns().get(i); + for (int i = 0; i < node.getTableColumns().length; i++) { + TableColumn column = node.getTableColumns()[i]; if (column != null) { //Compute the width of the column int colWidth = -1; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
|
From: <vic...@us...> - 2006-06-10 01:21:01
|
Revision: 7500 Author: victormote Date: 2006-06-09 18:20:55 -0700 (Fri, 09 Jun 2006) ViewCVS: http://svn.sourceforge.net/foray/?rev=7500&view=rev Log Message: ----------- Conform to axsl: Remove unneeded method. 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-06-10 01:14:30 UTC (rev 7499) +++ trunk/foray/foray-areatree/src/java/org/foray/area/TableRA.java 2006-06-10 01:20:55 UTC (rev 7500) @@ -46,13 +46,6 @@ super(generatedBy, parentArea); int numColumns = generatedBy.numberOfColumns(); resolvedColumnWidth = new int[numColumns]; - for (int i = 0; i < numColumns; i++) { - TableColumn column = generatedBy.getTableColumn(i); - if (column != null) { - resolvedColumnWidth[i] = column.traitColumnWidth(this, - this.crIPD()); - } - } /* Not sure this is right. */ this.calcFixedColumnWidths(this.crIPD()); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
|
From: <vic...@us...> - 2006-06-10 01:14:35
|
Revision: 7499 Author: victormote Date: 2006-06-09 18:14:30 -0700 (Fri, 09 Jun 2006) ViewCVS: http://svn.sourceforge.net/foray/?rev=7499&view=rev Log Message: ----------- Conform to axsl change: Remove two uneeded methods. Modified Paths: -------------- trunk/foray/foray-areatree/src/java/org/foray/area/AreaNode.java trunk/foray/foray-areatree/src/java/org/foray/area/TableCellRA.java trunk/foray/foray-areatree/src/java/org/foray/area/TableRA.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-06-10 01:08:37 UTC (rev 7498) +++ trunk/foray/foray-areatree/src/java/org/foray/area/AreaNode.java 2006-06-10 01:14:30 UTC (rev 7499) @@ -353,7 +353,7 @@ return ancestorLineArea(); } - public org.axsl.areaW.TableArea ancestorTableArea() { + public TableRA ancestorTableArea() { AreaNode parent = getAreaNodeParent(); if (parent == null) { return null; Modified: trunk/foray/foray-areatree/src/java/org/foray/area/TableCellRA.java =================================================================== --- trunk/foray/foray-areatree/src/java/org/foray/area/TableCellRA.java 2006-06-10 01:08:37 UTC (rev 7498) +++ trunk/foray/foray-areatree/src/java/org/foray/area/TableCellRA.java 2006-06-10 01:14:30 UTC (rev 7499) @@ -25,7 +25,6 @@ package org.foray.area; import org.axsl.areaR.TableCellArea; -import org.axsl.areaW.TableArea; import org.axsl.common.Constants; import org.axsl.common.ConstantsAreaTree; import org.axsl.foR.fo.TableCell; @@ -146,7 +145,7 @@ * columns. */ public int getProgressionDimension() { - TableArea tableRA = this.ancestorTableArea(); + TableRA tableRA = this.ancestorTableArea(); int startingColumn = this.traitGeneratedBy().traitColumnNumber(this); int span = this.traitGeneratedBy().traitNumberColumnsSpanned(); return tableRA.ipdCell(startingColumn, span); Modified: trunk/foray/foray-areatree/src/java/org/foray/area/TableRA.java =================================================================== --- trunk/foray/foray-areatree/src/java/org/foray/area/TableRA.java 2006-06-10 01:08:37 UTC (rev 7498) +++ trunk/foray/foray-areatree/src/java/org/foray/area/TableRA.java 2006-06-10 01:14:30 UTC (rev 7499) @@ -86,7 +86,7 @@ /** * Overrides the AreaNode method, because this is the TableRA being sought. */ - public org.axsl.areaW.TableArea ancestorTableArea() { + public TableRA ancestorTableArea() { return this; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
|
From: <vic...@us...> - 2006-06-10 01:08:41
|
Revision: 7498 Author: victormote Date: 2006-06-09 18:08:37 -0700 (Fri, 09 Jun 2006) ViewCVS: http://svn.sourceforge.net/foray/?rev=7498&view=rev Log Message: ----------- Conform to axsl change: Remove unneeded method. Modified Paths: -------------- trunk/foray/foray-pioneer/src/java/org/foray/pioneer/TableRowPL.java Modified: trunk/foray/foray-pioneer/src/java/org/foray/pioneer/TableRowPL.java =================================================================== --- trunk/foray/foray-pioneer/src/java/org/foray/pioneer/TableRowPL.java 2006-06-10 00:41:44 UTC (rev 7497) +++ trunk/foray/foray-pioneer/src/java/org/foray/pioneer/TableRowPL.java 2006-06-10 01:08:37 UTC (rev 7498) @@ -27,7 +27,6 @@ import org.axsl.areaW.AbstractTableContainer; import org.axsl.areaW.Area; import org.axsl.areaW.AreaWException; -import org.axsl.areaW.TableArea; import org.axsl.areaW.TableRowContainer; import org.axsl.common.Constants; import org.axsl.foR.FOContext; @@ -162,7 +161,6 @@ * not just those from the progress indicator so that the borders * will be drawn properly. */ - int offset = 0; // Offset of each cell from table start edge int iColIndex = 0; // 1-based column index /* * Ideas: set offset on each column when they are initialized @@ -174,8 +172,6 @@ TableCell cell; TableCellPL cellPL; ++iColIndex; - TableArea tableArea = area.ancestorTableArea(); - int colWidth = tableArea.getResolvedColumnWidth(i); if (cellArray.getCellType(iColIndex) == RowCellArray.CELLSTART) { cell = cellArray.getCell(iColIndex); @@ -191,11 +187,9 @@ largestCellHeight = h; } } - offset += colWidth; continue; } cellPL = (TableCellPL) this.getLayoutProxy(cell); - offset += colWidth; int rowSpan = cell.traitNumberRowsSpanned(); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
|
From: <vic...@us...> - 2006-06-10 00:41:53
|
Revision: 7497 Author: victormote Date: 2006-06-09 17:41:44 -0700 (Fri, 09 Jun 2006) ViewCVS: http://svn.sourceforge.net/foray/?rev=7497&view=rev Log Message: ----------- Use new method returning the background-only areas to paint the backgrounds for the various table areas. Modified Paths: -------------- trunk/foray/foray-render/src/java/org/foray/render/Renderer.java Modified: trunk/foray/foray-render/src/java/org/foray/render/Renderer.java =================================================================== --- trunk/foray/foray-render/src/java/org/foray/render/Renderer.java 2006-06-10 00:41:01 UTC (rev 7496) +++ trunk/foray/foray-render/src/java/org/foray/render/Renderer.java 2006-06-10 00:41:44 UTC (rev 7497) @@ -408,10 +408,16 @@ * @param area The TableRA instance to render. */ protected void render(TableArea area) { - /* TODO: Add logic that tries to paint the background as efficiently - * as possible. Contiguous cells should have their backgrounds painted - * at the same time (at least to the extent they are in the same - * rectangle. */ + Area[] backgroundAreas = area.getBackgroundAreas(); + if (backgroundAreas != null) { + for (int i = 0; i < backgroundAreas.length; i++) { + Area bga = backgroundAreas[i]; + markBackground(bga); + } + } + /* TODO: Add logic that tries to paint the borders as efficiently + * as possible. Contiguous cells that have identical borders should have + * their borders painted at the same time. */ doFrame(area); List children = area.getChildren(); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
|
From: <vic...@us...> - 2006-06-10 00:41:07
|
Revision: 7496 Author: victormote Date: 2006-06-09 17:41:01 -0700 (Fri, 09 Jun 2006) ViewCVS: http://svn.sourceforge.net/foray/?rev=7496&view=rev Log Message: ----------- Conform to axsl change: Add method returning the background-only areas. 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-06-10 00:01:54 UTC (rev 7495) +++ trunk/foray/foray-areatree/src/java/org/foray/area/TableRA.java 2006-06-10 00:41:01 UTC (rev 7496) @@ -299,4 +299,12 @@ return columnOffset; } + /** + * {@inheritDoc} + */ + public org.axsl.areaR.Area[] getBackgroundAreas() { + /* TODO: Implement this. See the method javadoc for details. */ + return null; + } + } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
|
From: <vic...@us...> - 2006-06-10 00:02:01
|
Revision: 7495 Author: victormote Date: 2006-06-09 17:01:54 -0700 (Fri, 09 Jun 2006) ViewCVS: http://svn.sourceforge.net/foray/?rev=7495&view=rev Log Message: ----------- Removed Paths: ------------- trunk/foray/foray-areatree/src/java/org/foray/area/TableColumnRA.java Deleted: trunk/foray/foray-areatree/src/java/org/foray/area/TableColumnRA.java =================================================================== --- trunk/foray/foray-areatree/src/java/org/foray/area/TableColumnRA.java 2006-06-10 00:01:22 UTC (rev 7494) +++ trunk/foray/foray-areatree/src/java/org/foray/area/TableColumnRA.java 2006-06-10 00:01:54 UTC (rev 7495) @@ -1,58 +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.TableArea; -//import org.axsl.common.ConstantsAreaTree; -//import org.axsl.foR.FObj; -//import org.axsl.foR.fo.Table; -//import org.axsl.foR.fo.TableColumn; -// -//public class TableColumnRA extends ContainerRA { -// -// public TableColumnRA(FObj generatedBy, Area parentArea) { -// super(generatedBy, parentArea); -// } -// -// public byte getAreaType() { -// return ConstantsAreaTree.AREATYPE_TABLE_COLUMN_RA; -// } -// -// public int getComputedColumnWidth() { -// TableColumn column = (TableColumn) traitGeneratedBy(); -// TableArea tableArea = this.ancestorTableArea(); -// Table table = (Table) tableArea.traitGeneratedBy(); -// int columnNum = table.getTableColumnIndex(column); -// return tableArea.getResolvedColumnWidth(columnNum); -// } -// -// /** -// * {@inheritDoc} -// */ -// public String getAreaName() { -// return "table-column"; -// } -// -//} This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
|
From: <vic...@us...> - 2006-06-10 00:01:27
|
Revision: 7494 Author: victormote Date: 2006-06-09 17:01:22 -0700 (Fri, 09 Jun 2006) ViewCVS: http://svn.sourceforge.net/foray/?rev=7494&view=rev Log Message: ----------- Remove no-longer-needed class. Modified Paths: -------------- trunk/foray/foray-areatree/src/java/org/foray/area/TableColumnRA.java Modified: trunk/foray/foray-areatree/src/java/org/foray/area/TableColumnRA.java =================================================================== --- trunk/foray/foray-areatree/src/java/org/foray/area/TableColumnRA.java 2006-06-09 23:59:25 UTC (rev 7493) +++ trunk/foray/foray-areatree/src/java/org/foray/area/TableColumnRA.java 2006-06-10 00:01:22 UTC (rev 7494) @@ -1,58 +1,58 @@ -/* - * 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.TableArea; -import org.axsl.common.ConstantsAreaTree; -import org.axsl.foR.FObj; -import org.axsl.foR.fo.Table; -import org.axsl.foR.fo.TableColumn; - -public class TableColumnRA extends ContainerRA { - - public TableColumnRA(FObj generatedBy, Area parentArea) { - super(generatedBy, parentArea); - } - - public byte getAreaType() { - return ConstantsAreaTree.AREATYPE_TABLE_COLUMN_RA; - } - - public int getComputedColumnWidth() { - TableColumn column = (TableColumn) traitGeneratedBy(); - TableArea tableArea = this.ancestorTableArea(); - Table table = (Table) tableArea.traitGeneratedBy(); - int columnNum = table.getTableColumnIndex(column); - return tableArea.getResolvedColumnWidth(columnNum); - } - - /** - * {@inheritDoc} - */ - public String getAreaName() { - return "table-column"; - } - -} +///* +// * 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.TableArea; +//import org.axsl.common.ConstantsAreaTree; +//import org.axsl.foR.FObj; +//import org.axsl.foR.fo.Table; +//import org.axsl.foR.fo.TableColumn; +// +//public class TableColumnRA extends ContainerRA { +// +// public TableColumnRA(FObj generatedBy, Area parentArea) { +// super(generatedBy, parentArea); +// } +// +// public byte getAreaType() { +// return ConstantsAreaTree.AREATYPE_TABLE_COLUMN_RA; +// } +// +// public int getComputedColumnWidth() { +// TableColumn column = (TableColumn) traitGeneratedBy(); +// TableArea tableArea = this.ancestorTableArea(); +// Table table = (Table) tableArea.traitGeneratedBy(); +// int columnNum = table.getTableColumnIndex(column); +// return tableArea.getResolvedColumnWidth(columnNum); +// } +// +// /** +// * {@inheritDoc} +// */ +// public String getAreaName() { +// return "table-column"; +// } +// +//} This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
|
From: <vic...@us...> - 2006-06-09 23:59:30
|
Revision: 7493 Author: victormote Date: 2006-06-09 16:59:25 -0700 (Fri, 09 Jun 2006) ViewCVS: http://svn.sourceforge.net/foray/?rev=7493&view=rev Log Message: ----------- Conform to axsl change: Remove unneeded interface. Modified Paths: -------------- trunk/foray/foray-areatree/src/java/org/foray/area/TableColumnRA.java trunk/foray/foray-areatree/src/java/org/foray/area/TableRA.java Modified: trunk/foray/foray-areatree/src/java/org/foray/area/TableColumnRA.java =================================================================== --- trunk/foray/foray-areatree/src/java/org/foray/area/TableColumnRA.java 2006-06-09 23:55:48 UTC (rev 7492) +++ trunk/foray/foray-areatree/src/java/org/foray/area/TableColumnRA.java 2006-06-09 23:59:25 UTC (rev 7493) @@ -30,8 +30,7 @@ import org.axsl.foR.fo.Table; import org.axsl.foR.fo.TableColumn; -public class TableColumnRA extends ContainerRA - implements org.axsl.areaW.TableColumnArea { +public class TableColumnRA extends ContainerRA { public TableColumnRA(FObj generatedBy, Area parentArea) { super(generatedBy, parentArea); Modified: trunk/foray/foray-areatree/src/java/org/foray/area/TableRA.java =================================================================== --- trunk/foray/foray-areatree/src/java/org/foray/area/TableRA.java 2006-06-09 23:55:48 UTC (rev 7492) +++ trunk/foray/foray-areatree/src/java/org/foray/area/TableRA.java 2006-06-09 23:59:25 UTC (rev 7493) @@ -25,7 +25,6 @@ package org.foray.area; import org.axsl.areaR.TableArea; -import org.axsl.areaW.TableColumnArea; import org.axsl.areaW.TableFooterContainer; import org.axsl.areaW.TableHeaderContainer; import org.axsl.common.ConstantsAreaTree; @@ -106,10 +105,6 @@ return this.resolvedColumnWidth[startingColumn - 1]; } - public TableColumnArea makeTableColumnArea(TableColumn tableColumn) { - return new TableColumnRA(tableColumn, this); - } - public org.axsl.areaW.TableBodyContainer makeTableBodyContainer( TableBody tableBody) { return new org.foray.area.TableBodyContainer(tableBody, this); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
|
From: <vic...@us...> - 2006-06-09 23:55:57
|
Revision: 7492 Author: victormote Date: 2006-06-09 16:55:48 -0700 (Fri, 09 Jun 2006) ViewCVS: http://svn.sourceforge.net/foray/?rev=7492&view=rev Log Message: ----------- Remove unneeded class. There is no layout work to do on a column. Modified Paths: -------------- trunk/foray/foray-pioneer/src/java/org/foray/pioneer/PioneerLS.java trunk/foray/foray-pioneer/src/java/org/foray/pioneer/TablePL.java Removed Paths: ------------- trunk/foray/foray-pioneer/src/java/org/foray/pioneer/TableColumnPL.java Modified: trunk/foray/foray-pioneer/src/java/org/foray/pioneer/PioneerLS.java =================================================================== --- trunk/foray/foray-pioneer/src/java/org/foray/pioneer/PioneerLS.java 2006-06-09 23:51:46 UTC (rev 7491) +++ trunk/foray/foray-pioneer/src/java/org/foray/pioneer/PioneerLS.java 2006-06-09 23:55:48 UTC (rev 7492) @@ -404,7 +404,7 @@ return new TableCellPL((TableCell) node, this); } case FONode.NODE_TABLE_COLUMN: { - return new TableColumnPL((TableColumn) node, this); + return new NoLayoutPL((TableColumn) node, this); } case FONode.NODE_TABLE_FOOTER: { return new TableFooterPL((TableFooter) node, this); Deleted: trunk/foray/foray-pioneer/src/java/org/foray/pioneer/TableColumnPL.java =================================================================== --- trunk/foray/foray-pioneer/src/java/org/foray/pioneer/TableColumnPL.java 2006-06-09 23:51:46 UTC (rev 7491) +++ trunk/foray/foray-pioneer/src/java/org/foray/pioneer/TableColumnPL.java 2006-06-09 23:55:48 UTC (rev 7492) @@ -1,78 +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.pioneer; - -import org.axsl.areaW.Area; -import org.axsl.areaW.TableColumnArea; -import org.axsl.areaW.TableArea; - -import org.axsl.areaW.AreaWException; -import org.axsl.foR.fo.Table; -import org.axsl.foR.fo.TableColumn; - - -public class TableColumnPL extends FObjPL { - public TableColumnArea areaContainer; - - /** - * The offset, in millipoints, for this column, relative to the start - * of the table, in the column-progression-direction. - */ - public int columnOffset; - - public TableColumnPL(TableColumn parent, PioneerLS layout) { - super(parent, layout); - } - - public void setHeight(int height) { - if (areaContainer != null) { - areaContainer.setProgressionDimension(height); - } - } - - public TableColumn getFO() { - return (TableColumn) this.getFONode(); - } - - public int layout(Area area) throws AreaWException { - TableColumn node = getFO(); - TableArea tableArea = (TableArea) area; - Table table = node.getNearestTable(area); - if (getProgress() == FONodePL.BREAK_AFTER) { - return Status.OK; - } - int columnNumber = table.getTableColumnIndex(node); - if (tableArea.getResolvedColumnWidth(columnNumber) > 0) { - TableColumnArea areaContainer = tableArea.makeTableColumnArea(node); - areaContainer.setProgressionDimension(area.crBPD()); - } - return Status.OK; - } - - public void setColumnOffset(int columnOffset) { - this.columnOffset = columnOffset; - } - -} Modified: trunk/foray/foray-pioneer/src/java/org/foray/pioneer/TablePL.java =================================================================== --- trunk/foray/foray-pioneer/src/java/org/foray/pioneer/TablePL.java 2006-06-09 23:51:46 UTC (rev 7491) +++ trunk/foray/foray-pioneer/src/java/org/foray/pioneer/TablePL.java 2006-06-09 23:55:48 UTC (rev 7492) @@ -35,7 +35,6 @@ import org.axsl.foR.fo.Marker; import org.axsl.foR.fo.Table; import org.axsl.foR.fo.TableBody; -import org.axsl.foR.fo.TableColumn; import org.axsl.foR.fo.TableFooter; import org.axsl.foR.fo.TableHeader; @@ -90,7 +89,6 @@ boolean addedHeader = false; boolean addedFooter = false; - layoutColumns(areaContainer); if (node.numberOfColumns() == 0) { layout.getLogger().warn("current implementation of tables " + "requires a table-column for each column, " @@ -249,17 +247,6 @@ return Status.OK; } - private void layoutColumns(Area tableArea) throws AreaWException { - Table node = getTableFO(); - for (int i = 0; i < node.getTableColumns().size(); i++) { - TableColumn c = (TableColumn) node.getTableColumns().get(i); - if (c != null) { - TableColumnPL tcPL = (TableColumnPL) getLayoutProxy(c); - tcPL.layout(tableArea); - } - } - } - // FIXME: this seems odd. public int getTableFooterYPosition(FOContext context, TableFooter tFooter) { TableFooterPL tfPL = (TableFooterPL) getLayoutProxy(tFooter); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
|
From: <vic...@us...> - 2006-06-09 23:51:50
|
Revision: 7491 Author: victormote Date: 2006-06-09 16:51:46 -0700 (Fri, 09 Jun 2006) ViewCVS: http://svn.sourceforge.net/foray/?rev=7491&view=rev Log Message: ----------- Remove useless code. Layout can't control the height of a table column. Modified Paths: -------------- trunk/foray/foray-pioneer/src/java/org/foray/pioneer/TablePL.java Modified: trunk/foray/foray-pioneer/src/java/org/foray/pioneer/TablePL.java =================================================================== --- trunk/foray/foray-pioneer/src/java/org/foray/pioneer/TablePL.java 2006-06-09 23:43:20 UTC (rev 7490) +++ trunk/foray/foray-pioneer/src/java/org/foray/pioneer/TablePL.java 2006-06-09 23:51:46 UTC (rev 7491) @@ -185,7 +185,6 @@ tableFooterPL.setYPosition(yPosition + tableBodyPL.getHeight(area)); } - setupColumnHeights(node, areaContainer); status = Status.AREA_FULL_SOME; } return status; @@ -229,8 +228,6 @@ areaContainer.setProgressionDimension(height); } - setupColumnHeights(node, areaContainer); - /* should this be combined into above? */ area.incrementProgressionDimension(areaContainer.crBPD()); @@ -269,14 +266,4 @@ return tfPL.getYPosition() - tFooter.traitSpaceBeforeOptimum(context); } - public void setupColumnHeights(Table table, TableArea areaContainer) { - for (int i = 0; i < table.getTableColumns().size(); i++) { - TableColumn c = (TableColumn) table.getTableColumns().get(i); - TableColumnPL tablecolumnPL = (TableColumnPL) getLayoutProxy(c); - if (c != null) { - tablecolumnPL.setHeight(areaContainer.crBPD()); - } - } - } - } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |