[transform-swf-updates] Status report for week ending June 25th
Brought to you by:
smackay
From: News on r. b. a. p. f. T. S. f. J. <tra...@li...> - 2010-06-26 09:30:33
|
Progress This Week: More code refactoring and general polishing. API Changes: 1. Moved defineEnclosingShape from ImageFactory into a new class ImageShape. Methods were added to set default border styles and registration points to make it more convenient when adding multiple images to amovie. 2. Moved the methods in BufferedImageDecoder to create a BufferedImage from a Flash image definition to a new class BufferedImageEncoder. 3. Moved getImageAsBlocks from ImageFactory and create a new class ImageBlocker. 4. Added the following methods to the ShapeTag interface: public ShapeTag add(final LineStyle style) public ShapeTag add(final FillStyle style) The add(final LineStyle style) method on all shape definitions was updated and explicit checks for LineStyle1 or LineStyle2 were added so only the correct style is used. 5. Added two enums to com.flagstone.transform.datatype: HorizontalAlign is used to set the horizontal alignment for text in DefineTextField and to set the registration point in images. VerticalAlign is used to setting the registration point in images. DefineTextField was updated to use the new HorizontalAlign enum. Code Changes: 1. Cleaned up or explicitly suppressed all PMD warnings. 2. Ticket #125 - Add support for decoding files with hidden actionscript. This was done by changing the SWFFactory to pass in the list where the decoded object will be added rather than returning the object itself. This makes it easier to write custom decoders to handle the obfuscated files. There will be a cookbook example added to show how to do this. 3. Completed Ticket 144 - Update Font to use highest character. Now the tables used to store the glyphs are size correctly rather than relying on a default size (64K). 4. Decoding of AWT fonts was speeded up by only decoding the missing glyph once. Testing: 1. Added integration test for displaying text from a font definition loaded from a Flash file. Added test fonts (including a .fla file for generating new font files) for the Bitstream Vera fonts. 2. Expanded the suite of real-world Flash files use for testing to over 1,000 files. Only 6 failures were detected - at least 2 were the result of obfuscation to mix blocks of actions in with MovieTag objects on the main timeline of the movie. 3. Added integration test for BufferedImageEncoder, generating a BufferedImage from a Flash image definition. 4. Cleaned up unit tests packages so they match the package hierarchy of the source files. 5. Renamed integration tests and test report pages to match the names of the classes under test. Documentation: Completed Ticket 143: Added documentation for Spread. Removed the stylesheet used for javadocs so the default one is used - the generated pages are now easier to read. Deployment: A snapshot release is now deployed on the Open Source Maven repository hosted by Sonatype: http://oss.sonatype.org/content/groups/public/ <dependency> <groupId>com.flagstone</groupId> <artifactId>transform</artifactId> <version>3.0-SNAPSHOT</version> </dependency> Planned For Next Week: The first beta release. Regards, Stuart -- Flagstone Software Ltd. |