Class TabbedChunk
- java.lang.Object
-
- com.itextpdf.text.Chunk
-
- com.itextpdf.tool.xml.html.pdfelement.TabbedChunk
-
- All Implemented Interfaces:
Element
,IAccessibleElement
public class TabbedChunk extends Chunk
A TabbedChunk is a Chunk that contains tabcount and alignment data to allow the HTML to PDF conversion to accept tabstop css.
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
alignment
private int
tabCount
-
Fields 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
Constructors Constructor Description TabbedChunk(VerticalPositionMark verticalPositionMark, float parseToPt, boolean b)
TabbedChunk(VerticalPositionMark verticalPositionMark, float parseToPt, boolean b, java.lang.String alignment)
TabbedChunk(java.lang.String content)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getAlignment()
Return the Alignment for this Chunkint
getTabCount()
Returns the tabCount for this Chunk.void
setAlignment(java.lang.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
-
-
-
-
Constructor Detail
-
TabbedChunk
public TabbedChunk(java.lang.String content)
Constructor- Parameters:
content
- the content of the Chunk
-
TabbedChunk
public TabbedChunk(VerticalPositionMark verticalPositionMark, float parseToPt, boolean b, java.lang.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
public TabbedChunk(VerticalPositionMark verticalPositionMark, float parseToPt, boolean b)
- 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 Detail
-
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
public void setAlignment(java.lang.String alignment)
Returns the alignment for this Chunk.- Parameters:
alignment
- the alignment
-
getAlignment
public java.lang.String getAlignment()
Return the Alignment for this Chunk- Returns:
- alignment
-
-