de.betabeans.scroogexhtml.converter
Interface Writer

All Known Implementing Classes:
DOMWriter

public interface Writer

Writer interface.


Method Summary
 void applyTextProperties()
          Apply current character properties to current FormattedText object.
 CharacterProperties getCharacterProperties()
           
 java.lang.String getDefaultFontName()
          Get the default font name.
 Document getDocument()
          Returns the document.
 java.lang.StringBuffer getHtml()
          Get HTML code for the document.
 ParagraphProperties getParagraphProperties()
           
 java.lang.StringBuffer getPlainText()
          Get plain text for the document.
 boolean isNumberingStyle()
          Get the numbered flag.
 void popCharacterProperties(CharacterProperties newValue)
           
 void popParagraphProperties(ParagraphProperties newValue)
           
 void resetCharacterAttributes()
          Reset all character attributes to default values.
 void resetParagraphAttributes()
          Reset paragraph attributes to default values.
 void setAlignment(int newValue)
          Set paragraph property 'alignment'.
 void setBGColor(java.lang.String newValue)
          Set character property 'bg color'.
 void setBold(boolean newValue)
          Set character property 'bold'.
 void setDefaultFontName(java.lang.String newValue)
          Set the default font name.
 void setFirstIndent(int newValue)
          Set paragraph property 'first line indent'.
 void setFontCharSet(int newValue)
          Set character property 'character set'.
 void setFontColor(java.lang.String newValue)
          Set character property 'font color'.
 void setFontName(java.lang.String newValue)
          Set character property 'font name'.
 void setFontSize(int newValue)
          Set character property 'font size'.
 void setHLColor(java.lang.String newValue)
          Set character property 'hl color'.
 void setItalic(boolean newValue)
          Set character property 'italic'.
 void setLanguage(java.lang.String newValue)
          Set character property 'language'.
 void setLeftIndent(int newValue)
          Set paragraph property 'left indent'.
 void setNumbered(boolean newValue)
          Set paragraph property 'numbered'.
 void setNumberingLevel(int newValue)
          Set paragraph property 'numbering level'.
 void setNumberingStyle(boolean newValue)
          Set the numbered flag.
 void setRightIndent(int newValue)
          Set paragraph property 'right indent'.
 void setRightToLeftChar(boolean newValue)
          Set character property 'ltr'.
 void setRightToLeftPar(boolean newValue)
          Set paragraph property 'rtl'.
 void setStrike(boolean newValue)
          Set character property 'strike'.
 void setSubscript(boolean newValue)
          Set character property 'subscript'.
 void setSuperscript(boolean newValue)
          Set character property 'superscript'.
 void setUnderline(boolean newValue)
          Set character property 'underline'.
 void writeChar(char ch)
          Append a character.
 

Method Detail

getDocument

Document getDocument()
Returns the document.

Returns:
Document

getCharacterProperties

CharacterProperties getCharacterProperties()

getParagraphProperties

ParagraphProperties getParagraphProperties()

popParagraphProperties

void popParagraphProperties(ParagraphProperties newValue)

popCharacterProperties

void popCharacterProperties(CharacterProperties newValue)

writeChar

void writeChar(char ch)
Append a character.

Parameters:
ch - char

resetCharacterAttributes

void resetCharacterAttributes()
Reset all character attributes to default values.


setDefaultFontName

void setDefaultFontName(java.lang.String newValue)
Set the default font name.

Parameters:
newValue - String

getDefaultFontName

java.lang.String getDefaultFontName()
Get the default font name.

Returns:
String

setNumberingStyle

void setNumberingStyle(boolean newValue)
Set the numbered flag.

Parameters:
newValue - boolean

isNumberingStyle

boolean isNumberingStyle()
Get the numbered flag.

Returns:
boolean

resetParagraphAttributes

void resetParagraphAttributes()
Reset paragraph attributes to default values.


applyTextProperties

void applyTextProperties()
Apply current character properties to current FormattedText object.


getHtml

java.lang.StringBuffer getHtml()
Get HTML code for the document.

Returns:
StringBuffer

setBold

void setBold(boolean newValue)
Set character property 'bold'.

Parameters:
newValue - boolean the new value.

setRightToLeftChar

void setRightToLeftChar(boolean newValue)
Set character property 'ltr'.

Parameters:
newValue - boolean

setLanguage

void setLanguage(java.lang.String newValue)
Set character property 'language'.

Parameters:
newValue - String

setItalic

void setItalic(boolean newValue)
Set character property 'italic'.

Parameters:
newValue - boolean

setStrike

void setStrike(boolean newValue)
Set character property 'strike'.

Parameters:
newValue - boolean

setUnderline

void setUnderline(boolean newValue)
Set character property 'underline'.

Parameters:
newValue - boolean

setFontName

void setFontName(java.lang.String newValue)
Set character property 'font name'.

Parameters:
newValue - String

setFontCharSet

void setFontCharSet(int newValue)
Set character property 'character set'.

Parameters:
newValue - int

setFontColor

void setFontColor(java.lang.String newValue)
Set character property 'font color'.

Parameters:
newValue - String

setBGColor

void setBGColor(java.lang.String newValue)
Set character property 'bg color'.

Parameters:
newValue - String

setHLColor

void setHLColor(java.lang.String newValue)
Set character property 'hl color'.

Parameters:
newValue - String

setFontSize

void setFontSize(int newValue)
Set character property 'font size'.

Parameters:
newValue - int

setSubscript

void setSubscript(boolean newValue)
Set character property 'subscript'.

Parameters:
newValue - boolean

setSuperscript

void setSuperscript(boolean newValue)
Set character property 'superscript'.

Parameters:
newValue - boolean

setRightToLeftPar

void setRightToLeftPar(boolean newValue)
Set paragraph property 'rtl'.

Parameters:
newValue - boolean

setNumberingLevel

void setNumberingLevel(int newValue)
Set paragraph property 'numbering level'.

Parameters:
newValue - int

setAlignment

void setAlignment(int newValue)
Set paragraph property 'alignment'.

Parameters:
newValue - int

setNumbered

void setNumbered(boolean newValue)
Set paragraph property 'numbered'.

Parameters:
newValue - boolean

setLeftIndent

void setLeftIndent(int newValue)
Set paragraph property 'left indent'.

Parameters:
newValue - int

setRightIndent

void setRightIndent(int newValue)
Set paragraph property 'right indent'.

Parameters:
newValue - int

setFirstIndent

void setFirstIndent(int newValue)
Set paragraph property 'first line indent'.

Parameters:
newValue - int

getPlainText

java.lang.StringBuffer getPlainText()
Get plain text for the document.

Returns:
StringBuffer


Copyright (c) 1998-2006 BetaSoft Michael Justin. All Rights Reserved.