Class RtfListLevel
java.lang.Object
com.lowagie.text.rtf.RtfElement
com.lowagie.text.rtf.list.RtfListLevel
- All Implemented Interfaces:
RtfBasicElement, RtfExtendedElement
The RtfListLevel is a listlevel object in a list.
- Since:
- 2.1.3
- Version:
- $Id: RtfListLevel.java 3580 2008-08-06 15:52:00Z howard_s $
- Author:
- Howard Shank (hgshank@yahoo.com)
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class RtfElement
document, inHeader, inTableFields inherited from interface RtfBasicElement
CLOSE_GROUP, COMMA_DELIMITER, DELIMITER, OPEN_GROUP, TWIPS_FACTOR -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidCorrect the indentation of this levelintintintintintintGets the list level of this RtfListintintintintintbooleanisLegal()booleanvoidsetAlignment(int alignment) voidsetBulletCharacter(String bulletCharacter) voidsetBulletChunk(com.lowagie.text.Chunk bulletCharacter) voidsetBulletFont(com.lowagie.text.Font f) set the bullet fontvoidsetFirstIndent(int firstIndent) voidsetFontBullet(RtfFont fontBullet) voidsetFontNumber(RtfFont fontNumber) voidsetLeftIndent(int leftIndent) voidsetLegal(boolean isLegal) voidsetLevelFollowValue(int levelFollowValue) voidsetLevelTextNumber(int levelTextNumber) voidsetListLevel(int listLevel) Sets the list level of this RtfList.voidsetListLevelParent(RtfListLevel listLevelParent) voidsetListNoRestart(int listNoRestart) voidsetListStartAt(int listStartAt) voidsetListType(int listType) voidvoidsetRightIndent(int rightIndent) voidsetSymbolIndent(int symbolIndent) voidsetTentative(boolean isTentative) voidwriteContent(OutputStream result) unusedvoidwriteDefinition(OutputStream result) Write the definition part of the elementvoidwriteIndentation(OutputStream result) Write the indentation values for thisRtfList.voidwriteListBeginning(OutputStream result) Writes the initialization part of the RtfListprotected voidwriteListNumbers(OutputStream result) Writes only the list number and list level number.Methods inherited from class RtfElement
intToByteArray, isInTable, setInHeader, setInTable, setRtfDocumentMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface RtfBasicElement
setInHeader, setInTable, setRtfDocument
-
Field Details
-
LIST_TYPE_NUMBERED
public static final int LIST_TYPE_NUMBERED- See Also:
-
LIST_TYPE_UPPER_LETTERS
public static final int LIST_TYPE_UPPER_LETTERS- See Also:
-
LIST_TYPE_LOWER_LETTERS
public static final int LIST_TYPE_LOWER_LETTERS- See Also:
-
LIST_TYPE_UPPER_ROMAN
public static final int LIST_TYPE_UPPER_ROMAN- See Also:
-
LIST_TYPE_LOWER_ROMAN
public static final int LIST_TYPE_LOWER_ROMAN- See Also:
-
LIST_TYPE_UNKNOWN
public static final int LIST_TYPE_UNKNOWN- See Also:
-
LIST_TYPE_BASE
public static final int LIST_TYPE_BASE- See Also:
-
LIST_TYPE_ARABIC
public static final int LIST_TYPE_ARABIC- See Also:
-
LIST_TYPE_UPPERCASE_ROMAN_NUMERAL
public static final int LIST_TYPE_UPPERCASE_ROMAN_NUMERAL- See Also:
-
LIST_TYPE_LOWERCASE_ROMAN_NUMERAL
public static final int LIST_TYPE_LOWERCASE_ROMAN_NUMERAL- See Also:
-
LIST_TYPE_UPPERCASE_LETTER
public static final int LIST_TYPE_UPPERCASE_LETTER- See Also:
-
LIST_TYPE_LOWERCASE_LETTER
public static final int LIST_TYPE_LOWERCASE_LETTER- See Also:
-
LIST_TYPE_ORDINAL_NUMBER
public static final int LIST_TYPE_ORDINAL_NUMBER- See Also:
-
LIST_TYPE_CARDINAL_TEXT_NUMBER
public static final int LIST_TYPE_CARDINAL_TEXT_NUMBER- See Also:
-
LIST_TYPE_ORDINAL_TEXT_NUMBER
public static final int LIST_TYPE_ORDINAL_TEXT_NUMBER- See Also:
-
LIST_TYPE_ARABIC_LEADING_ZERO
public static final int LIST_TYPE_ARABIC_LEADING_ZERO- See Also:
-
LIST_TYPE_BULLET
public static final int LIST_TYPE_BULLET- See Also:
-
LIST_TYPE_NO_NUMBER
public static final int LIST_TYPE_NO_NUMBER- See Also:
-
LIST_LEVEL_FOLLOW_TAB
public static final int LIST_LEVEL_FOLLOW_TAB- See Also:
-
LIST_LEVEL_FOLLOW_SPACE
public static final int LIST_LEVEL_FOLLOW_SPACE- See Also:
-
LIST_LEVEL_FOLLOW_NOTHING
public static final int LIST_LEVEL_FOLLOW_NOTHING- See Also:
-
-
Constructor Details
-
RtfListLevel
-
RtfListLevel
-
RtfListLevel
-
-
Method Details
-
getListNoRestart
public int getListNoRestart()- Returns:
- the listNoRestart
-
setListNoRestart
public void setListNoRestart(int listNoRestart) - Parameters:
listNoRestart- the listNoRestart to set
-
getAlignment
public int getAlignment()- Returns:
- the alignment
-
setAlignment
public void setAlignment(int alignment) - Parameters:
alignment- the alignment to set
-
writeDefinition
Description copied from interface:RtfExtendedElementWrite the definition part of the element- Specified by:
writeDefinitionin interfaceRtfExtendedElement- Parameters:
result- TheOutputStreamto write the element definition to- Throws:
IOException
-
writeContent
unused- Specified by:
writeContentin interfaceRtfBasicElement- Specified by:
writeContentin classRtfElement- Parameters:
result- TheOutputStreamto write the content to- Throws:
IOException
-
writeListNumbers
Writes only the list number and list level number.- Parameters:
result- TheOutputStreamto write to- Throws:
IOException- On i/o errors.
-
writeIndentation
Write the indentation values for thisRtfList.- Parameters:
result- TheOutputStreamto write to.- Throws:
IOException- On i/o errors.
-
writeListBeginning
Writes the initialization part of the RtfList- Parameters:
result- TheOutputStreamto write to- Throws:
IOException- On i/o errors.
-
correctIndentation
protected void correctIndentation()Correct the indentation of this level -
getListLevel
public int getListLevel()Gets the list level of this RtfList- Returns:
- Returns the list level.
-
setListLevel
public void setListLevel(int listLevel) Sets the list level of this RtfList.- Parameters:
listLevel- The list level to set.
-
getBulletCharacter
-
getListStartAt
public int getListStartAt()- Returns:
- the listStartAt
-
setListStartAt
public void setListStartAt(int listStartAt) - Parameters:
listStartAt- the listStartAt to set
-
getFirstIndent
public int getFirstIndent()- Returns:
- the firstIndent
-
setFirstIndent
public void setFirstIndent(int firstIndent) - Parameters:
firstIndent- the firstIndent to set
-
getLeftIndent
public int getLeftIndent()- Returns:
- the leftIndent
-
setLeftIndent
public void setLeftIndent(int leftIndent) - Parameters:
leftIndent- the leftIndent to set
-
getRightIndent
public int getRightIndent()- Returns:
- the rightIndent
-
setRightIndent
public void setRightIndent(int rightIndent) - Parameters:
rightIndent- the rightIndent to set
-
getSymbolIndent
public int getSymbolIndent()- Returns:
- the symbolIndent
-
setSymbolIndent
public void setSymbolIndent(int symbolIndent) - Parameters:
symbolIndent- the symbolIndent to set
-
getParent
- Returns:
- the parent
-
setParent
- Parameters:
parent- the parent to set
-
setBulletCharacter
- Parameters:
bulletCharacter- the bulletCharacter to set
-
setBulletChunk
public void setBulletChunk(com.lowagie.text.Chunk bulletCharacter) - Parameters:
bulletCharacter-- Since:
- 2.1.4
-
getListType
public int getListType()- Returns:
- the listType
-
setListType
public void setListType(int listType) - Parameters:
listType- the listType to set
-
setBulletFont
public void setBulletFont(com.lowagie.text.Font f) set the bullet font- Parameters:
f-
-
getFontNumber
- Returns:
- the fontNumber
-
setFontNumber
- Parameters:
fontNumber- the fontNumber to set
-
getFontBullet
- Returns:
- the fontBullet
-
setFontBullet
- Parameters:
fontBullet- the fontBullet to set
-
isTentative
public boolean isTentative()- Returns:
- the isTentative
-
setTentative
public void setTentative(boolean isTentative) - Parameters:
isTentative- the isTentative to set
-
isLegal
public boolean isLegal()- Returns:
- the isLegal
-
setLegal
public void setLegal(boolean isLegal) - Parameters:
isLegal- the isLegal to set
-
getLevelFollowValue
public int getLevelFollowValue()- Returns:
- the levelFollowValue
-
setLevelFollowValue
public void setLevelFollowValue(int levelFollowValue) - Parameters:
levelFollowValue- the levelFollowValue to set
-
getLevelTextNumber
public int getLevelTextNumber()- Returns:
- the levelTextNumber
-
setLevelTextNumber
public void setLevelTextNumber(int levelTextNumber) - Parameters:
levelTextNumber- the levelTextNumber to set
-
getListLevelParent
- Returns:
- the listLevelParent
-
setListLevelParent
- Parameters:
listLevelParent- the listLevelParent to set
-