org.jfree.layouting.input.swing
Class SwingDocumentImport
java.lang.Object
org.jfree.layouting.input.swing.SwingDocumentImport
public class SwingDocumentImport
extends java.lang.Object
Right now, we do not convert Swing-styles into CSS styles. Hey, we should,
but we don't.
todo parse styles
ELEMENT_STYLE_ATTRIBUTE
public static final String ELEMENT_STYLE_ATTRIBUTE
NAMESPACE
public static final String NAMESPACE
STYLESHEET
public static final String STYLESHEET
STYLESHEET_PCDATA
public static final String STYLESHEET_PCDATA
STYLESHEET_TYPE
public static final String STYLESHEET_TYPE
SwingDocumentImport
public SwingDocumentImport()
getElementText
protected String getElementText(Element element)
throws BadLocationException
Returns the text content of an element.
element
- The element containing text.
getNormalizedStyleName
public String getNormalizedStyleName(String name)
handleElement
protected void handleElement(Element element)
throws BadLocationException,
InputFeedException
main
public static void main(String[] args)
throws IOException,
BadLocationException,
InputFeedException
processDocumentProperties
protected void processDocumentProperties(DefaultStyledDocument document)
throws InputFeedException
Processes the document properties. These properties defined once for the
whole document.
document
- The document source.
processStyleElements
protected void processStyleElements(DefaultStyledDocument document)
throws InputFeedException
Processes the style definitions of a styled document. Style definitions are
declared once in the document and are reused by styled elements.
document
- The source document.