Class TabbedChunk
java.lang.Object
com.itextpdf.text.Chunk
com.itextpdf.tool.xml.html.pdfelement.TabbedChunk
- All Implemented Interfaces:
Element
,IAccessibleElement
A TabbedChunk is a Chunk that contains tabcount and alignment
data to allow the HTML to PDF conversion to accept tabstop css.
-
Field Summary
FieldsFields inherited from class com.itextpdf.text.Chunk
accessibleAttributes, ACTION, attributes, BACKGROUND, CHAR_SPACING, COLOR, content, ENCODING, font, GENERICTAG, HSCALE, HYPHENATION, IMAGE, LINEHEIGHT, LOCALDESTINATION, LOCALGOTO, NEWLINE, NEWPAGE, NEXTPAGE, OBJECT_REPLACEMENT_CHARACTER, PDFANNOTATION, REMOTEGOTO, role, SEPARATOR, SKEW, SPACETABBING, SPLITCHARACTER, SUBSUPSCRIPT, TAB, TABBING, TABSETTINGS, TEXTRENDERMODE, UNDERLINE, WHITESPACE, WORD_SPACING
Fields inherited from interface com.itextpdf.text.Element
ALIGN_BASELINE, ALIGN_BOTTOM, ALIGN_CENTER, ALIGN_JUSTIFIED, ALIGN_JUSTIFIED_ALL, ALIGN_LEFT, ALIGN_MIDDLE, ALIGN_RIGHT, ALIGN_TOP, ALIGN_UNDEFINED, ANCHOR, ANNOTATION, AUTHOR, BODY, CCITT_BLACKIS1, CCITT_ENCODEDBYTEALIGN, CCITT_ENDOFBLOCK, CCITT_ENDOFLINE, CCITTG3_1D, CCITTG3_2D, CCITTG4, CHAPTER, CHUNK, CREATIONDATE, CREATOR, DIV, HEADER, IMGRAW, IMGTEMPLATE, JBIG2, JPEG, JPEG2000, KEYWORDS, LANGUAGE, LIST, LISTITEM, MARKED, PARAGRAPH, PHRASE, PRODUCER, PTABLE, RECTANGLE, SECTION, SUBJECT, TITLE, WRITABLE_DIRECT, YMARK
-
Constructor Summary
ConstructorsConstructorDescriptionTabbedChunk
(VerticalPositionMark verticalPositionMark, float parseToPt, boolean b) TabbedChunk
(VerticalPositionMark verticalPositionMark, float parseToPt, boolean b, String alignment) TabbedChunk
(String content) Constructor -
Method Summary
Modifier and TypeMethodDescriptionReturn the Alignment for this Chunkint
Returns the tabCount for this Chunk.void
setAlignment
(String alignment) Returns the alignment for this Chunk.void
setTabCount
(int tabCount) Set the tabCount for this Chunk.Methods inherited from class com.itextpdf.text.Chunk
append, createTabspace, createTabspace, createWhitespace, createWhitespace, getAccessibleAttribute, getAccessibleAttributes, getAttributes, getCharacterSpacing, getChunks, getContent, getFont, getHorizontalScaling, getHyphenation, getId, getImage, getRole, getTextExpansion, getTextRise, getWidthPoint, getWordSpacing, hasAccessibleAttributes, hasAttributes, isContent, isEmpty, isInline, isNestable, isTabspace, isWhitespace, process, setAccessibleAttribute, setAction, setAnchor, setAnchor, setAnnotation, setAttributes, setBackground, setBackground, setCharacterSpacing, setFont, setGenericTag, setHorizontalScaling, setHyphenation, setId, setLineHeight, setLocalDestination, setLocalGoto, setNewPage, setRemoteGoto, setRemoteGoto, setRole, setSkew, setSplitCharacter, setTextExpansion, setTextRenderMode, setTextRise, setUnderline, setUnderline, setWordSpacing, toString, type
-
Field Details
-
tabCount
private int tabCount -
alignment
-
-
Constructor Details
-
TabbedChunk
Constructor- Parameters:
content
- the content of the Chunk
-
TabbedChunk
public TabbedChunk(VerticalPositionMark verticalPositionMark, float parseToPt, boolean b, String alignment) - Parameters:
verticalPositionMark
- the drawInterface used to draw the tab. tabPosition an XparseToPt
- that will be used as start position for the next Chunk.b
- if true, a newline will be added if the tabPosition has already been reached.alignment
- the alignment
-
TabbedChunk
- Parameters:
verticalPositionMark
- the drawInterface to use to draw the tab. tabPosition an XparseToPt
- that will be used as start position for the next Chunk.b
- if true, a newline will be added if the tabPosition has already been reached.
-
-
Method Details
-
setTabCount
public void setTabCount(int tabCount) Set the tabCount for this Chunk.- Parameters:
tabCount
- the tabcount
-
getTabCount
public int getTabCount()Returns the tabCount for this Chunk.- Returns:
- tabCount
-
setAlignment
Returns the alignment for this Chunk.- Parameters:
alignment
- the alignment
-
getAlignment
Return the Alignment for this Chunk- Returns:
- alignment
-