Class AbstractDocumentCreator
java.lang.Object
com.nomagic.magicreport.format.html.AbstractDocumentCreator
- All Implemented Interfaces:
IDocumentCreator
- Direct Known Subclasses:
DocBookCreator,DOCXCreator,ODFCreator,PPTXCreator,RTFCreator,XLSXCreator
@OpenApiAll
public abstract class AbstractDocumentCreator
extends Object
implements IDocumentCreator
Abstract class for create content.
- Since:
- May 21, 2009
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreate the new image tool from styled document.Return a formatter.protected Set<com.osbcp.cssparser.PropertyValue> getStyleByCSSParser(String value) Re-arrange style by style name.
Using CSSParser.Return an associated document.voidsetFormatter(DefaultFormatter formatter) Set a formatter.voidsetStyledDocument(StyledDocument styledDocument) Associates the creator with a document.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.nomagic.magicreport.format.IDocumentCreator
convert, setDocumentPage, setPaperHeight, setPaperWidth, setProperties
-
Constructor Details
-
AbstractDocumentCreator
public AbstractDocumentCreator()
-
-
Method Details
-
setStyledDocument
Associates the creator with a document.- Specified by:
setStyledDocumentin interfaceIDocumentCreator- Parameters:
styledDocument-StyledDocument
-
getStyledDocument
Return an associated document.- Returns:
StyledDocument
-
getFormatter
Return a formatter.- Returns:
- the formatter
-
setFormatter
Set a formatter.- Specified by:
setFormatterin interfaceIDocumentCreator- Parameters:
formatter- the formatter to set
-
createImageTool
Create the new image tool from styled document.- Returns:
- the new image tool
-
getStyleByCSSParser
Re-arrange style by style name.
Using CSSParser.- Parameters:
value- value set for converting- Returns:
- set of style
-