]> source.dussan.org Git - xmlgraphics-fop.git/commit
* Created new AbstractState class that shares common properties and stack popping...
authorAdrian Cumiskey <acumiskey@apache.org>
Thu, 10 Jul 2008 10:59:39 +0000 (10:59 +0000)
committerAdrian Cumiskey <acumiskey@apache.org>
Thu, 10 Jul 2008 10:59:39 +0000 (10:59 +0000)
commitc0b3bda3b8ec533d8595c75a810df9ac19ab23d4
tree3247c3557d1cfda4010d7eaac7c4520679299ddd
parent28c0a5eee984d43c7a78b426c2d330a0f40e9b22
* Created new AbstractState class that shares common properties and stack popping/pushing behaviour of and is now extended by AFPState and PDFState.
* color, resolution and bitsPerPixel moved from AFPInfo to AFPState/AbstractState resulting in a more simplified AFPInfo and AFPSVGHandler.
* Changed AFPRenderer, AFPDataStream, PresentationTextObject and PresentationTextData to use encapsulated AFPTextDataInfo instead of a chain of long parameter passing between objects.  Also provided some formatting cleanup in PresentationTextData.
* Use of X and Y offsets no longer used by AFPDataStream, setOffsets() is now deprecated and added setOrientation() accessor (which still remains relevant).
* AFPRenderer no longer uses its own bespoke ViewPortPos mechanism and now uses the more standard state stack and AffineTransform mechanism enjoyed by the postscript and PDF Renderers.  This means that there is now a proper implementation for startVParea(), endVParea(), saveGraphicsState(), restoreGraphicsState(), breakOutOfStateStack() and restoreStateStackAfterBreakOut() and it is no longer necessary to have a copy/pasted/tweaked renderBlockViewport() or renderRegionViewport(). As a result of this AFPRenderer is now much more compact (by some 500 lines) - similar work needs to be done in the PCL Renderer, any volunteers?
* Added lots of helpful toString() methods for those mere mortals wishing to step through with a debugger :).

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_AFPGOCAResources@675507 13f79535-47bb-0310-9956-ffa450edef68
14 files changed:
build.xml
src/java/org/apache/fop/pdf/PDFState.java
src/java/org/apache/fop/render/AbstractState.java [new file with mode: 0644]
src/java/org/apache/fop/render/afp/AFPInfo.java
src/java/org/apache/fop/render/afp/AFPRenderer.java
src/java/org/apache/fop/render/afp/AFPRendererContextConstants.java
src/java/org/apache/fop/render/afp/AFPSVGHandler.java
src/java/org/apache/fop/render/afp/AFPState.java
src/java/org/apache/fop/render/afp/ObjectAreaInfo.java
src/java/org/apache/fop/render/afp/modca/AFPDataStream.java
src/java/org/apache/fop/render/afp/modca/AbstractPageObject.java
src/java/org/apache/fop/render/afp/modca/PresentationTextData.java
src/java/org/apache/fop/render/afp/modca/PresentationTextObject.java
src/java/org/apache/fop/render/pdf/PDFRenderer.java