@OpenApiAll public abstract class AbstractDocumentCreator extends java.lang.Object implements IDocumentCreator
Constructor and Description |
---|
AbstractDocumentCreator() |
Modifier and Type | Method and Description |
---|---|
ImageTool |
createImageTool()
Create the new image tool from styled document.
|
DefaultFormatter |
getFormatter()
Return a formatter.
|
protected java.util.Set<com.osbcp.cssparser.PropertyValue> |
getStyleByCSSParser(java.lang.String value)
Re-arrange style by style name.
Using CSSParser. |
StyledDocument |
getStyledDocument()
Return an associated document.
|
void |
setFormatter(DefaultFormatter formatter)
Set a formatter.
|
void |
setStyledDocument(StyledDocument styledDocument)
Associates the creator with a document.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
convert, setDocumentPage, setPaperHeight, setPaperWidth, setProperties
public void setStyledDocument(StyledDocument styledDocument)
setStyledDocument
in interface IDocumentCreator
styledDocument
- StyledDocument
public StyledDocument getStyledDocument()
StyledDocument
public DefaultFormatter getFormatter()
public void setFormatter(DefaultFormatter formatter)
setFormatter
in interface IDocumentCreator
formatter
- the formatter to setpublic ImageTool createImageTool()
protected java.util.Set<com.osbcp.cssparser.PropertyValue> getStyleByCSSParser(java.lang.String value)
value
- value set for convertingCopyright © 2010 - No Magic Asia