Package org.fugerit.java.doc.base.model
Class DocPara
- java.lang.Object
-
- org.fugerit.java.doc.base.model.DocElement
-
- org.fugerit.java.doc.base.model.DocContainer
-
- org.fugerit.java.doc.base.model.DocPara
-
- All Implemented Interfaces:
Serializable,DocStyle
public class DocPara extends DocContainer implements DocStyle
- Author:
- mfranci
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static intALIGN_BOTTOMstatic intALIGN_CENTERstatic intALIGN_JUSTIFYstatic intALIGN_JUSTIFY_ALLstatic intALIGN_LEFTstatic intALIGN_MIDDLEstatic intALIGN_RIGHTstatic intALIGN_TOPstatic intALIGN_UNSETstatic intDEFAULT_HEAD_LEVELstatic intSTYLE_BOLDstatic intSTYLE_BOLDITALICstatic intSTYLE_ITALICstatic intSTYLE_NORMALstatic intSTYLE_UNDERLINEstatic intSTYLE_UNSETstatic StringTAG_NAMEstatic StringTAG_NAME_H-
Fields inherited from class org.fugerit.java.doc.base.model.DocContainer
TAG_NAME_BODY, TAG_NAME_META, TAG_NAME_METADATA, TAG_NAME_PL
-
Fields inherited from class org.fugerit.java.doc.base.model.DocElement
ELEMENT_TYPE_PARAGRAPH, ELEMENT_TYPE_TABLE, ELEMENT_TYPE_TABLECELL, ELEMENT_TYPE_TABLEROW, STRING_0, STRING_1, UNSET
-
-
Constructor Summary
Constructors Constructor Description DocPara()
-
Method Summary
-
Methods inherited from class org.fugerit.java.doc.base.model.DocContainer
addElement, containerSize, docElements, getElementList
-
Methods inherited from class org.fugerit.java.doc.base.model.DocElement
getId, setId
-
-
-
-
Field Detail
-
TAG_NAME
public static final String TAG_NAME
- See Also:
- Constant Field Values
-
TAG_NAME_H
public static final String TAG_NAME_H
- See Also:
- Constant Field Values
-
DEFAULT_HEAD_LEVEL
public static final int DEFAULT_HEAD_LEVEL
- See Also:
- Constant Field Values
-
STYLE_NORMAL
public static final int STYLE_NORMAL
- See Also:
- Constant Field Values
-
STYLE_BOLD
public static final int STYLE_BOLD
- See Also:
- Constant Field Values
-
STYLE_UNDERLINE
public static final int STYLE_UNDERLINE
- See Also:
- Constant Field Values
-
STYLE_ITALIC
public static final int STYLE_ITALIC
- See Also:
- Constant Field Values
-
STYLE_BOLDITALIC
public static final int STYLE_BOLDITALIC
- See Also:
- Constant Field Values
-
STYLE_UNSET
public static final int STYLE_UNSET
- See Also:
- Constant Field Values
-
ALIGN_UNSET
public static final int ALIGN_UNSET
- See Also:
- Constant Field Values
-
ALIGN_LEFT
public static final int ALIGN_LEFT
- See Also:
- Constant Field Values
-
ALIGN_CENTER
public static final int ALIGN_CENTER
- See Also:
- Constant Field Values
-
ALIGN_RIGHT
public static final int ALIGN_RIGHT
- See Also:
- Constant Field Values
-
ALIGN_JUSTIFY
public static final int ALIGN_JUSTIFY
- See Also:
- Constant Field Values
-
ALIGN_JUSTIFY_ALL
public static final int ALIGN_JUSTIFY_ALL
- See Also:
- Constant Field Values
-
ALIGN_TOP
public static final int ALIGN_TOP
- See Also:
- Constant Field Values
-
ALIGN_MIDDLE
public static final int ALIGN_MIDDLE
- See Also:
- Constant Field Values
-
ALIGN_BOTTOM
public static final int ALIGN_BOTTOM
- See Also:
- Constant Field Values
-
-
Method Detail
-
getFontName
public String getFontName()
-
setFontName
public void setFontName(String fontName)
-
getForeColor
public String getForeColor()
- Specified by:
getForeColorin interfaceDocStyle- Returns:
- the foreColor
-
setForeColor
public void setForeColor(String foreColor)
- Specified by:
setForeColorin interfaceDocStyle- Parameters:
foreColor- the foreColor to set
-
getBackColor
public String getBackColor()
- Specified by:
getBackColorin interfaceDocStyle- Returns:
- the backColor
-
setBackColor
public void setBackColor(String backColor)
- Specified by:
setBackColorin interfaceDocStyle- Parameters:
backColor- the backColor to set
-
getStyle
public int getStyle()
-
setStyle
public void setStyle(int style)
-
getSize
public int getSize()
-
setSize
public void setSize(int size)
-
getText
public String getText()
-
setText
public void setText(String text)
-
getTextIndent
public Float getTextIndent()
-
setTextIndent
public void setTextIndent(Float textIndent)
-
getSpaceBefore
public Float getSpaceBefore()
-
setSpaceBefore
public void setSpaceBefore(Float spaceBefore)
-
getSpaceAfter
public Float getSpaceAfter()
-
setSpaceAfter
public void setSpaceAfter(Float spaceAfter)
-
getSpaceLeft
public Float getSpaceLeft()
-
setSpaceLeft
public void setSpaceLeft(Float spaceLeft)
-
getSpaceRight
public Float getSpaceRight()
-
setSpaceRight
public void setSpaceRight(Float spaceRight)
-
getLeading
public Float getLeading()
-
setLeading
public void setLeading(Float leading)
-
parseStyle
public static int parseStyle(String style)
-
parseStyle
public static int parseStyle(String style, int defaultStype)
-
getFormat
public String getFormat()
-
setFormat
public void setFormat(String format)
-
getType
public String getType()
-
setType
public void setType(String type)
-
getAlign
public int getAlign()
- Returns:
- the align
-
setAlign
public void setAlign(int align)
- Parameters:
align- the align to set
-
getHeadLevel
public int getHeadLevel()
-
setHeadLevel
public void setHeadLevel(int headLevel)
-
toString
public String toString()
- Overrides:
toStringin classDocElement
-
getWhiteSpaceCollapse
public String getWhiteSpaceCollapse()
-
setWhiteSpaceCollapse
public void setWhiteSpaceCollapse(String whiteSpaceCollapse)
-
getOriginalStyle
public int getOriginalStyle()
-
setOriginalStyle
public void setOriginalStyle(int originalStyle)
-
-