Package com.nomagic.magicreport.format
Class DocBookFormatter
java.lang.Object
com.nomagic.magicreport.format.DefaultFormatter
com.nomagic.magicreport.format.DocBookFormatter
- All Implemented Interfaces:
IFormatter
This class provides implementation for DocBook format output. Extend from DefaultFormatter, this class provide
additional support for BufferedImage.
- Since:
- Jan 30, 2013
- Version:
- 1.0 Jan 30, 2013
-
Field Summary
Fields inherited from class com.nomagic.magicreport.format.DefaultFormatter
properties, styledDocumentFields inherited from interface com.nomagic.magicreport.format.IFormatter
DOT_PER_INCH -
Constructor Summary
ConstructorsConstructorDescriptionDocBookFormatter(Properties properties) Create a HTML formatter with specific properties. -
Method Summary
Modifier and TypeMethodDescriptionprotected ITool.RetainedStringcreateBookmark(Bookmark bookmark) Create a DocBook bookmark string from givenBookmarkobject.protected ITool.RetainedStringcreateImage(Image image) Create a DocBook image string from givenImageobject.protected ITool.RetainedStringcreateLink(Link link) Create a RTF link string from givenLinkobject.Convert an Object value into HTML format.Methods inherited from class com.nomagic.magicreport.format.DefaultFormatter
getImageFlag, getObjectFormater, getProperties, registerObjectFormatter, setProperties, setStyledDocument, writeImage, writeImage, writeImage
-
Constructor Details
-
DocBookFormatter
Create a HTML formatter with specific properties.- Parameters:
properties- template properties
-
-
Method Details
-
format
Convert an Object value into HTML format.- Specified by:
formatin interfaceIFormatter- Overrides:
formatin classDefaultFormatter- Parameters:
value- converting value- Returns:
- object in default format.
-
createImage
Create a DocBook image string from givenImageobject.- Parameters:
image- anImageobject- Returns:
- The String in DocBook image format.
- Throws:
IOException- when IO error occurs.
-
createBookmark
Create a DocBook bookmark string from givenBookmarkobject.- Parameters:
bookmark- anBookmarkobject- Returns:
- The String in DocBook bookmark format.
- Throws:
IOException- when IO error occurs
-
createLink
Create a RTF link string from givenLinkobject.- Parameters:
link- anLinkobject- Returns:
- The String in RTF link format.
- Throws:
IOException- when IO error occurs
-