aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/fop/render/afp/modca
Commit message (Collapse)AuthorAgeFilesLines
* All AFP library classes without Renderer dependencies moved from ↵Adrian Cumiskey2008-10-2765-9661/+0
| | | | | | | | | | org.apache.fop.renderer.afp.* to org.apache.fop.afp.*. AbstractNamedAFPObject now truncates names to the last x characters of the name string instead of the first x (where x is the name length of the structured field). Removed redundant package org.apache.fop.store. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_AFPGOCAResources@708134 13f79535-47bb-0310-9956-ffa450edef68
* Improved name truncation warning.Adrian Cumiskey2008-10-221-2/+4
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_AFPGOCAResources@707112 13f79535-47bb-0310-9956-ffa450edef68
* I am not in love yet with the new eclispe subversion client I'm using... :(Adrian Cumiskey2008-10-221-69/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_AFPGOCAResources@707079 13f79535-47bb-0310-9956-ffa450edef68
* Default to inline resource level for GOCA graphic objects (when no ↵Adrian Cumiskey2008-10-221-0/+69
| | | | | | | | afp:resource-level extension is provided). This is due to a bug in the IBM AFP Workbench Viewer (2.04.01.07) (hard copy works just fine with default print-file level) git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_AFPGOCAResources@707075 13f79535-47bb-0310-9956-ffa450edef68
* Ensures > 0 coordinate values.Adrian Cumiskey2008-10-221-8/+15
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_AFPGOCAResources@707036 13f79535-47bb-0310-9956-ffa450edef68
* * Block-container positioning fix.Adrian Cumiskey2008-10-107-165/+167
| | | | | | | | | * Reference orientation fix. * Multi-column document fix. fox:conversion-mode="bitmap GOCA fallback still needs work. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_AFPGOCAResources@703362 13f79535-47bb-0310-9956-ffa450edef68
* * Image positioning fix.Adrian Cumiskey2008-09-0813-185/+261
| | | | | | | * Grayscaling of IOCA images fix. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_AFPGOCAResources@693092 13f79535-47bb-0310-9956-ffa450edef68
* Fix for writing objects before Active Environment Group.Adrian Cumiskey2008-09-031-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_AFPGOCAResources@691575 13f79535-47bb-0310-9956-ffa450edef68
* * Structural fixes with StrucFlgs class.Adrian Cumiskey2008-09-0315-222/+228
| | | | | | | * IOCA image Registry additions. * EPS support in ObjectContainer. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_AFPGOCAResources@691564 13f79535-47bb-0310-9956-ffa450edef68
* ObjectContainer/IncludeObject structure fixes.Adrian Cumiskey2008-08-2920-143/+378
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_AFPGOCAResources@690345 13f79535-47bb-0310-9956-ffa450edef68
* Added PresentationEnvironmentControl object.Adrian Cumiskey2008-08-291-0/+97
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_AFPGOCAResources@690296 13f79535-47bb-0310-9956-ffa450edef68
* Added MapContainerData object.Adrian Cumiskey2008-08-291-0/+57
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_AFPGOCAResources@690294 13f79535-47bb-0310-9956-ffa450edef68
* Forgot to add Streamable.Adrian Cumiskey2008-08-274-4/+4
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_AFPGOCAResources@689463 13f79535-47bb-0310-9956-ffa450edef68
* * print-file level (default) resources are now immediately streamed and ↵Adrian Cumiskey2008-08-2762-4590/+2007
| | | | | | | | | pages/page groups within document are written to temporary file as and when they are complete. * Repackaged IOCA and GOCA objects. * Image positioning still not correct and problem exists with images that are contained in an ObjectContainer. Work in progress... git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_AFPGOCAResources@689459 13f79535-47bb-0310-9956-ffa450edef68
* Bugfix: ResourceStore didn't close the RandomAccessFile and therefore ↵Jeremias Maerki2008-07-302-35/+39
| | | | | | couldn't close the temporary file. Not even deleteOnExit() can help in that case. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_AFPGOCAResources@680923 13f79535-47bb-0310-9956-ffa450edef68
* Merged revisions 679052-679352 via svnmerge from Vincent Hennebert2008-07-257-30/+30
| | | | | | | | | | | | | | | | | | | | | https://svn.eu.apache.org/repos/asf/xmlgraphics/fop/trunk ........ r679060 | acumiskey | 2008-07-23 11:39:11 +0100 (Wed, 23 Jul 2008) | 2 lines My bad.. copy paste error I introduced which broke forrest. ........ r679164 | jeremias | 2008-07-23 20:33:24 +0100 (Wed, 23 Jul 2008) | 1 line Only update the generated files if any source file is newer than the generated ones. ........ r679326 | vhennebert | 2008-07-24 10:35:34 +0100 (Thu, 24 Jul 2008) | 2 lines Fed up with all those trailing whitespaces. Let's remove them all (once... and for all?) ........ git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_AFPGOCAResources@679758 13f79535-47bb-0310-9956-ffa450edef68
* * Moved AFPConstants from org.apache.fop.render.afp.modca into ↵Adrian Cumiskey2008-07-2423-251/+783
| | | | | | | | | | | org.apache.fop.render.afp as it is used in other subpackages. * Fixed sequential storage and memory hungry buffering shortcomings in DataObjectCache and also the messy getInstance(). * Renamed DataObjectCache and DataObjectFactory as ResourceStore and ResourceFactory and moved to org.apache.fop.render.afp.modca.resource package. * Created ResourceManager to oversee and delegate to ResourceStore and ResourceFactory. * Made data members in LineDataInfo package private. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_AFPGOCAResources@679480 13f79535-47bb-0310-9956-ffa450edef68
* * Removed unused goca accessor methods from AFPState.Adrian Cumiskey2008-07-224-102/+37
| | | | | | | * Created LineDataInfo class, this simplifies all the parameter passing on line creation. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_AFPGOCAResources@678812 13f79535-47bb-0310-9956-ffa450edef68
* Renamed method canBeIncluded() to isIncludable().Adrian Cumiskey2008-07-213-3/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_AFPGOCAResources@678453 13f79535-47bb-0310-9956-ffa450edef68
* Unused imports.Adrian Cumiskey2008-07-211-2/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_AFPGOCAResources@678452 13f79535-47bb-0310-9956-ffa450edef68
* Renamed variable and removed now redundant methods.Adrian Cumiskey2008-07-211-25/+5
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_AFPGOCAResources@678451 13f79535-47bb-0310-9956-ffa450edef68
* Removed arbitrary image formats from MO:DCA registry.Adrian Cumiskey2008-07-213-71/+21
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_AFPGOCAResources@678450 13f79535-47bb-0310-9956-ffa450edef68
* * Fixed problem with SVG object type not being determined.Adrian Cumiskey2008-07-213-37/+15
| | | | | | | * MimeConstants now extends the one in commons. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_AFPGOCAResources@678410 13f79535-47bb-0310-9956-ffa450edef68
* * Invalidate/remove entry for the cache properly on AFPDataStream.write().Adrian Cumiskey2008-07-211-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_AFPGOCAResources@678403 13f79535-47bb-0310-9956-ffa450edef68
* * Fixed bug in cache where object is not able to use IOB mechanism.Adrian Cumiskey2008-07-216-82/+102
| | | | | | | * Added PNG unsupported (but now recognised) mimetype to MO:DCA Registry. * Added useful toString() to AbstractNamedDataObject. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_AFPGOCAResources@678394 13f79535-47bb-0310-9956-ffa450edef68
* Tidy up.Adrian Cumiskey2008-07-212-22/+6
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_AFPGOCAResources@678371 13f79535-47bb-0310-9956-ffa450edef68
* More optimizations and cleanups.Adrian Cumiskey2008-07-1815-288/+100
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_AFPGOCAResources@677983 13f79535-47bb-0310-9956-ffa450edef68
* Removed commented out code.Adrian Cumiskey2008-07-181-67/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_AFPGOCAResources@677977 13f79535-47bb-0310-9956-ffa450edef68
* Unused import.Adrian Cumiskey2008-07-181-1/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_AFPGOCAResources@677933 13f79535-47bb-0310-9956-ffa450edef68
* Replaced PresentationSpaceMixingRulesTriplet (currently unsupported in AFP ↵Adrian Cumiskey2008-07-181-7/+11
| | | | | | environments...) with PresentationSpaceResetMixingTriplet. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_AFPGOCAResources@677932 13f79535-47bb-0310-9956-ffa450edef68
* * Added PresentationSpaceMixingRulesTriplet, DescriptorPositionTriplet and ↵Adrian Cumiskey2008-07-1811-86/+219
| | | | | | | | | | PresentationSpaceResetMixingTriplet. * Removed some hardcoded triplets from ObjectAreaDescriptor. * Provided toString() for Record class in DataObjectCache. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_AFPGOCAResources@677913 13f79535-47bb-0310-9956-ffa450edef68
* * Added new DataObjectFactory to take care of MO:DCA DataObject ↵Adrian Cumiskey2008-07-1749-1452/+1259
| | | | | | | | | | | | | creation/instantiation. * Created a DataObjectCache which is now used to cache all resource objects such as images to a RandomAccessFile so all the memory isn't eaten by them during rendering. * Added new GraphicsObjectPainter class invoked by DataObjectFactory on creation of GraphicsObject. * Added Category and Type inner interfaces and handy copySF() to base AbstractAFPObject with more code reuse, simplifications/optimizations of writeStart() and writeEnd(). * SVG entry and isImage() isGraphic() convenience methods added to MO:DCA Registry. * Updated AFPSVGHandler to use similar fox:conversion-mode foreign attribute mechanism for bitmap painting fallback used by PCLRenderer and PDFRenderer. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_AFPGOCAResources@677689 13f79535-47bb-0310-9956-ffa450edef68
* This fixes "IllegalArgumentException: Transparent data is longer than 253 bytes"Adrian Cumiskey2008-07-101-10/+34
| | | | | | | exception problem with <fo:block/> text is more than 253 characters (see https://issues.apache.org/bugzilla/show_bug.cgi?id=44024). git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_AFPGOCAResources@675577 13f79535-47bb-0310-9956-ffa450edef68
* * Created new AbstractState class that shares common properties and stack ↵Adrian Cumiskey2008-07-104-259/+187
| | | | | | | | | | | | | 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
* Fixed placement of bitmap images for AFP output.Jeremias Maerki2008-07-102-39/+45
| | | | | | Made setters public for ObjectAreaInfo. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_AFPGOCAResources@675487 13f79535-47bb-0310-9956-ffa450edef68
* Added some useful constants.Adrian Cumiskey2008-06-301-0/+11
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_AFPGOCAResources@672769 13f79535-47bb-0310-9956-ffa450edef68
* * Created new AreaObjectInfo class POJO to cleanup all this long parameter ↵Adrian Cumiskey2008-06-096-135/+124
| | | | | | | | | | passingthat seems to be going on. * convertToGrayscale() method changed so that it is performing an atomic function, again simplified/cleaned up parameter passing. * Fixed bug with handling TIFF images. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_AFPGOCAResources@664679 13f79535-47bb-0310-9956-ffa450edef68
* Cleanup of variable names.Adrian Cumiskey2008-06-061-45/+36
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_AFPGOCAResources@663884 13f79535-47bb-0310-9956-ffa450edef68
* Unused.Adrian Cumiskey2008-06-041-64/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_AFPGOCAResources@663121 13f79535-47bb-0310-9956-ffa450edef68
* Fix for wrong data arraycopy on OCD.Adrian Cumiskey2008-06-041-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_AFPGOCAResources@663056 13f79535-47bb-0310-9956-ffa450edef68
* * getImageUri() implementation provided on Graphics2DAdaptor implementations.Adrian Cumiskey2008-06-027-144/+236
| | | | | | | | | | * Refactored data object creation abilities from AbstractResourceGroupContainer into a new DataObjectFactory class. * Added mime type to ObjectType inner class in Registry for warn/error logging purposes. * Fixed problem with handling ObjectContainer objects in IncludeObject. * Added documentation for configuring AFP resource group files. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_AFPGOCAResources@662448 13f79535-47bb-0310-9956-ffa450edef68
* Just cleanup.Adrian Cumiskey2008-06-021-26/+16
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_AFPGOCAResources@662444 13f79535-47bb-0310-9956-ffa450edef68
* Added accessor/instantiator method for ObjectEnvironmentGroupAdrian Cumiskey2008-05-291-2/+10
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_AFPGOCAResources@661340 13f79535-47bb-0310-9956-ffa450edef68
* Improved commentAdrian Cumiskey2008-05-281-1/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_AFPGOCAResources@660938 13f79535-47bb-0310-9956-ffa450edef68
* Warning given when mimetype provided is missing/null for whatever reasonAdrian Cumiskey2008-05-281-1/+9
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_AFPGOCAResources@660931 13f79535-47bb-0310-9956-ffa450edef68
* Broke out data members from ResourceInfo and created ResourceLevel classAdrian Cumiskey2008-05-2019-201/+340
| | | | | | | | | | | Added MappingOptionTriplet and corresponding setMappingOption() triplet setter Correctly furnished (AFAICT) IncludeObject with ObjectClassificationTriplet MappingOptionTriplet MeasurementUnits and ObjectAreaSize FullyQualifiedNameTriplet now correctly encodes its name dependant upon its format Added resolution settings to MeasurementUnitsTriplet Added Overlay enclosure when fo:block has background color git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_AFPGOCAResources@658303 13f79535-47bb-0310-9956-ffa450edef68
* Further progress.Adrian Cumiskey2008-05-1450-613/+1026
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_AFPGOCAResources@656249 13f79535-47bb-0310-9956-ffa450edef68
* Structured field length fix for ObjectContainer.Adrian Cumiskey2008-04-161-3/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_AFPGOCAResources@648684 13f79535-47bb-0310-9956-ffa450edef68
* Further reworking and refinements. Not a working model yet.Adrian Cumiskey2008-04-1623-334/+583
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_AFPGOCAResources@648675 13f79535-47bb-0310-9956-ffa450edef68
* Some fixes to apply but committed in preparation for ↵Adrian Cumiskey2008-04-1120-854/+1218
| | | | | | http://svn.apache.org/viewvc/xmlgraphics/fop/branches/Temp_ProcessingFeedback merge into trunk. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_AFPGOCAResources@647228 13f79535-47bb-0310-9956-ffa450edef68