com.itextpdf.tool.xml.html.pdfelement
Class TabbedChunk

java.lang.Object
  extended by com.itextpdf.text.Chunk
      extended by 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 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
TabbedChunk(String content)
          Constructor
TabbedChunk(VerticalPositionMark verticalPositionMark, float parseToPt, boolean b)
           
TabbedChunk(VerticalPositionMark verticalPositionMark, float parseToPt, boolean b, String alignment)
           
 
Method Summary
 String getAlignment()
          Return the Alignment for this Chunk
 int getTabCount()
          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, 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TabbedChunk

public TabbedChunk(String content)
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 X
parseToPt - 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 X
parseToPt - 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(String alignment)
Returns the alignment for this Chunk.

Parameters:
alignment - the alignment

getAlignment

public String getAlignment()
Return the Alignment for this Chunk

Returns:
alignment


Copyright © 2015. All Rights Reserved.