|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.lowagie.text.rtf.RtfElement
com.lowagie.text.rtf.list.RtfListLevel
public class RtfListLevel
The RtfListLevel is a listlevel object in a list.
Field Summary | |
---|---|
private int |
alignment
The alignment of this RtfList |
private String |
bulletCharacter
The text to use as the bullet character |
private Chunk |
bulletChunk
|
private int |
firstIndent
The first indentation of this RtfList |
private RtfFont |
fontBullet
The RtfFont for bulleted lists |
private RtfFont |
fontNumber
The RtfFont for numbered lists |
private boolean |
isLegal
Flag to indicate if the levellegal control word should be emitted. |
private boolean |
isTentative
Flag to indicate if the tentative control word should be emitted. |
private int |
leftIndent
The left indentation of this RtfList |
private int |
levelFollowValue
|
private int |
levelPicture
Which picture bullet from the \listpicture destination should be applied |
private int |
levelTextNumber
|
private static byte[] |
LIST_LEVEL
Constant for list level |
private static byte[] |
LIST_LEVEL_ALIGNMENT
Constant for list level alignment old |
private static byte[] |
LIST_LEVEL_ALIGNMENT_NEW
Constant for list level alignment new |
private static byte[] |
LIST_LEVEL_FIRST_INDENT
Constant for the first indentation |
static int |
LIST_LEVEL_FOLLOW_NOTHING
|
static int |
LIST_LEVEL_FOLLOW_SPACE
|
static int |
LIST_LEVEL_FOLLOW_TAB
|
private static byte[] |
LIST_LEVEL_FOLOW
Constant which specifies which character follows the level text |
private static byte[] |
LIST_LEVEL_INDENT
Constant which specifies the levelindent control word |
private static byte[] |
LIST_LEVEL_LEGAL
Constant which specifies (1) if list numbers from previous levels should be converted to Arabic numbers; (0) if they should be left with the format specified by their own level's definition. |
private static byte[] |
LIST_LEVEL_NO_RESTART
Constant which specifies (1) if this level does/does not restart its count each time a super ordinate level is incremented (0) if this level does not restart its count each time a super ordinate level is incremented. |
private static byte[] |
LIST_LEVEL_NUMBERS_BEGIN
Constant for the beginning of the list level numbers |
private static byte[] |
LIST_LEVEL_NUMBERS_END
Constant for the end of the list level numbers |
private static byte[] |
LIST_LEVEL_NUMBERS_NUMBERED
Constant for the list level numbers |
private static byte[] |
LIST_LEVEL_PICTURE
Constant for the levelpictureN control word |
private static byte[] |
LIST_LEVEL_SPACE
Constant which specifies the levelspace controlword |
private static byte[] |
LIST_LEVEL_START_AT
Constant for list level start at |
private static byte[] |
LIST_LEVEL_STYLE_BULLETED_BEGIN
Constant for the beginning of the list level bulleted style |
private static byte[] |
LIST_LEVEL_STYLE_BULLETED_END
Constant for the end of the list level bulleted style |
private static byte[] |
LIST_LEVEL_STYLE_NUMBERED_BEGIN
Constant for the beginning of the list level numbered style |
private static byte[] |
LIST_LEVEL_STYLE_NUMBERED_END
Constant for the end of the list level numbered style |
private static byte[] |
LIST_LEVEL_SYMBOL_INDENT
Constant for the symbol indentation |
private static byte[] |
LIST_LEVEL_TEMPLATE_ID
Constant for list level |
private static byte[] |
LIST_LEVEL_TENTATIVE
Constant for the lvltentative control word |
private static byte[] |
LIST_LEVEL_TEXT
Constant for list level text |
private static byte[] |
LIST_LEVEL_TYPE
Constant for list level style old |
private static byte[] |
LIST_LEVEL_TYPE_NEW
Constant for list level style new |
static int |
LIST_TYPE_ARABIC
|
static int |
LIST_TYPE_ARABIC_LEADING_ZERO
|
static int |
LIST_TYPE_BASE
|
static int |
LIST_TYPE_BULLET
|
static int |
LIST_TYPE_CARDINAL_TEXT_NUMBER
|
static int |
LIST_TYPE_LOWER_LETTERS
|
static int |
LIST_TYPE_LOWER_ROMAN
|
static int |
LIST_TYPE_LOWERCASE_LETTER
|
static int |
LIST_TYPE_LOWERCASE_ROMAN_NUMERAL
|
static int |
LIST_TYPE_NO_NUMBER
|
static int |
LIST_TYPE_NUMBERED
|
static int |
LIST_TYPE_ORDINAL_NUMBER
|
static int |
LIST_TYPE_ORDINAL_TEXT_NUMBER
|
static int |
LIST_TYPE_UNKNOWN
|
static int |
LIST_TYPE_UPPER_LETTERS
|
static int |
LIST_TYPE_UPPER_ROMAN
|
static int |
LIST_TYPE_UPPERCASE_LETTER
|
static int |
LIST_TYPE_UPPERCASE_ROMAN_NUMERAL
|
private int |
listLevel
The level of this RtfListLevel |
private RtfListLevel |
listLevelParent
|
private int |
listNoRestart
Does the list restart numbering each time a super ordinate level is incremented |
private int |
listStartAt
The number to start counting at |
private int |
listType
Whether this RtfList is numbered |
private RtfList |
parent
Parent list object |
private int |
rightIndent
The right indentation of this RtfList |
private int |
symbolIndent
The symbol indentation of this RtfList |
private int |
templateID
|
Fields inherited from class com.lowagie.text.rtf.RtfElement |
---|
document, inHeader, inTable |
Fields inherited from interface com.lowagie.text.rtf.RtfBasicElement |
---|
CLOSE_GROUP, COMMA_DELIMITER, DELIMITER, OPEN_GROUP, TWIPS_FACTOR |
Constructor Summary | |
---|---|
RtfListLevel(RtfDocument doc)
|
|
RtfListLevel(RtfDocument doc,
RtfList parent)
|
|
RtfListLevel(RtfListLevel ll)
|
Method Summary | |
---|---|
protected void |
correctIndentation()
Correct the indentation of this level |
int |
getAlignment()
|
String |
getBulletCharacter()
|
int |
getFirstIndent()
|
RtfFont |
getFontBullet()
|
RtfFont |
getFontNumber()
|
int |
getLeftIndent()
|
int |
getLevelFollowValue()
|
int |
getLevelTextNumber()
|
int |
getListLevel()
Gets the list level of this RtfList |
RtfListLevel |
getListLevelParent()
|
int |
getListNoRestart()
|
int |
getListStartAt()
|
int |
getListType()
|
RtfList |
getParent()
|
int |
getRightIndent()
|
int |
getSymbolIndent()
|
boolean |
isLegal()
|
boolean |
isTentative()
|
void |
setAlignment(int alignment)
|
void |
setBulletCharacter(String bulletCharacter)
|
void |
setBulletChunk(Chunk bulletCharacter)
|
void |
setBulletFont(Font f)
set the bullet font |
void |
setFirstIndent(int firstIndent)
|
void |
setFontBullet(RtfFont fontBullet)
|
void |
setFontNumber(RtfFont fontNumber)
|
void |
setLeftIndent(int leftIndent)
|
void |
setLegal(boolean isLegal)
|
void |
setLevelFollowValue(int levelFollowValue)
|
void |
setLevelTextNumber(int levelTextNumber)
|
void |
setListLevel(int listLevel)
Sets the list level of this RtfList. |
void |
setListLevelParent(RtfListLevel listLevelParent)
|
void |
setListNoRestart(int listNoRestart)
|
void |
setListStartAt(int listStartAt)
|
void |
setListType(int listType)
|
void |
setParent(RtfList parent)
|
void |
setRightIndent(int rightIndent)
|
void |
setSymbolIndent(int symbolIndent)
|
void |
setTentative(boolean isTentative)
|
void |
writeContent(OutputStream result)
unused |
void |
writeDefinition(OutputStream result)
Write the definition part of the element |
void |
writeIndentation(OutputStream result)
Write the indentation values for this RtfList . |
void |
writeListBeginning(OutputStream result)
Writes the initialization part of the RtfList |
protected void |
writeListNumbers(OutputStream result)
Writes only the list number and list level number. |
Methods inherited from class com.lowagie.text.rtf.RtfElement |
---|
intToByteArray, isInTable, setInHeader, setInTable, setRtfDocument |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.lowagie.text.rtf.RtfBasicElement |
---|
setInHeader, setInTable, setRtfDocument |
Field Detail |
---|
private static final byte[] LIST_LEVEL
private static final byte[] LIST_LEVEL_TEMPLATE_ID
private static final byte[] LIST_LEVEL_TYPE
private static final byte[] LIST_LEVEL_TYPE_NEW
private static final byte[] LIST_LEVEL_ALIGNMENT
private static final byte[] LIST_LEVEL_ALIGNMENT_NEW
private static final byte[] LIST_LEVEL_START_AT
private static final byte[] LIST_LEVEL_TEXT
private static final byte[] LIST_LEVEL_STYLE_NUMBERED_BEGIN
private static final byte[] LIST_LEVEL_STYLE_NUMBERED_END
private static final byte[] LIST_LEVEL_STYLE_BULLETED_BEGIN
private static final byte[] LIST_LEVEL_STYLE_BULLETED_END
private static final byte[] LIST_LEVEL_NUMBERS_BEGIN
private static final byte[] LIST_LEVEL_FOLOW
private static final byte[] LIST_LEVEL_SPACE
private static final byte[] LIST_LEVEL_INDENT
private static final byte[] LIST_LEVEL_LEGAL
private static final byte[] LIST_LEVEL_NO_RESTART
private static final byte[] LIST_LEVEL_NUMBERS_NUMBERED
private static final byte[] LIST_LEVEL_NUMBERS_END
private static final byte[] LIST_LEVEL_FIRST_INDENT
private static final byte[] LIST_LEVEL_SYMBOL_INDENT
private static final byte[] LIST_LEVEL_TENTATIVE
private static final byte[] LIST_LEVEL_PICTURE
public static final int LIST_TYPE_NUMBERED
public static final int LIST_TYPE_UPPER_LETTERS
public static final int LIST_TYPE_LOWER_LETTERS
public static final int LIST_TYPE_UPPER_ROMAN
public static final int LIST_TYPE_LOWER_ROMAN
public static final int LIST_TYPE_UNKNOWN
public static final int LIST_TYPE_BASE
public static final int LIST_TYPE_ARABIC
public static final int LIST_TYPE_UPPERCASE_ROMAN_NUMERAL
public static final int LIST_TYPE_LOWERCASE_ROMAN_NUMERAL
public static final int LIST_TYPE_UPPERCASE_LETTER
public static final int LIST_TYPE_LOWERCASE_LETTER
public static final int LIST_TYPE_ORDINAL_NUMBER
public static final int LIST_TYPE_CARDINAL_TEXT_NUMBER
public static final int LIST_TYPE_ORDINAL_TEXT_NUMBER
public static final int LIST_TYPE_ARABIC_LEADING_ZERO
public static final int LIST_TYPE_BULLET
public static final int LIST_TYPE_NO_NUMBER
private int listType
private String bulletCharacter
private Chunk bulletChunk
private int listStartAt
private int listLevel
private int firstIndent
private int leftIndent
private int rightIndent
private int symbolIndent
private boolean isTentative
private boolean isLegal
private int listNoRestart
public static final int LIST_LEVEL_FOLLOW_TAB
public static final int LIST_LEVEL_FOLLOW_SPACE
public static final int LIST_LEVEL_FOLLOW_NOTHING
private int levelFollowValue
private int alignment
private int levelPicture
private int levelTextNumber
private RtfFont fontNumber
private RtfFont fontBullet
private int templateID
private RtfListLevel listLevelParent
private RtfList parent
Constructor Detail |
---|
public RtfListLevel(RtfDocument doc)
public RtfListLevel(RtfDocument doc, RtfList parent)
public RtfListLevel(RtfListLevel ll)
Method Detail |
---|
public int getListNoRestart()
public void setListNoRestart(int listNoRestart)
listNoRestart
- the listNoRestart to setpublic int getAlignment()
public void setAlignment(int alignment)
alignment
- the alignment to setpublic void writeDefinition(OutputStream result) throws IOException
RtfExtendedElement
writeDefinition
in interface RtfExtendedElement
result
- The OutputStream
to write the element definition to
IOException
public void writeContent(OutputStream result) throws IOException
writeContent
in interface RtfBasicElement
writeContent
in class RtfElement
result
- The OutputStream
to write the content to
IOException
protected void writeListNumbers(OutputStream result) throws IOException
result
- The OutputStream
to write to
IOException
- On i/o errors.public void writeIndentation(OutputStream result) throws IOException
RtfList
.
result
- The OutputStream
to write to.
IOException
- On i/o errors.public void writeListBeginning(OutputStream result) throws IOException
result
- The OutputStream
to write to
IOException
- On i/o errors.protected void correctIndentation()
public int getListLevel()
public void setListLevel(int listLevel)
listLevel
- The list level to set.public String getBulletCharacter()
public int getListStartAt()
public void setListStartAt(int listStartAt)
listStartAt
- the listStartAt to setpublic int getFirstIndent()
public void setFirstIndent(int firstIndent)
firstIndent
- the firstIndent to setpublic int getLeftIndent()
public void setLeftIndent(int leftIndent)
leftIndent
- the leftIndent to setpublic int getRightIndent()
public void setRightIndent(int rightIndent)
rightIndent
- the rightIndent to setpublic int getSymbolIndent()
public void setSymbolIndent(int symbolIndent)
symbolIndent
- the symbolIndent to setpublic RtfList getParent()
public void setParent(RtfList parent)
parent
- the parent to setpublic void setBulletCharacter(String bulletCharacter)
bulletCharacter
- the bulletCharacter to setpublic void setBulletChunk(Chunk bulletCharacter)
bulletCharacter
- public int getListType()
public void setListType(int listType)
listType
- the listType to setpublic void setBulletFont(Font f)
f
- public RtfFont getFontNumber()
public void setFontNumber(RtfFont fontNumber)
fontNumber
- the fontNumber to setpublic RtfFont getFontBullet()
public void setFontBullet(RtfFont fontBullet)
fontBullet
- the fontBullet to setpublic boolean isTentative()
public void setTentative(boolean isTentative)
isTentative
- the isTentative to setpublic boolean isLegal()
public void setLegal(boolean isLegal)
isLegal
- the isLegal to setpublic int getLevelFollowValue()
public void setLevelFollowValue(int levelFollowValue)
levelFollowValue
- the levelFollowValue to setpublic int getLevelTextNumber()
public void setLevelTextNumber(int levelTextNumber)
levelTextNumber
- the levelTextNumber to setpublic RtfListLevel getListLevelParent()
public void setListLevelParent(RtfListLevel listLevelParent)
listLevelParent
- the listLevelParent to set
|
Hosted by Hostbasket | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |