Package com.lowagie.text
Interface Element
- All Known Subinterfaces:
LargeElement
,TextElementArray
- All Known Implementing Classes:
Anchor
,Annotation
,Cell
,Chapter
,ChapterAutoNumber
,Chunk
,DottedLineSeparator
,Footnote
,GreekList
,Header
,HeaderFooter
,Image
,ImgCCITT
,ImgJBIG2
,ImgRaw
,ImgTemplate
,ImgWMF
,IncCell
,Jpeg
,Jpeg2000
,LineSeparator
,List
,ListItem
,MarkedObject
,MarkedSection
,Meta
,MultiColumnText
,Paragraph
,PdfCell
,PdfPCell
,PdfPTable
,PdfTable
,Phrase
,Rectangle
,RectangleReadOnly
,RomanList
,Row
,Section
,SimpleCell
,SimpleTable
,Table
,TableRectangle
,VerticalPositionMark
,ZapfDingbatsList
,ZapfDingbatsNumberList
public interface Element
Interface for a text element.
Remark: I looked at the interface javax.swing.text.Element, but I decided to write my own text-classes.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
A possible value for vertical alignment.static final int
A possible value for vertical alignment.static final int
A possible value for paragraph alignment.static final int
A possible value for paragraph alignment.static final int
Does the same as ALIGN_JUSTIFIED but the last line is also spread out.static final int
A possible value for paragraph alignment.static final int
A possible value for vertical alignment.static final int
A possible value for paragraph alignment.static final int
A possible value for vertical alignment.static final int
A possible value for paragraph alignment.static final int
This is a possible type ofElement
static final int
This is a possible type ofElement
.static final int
This is a possible type ofElement
.static final int
A flag indicating whether 1-bits are to be interpreted as black pixels and 0-bits as white pixels,static final int
A flag indicating whether the filter expects extra 0-bits before each encoded line so that the line begins on a byte boundary.static final int
A flag indicating whether the filter expects the encoded data to be terminated by an end-of-block pattern, overriding the Rows parameter.static final int
A flag indicating whether end-of-line bit patterns are required to be present in the encoding.static final int
Pure one-dimensional encoding (Group 3, 1-D)static final int
Mixed one- and two-dimensional encoding (Group 3, 2-D)static final int
Pure two-dimensional encoding (Group 4)static final int
This is a possible type ofElement
.static final int
This is a possible type ofElement
static final int
This is a possible type ofElement
.static final int
This is a possible type ofElement
.static final int
This is a possible type ofElement
.static final int
This is a possible type ofElement
.static final int
This is a possible type ofElement
.static final int
This is a possible type ofElement
.static final int
This is a possible type ofElement
.static final int
This is a possible type ofElement
.static final int
This is a possible type ofElement
.static final int
This is a possible type ofElement
.static final int
This is a possible type ofElement
.static final int
This is a possible type ofElement
static final int
This is a possible type ofElement
static final int
This is a possible type ofElement
.static final int
This is a possible type ofElement
.static final int
This is a possible type ofElement
.static final int
This is a possible type ofElement
.static final int
This is a possible type ofElement
.static final int
This is a possible type ofElement
.static final int
This is a possible type ofElement
.static final int
This is a possible type ofElement
.static final int
This is a possible type ofElement
.static final int
This is a possible type ofElement
static final int
This is a possible type ofElement
.static final int
This is a possible type ofElement
.static final int
This is a possible type ofElement
.static final int
This is a possible type ofElement
. -
Method Summary
Modifier and TypeMethodDescriptionGets all the chunks in this element.boolean
Checks if this element is a content object.boolean
Checks if this element is nestable.boolean
process
(ElementListener listener) Processes the element by adding it (or the different parts) to anElementListener
.toString()
Gets the content of the text element.int
type()
Gets the type of the text element.
-
Field Details
-
HEADER
static final int HEADERThis is a possible type ofElement
.- See Also:
-
TITLE
static final int TITLEThis is a possible type ofElement
.- See Also:
-
SUBJECT
static final int SUBJECTThis is a possible type ofElement
.- See Also:
-
KEYWORDS
static final int KEYWORDSThis is a possible type ofElement
.- See Also:
-
AUTHOR
static final int AUTHORThis is a possible type ofElement
.- See Also:
-
PRODUCER
static final int PRODUCERThis is a possible type ofElement
.- See Also:
-
CREATIONDATE
static final int CREATIONDATEThis is a possible type ofElement
.- See Also:
-
CREATOR
static final int CREATORThis is a possible type ofElement
.- See Also:
-
MODIFICATIONDATE
static final int MODIFICATIONDATEThis is a possible type ofElement
.- See Also:
-
CHUNK
static final int CHUNKThis is a possible type ofElement
.- See Also:
-
PHRASE
static final int PHRASEThis is a possible type ofElement
.- See Also:
-
PARAGRAPH
static final int PARAGRAPHThis is a possible type ofElement
.- See Also:
-
SECTION
static final int SECTIONThis is a possible type ofElement
- See Also:
-
LIST
static final int LISTThis is a possible type ofElement
- See Also:
-
LISTITEM
static final int LISTITEMThis is a possible type ofElement
- See Also:
-
CHAPTER
static final int CHAPTERThis is a possible type ofElement
- See Also:
-
ANCHOR
static final int ANCHORThis is a possible type ofElement
- See Also:
-
CELL
static final int CELLThis is a possible type ofElement
.- See Also:
-
ROW
static final int ROWThis is a possible type ofElement
.- See Also:
-
TABLE
static final int TABLEThis is a possible type ofElement
.- See Also:
-
PTABLE
static final int PTABLEThis is a possible type ofElement
.- See Also:
-
ANNOTATION
static final int ANNOTATIONThis is a possible type ofElement
.- See Also:
-
RECTANGLE
static final int RECTANGLEThis is a possible type ofElement
.- See Also:
-
JPEG
static final int JPEGThis is a possible type ofElement
.- See Also:
-
JPEG2000
static final int JPEG2000This is a possible type ofElement
.- See Also:
-
IMGRAW
static final int IMGRAWThis is a possible type ofElement
.- See Also:
-
IMGTEMPLATE
static final int IMGTEMPLATEThis is a possible type ofElement
.- See Also:
-
JBIG2
static final int JBIG2This is a possible type ofElement
.- Since:
- 2.1.5
- See Also:
-
MULTI_COLUMN_TEXT
static final int MULTI_COLUMN_TEXTThis is a possible type ofElement
.- See Also:
-
MARKED
static final int MARKEDThis is a possible type ofElement
.- See Also:
-
YMARK
static final int YMARKThis is a possible type ofElement
.- Since:
- 2.1.2
- See Also:
-
FOOTNOTE
static final int FOOTNOTEThis is a possible type ofElement
.- See Also:
-
ALIGN_UNDEFINED
static final int ALIGN_UNDEFINEDA possible value for paragraph alignment. This specifies that the text is aligned to the left indent and extra whitespace should be placed on the right.- See Also:
-
ALIGN_LEFT
static final int ALIGN_LEFTA possible value for paragraph alignment. This specifies that the text is aligned to the left indent and extra whitespace should be placed on the right.- See Also:
-
ALIGN_CENTER
static final int ALIGN_CENTERA possible value for paragraph alignment. This specifies that the text is aligned to the center and extra whitespace should be placed equally on the left and right.- See Also:
-
ALIGN_RIGHT
static final int ALIGN_RIGHTA possible value for paragraph alignment. This specifies that the text is aligned to the right indent and extra whitespace should be placed on the left.- See Also:
-
ALIGN_JUSTIFIED
static final int ALIGN_JUSTIFIEDA possible value for paragraph alignment. This specifies that extra whitespace should be spread out through the rows of the paragraph with the text lined up with the left and right indent except on the last line which should be aligned to the left.- See Also:
-
ALIGN_TOP
static final int ALIGN_TOPA possible value for vertical alignment.- See Also:
-
ALIGN_MIDDLE
static final int ALIGN_MIDDLEA possible value for vertical alignment.- See Also:
-
ALIGN_BOTTOM
static final int ALIGN_BOTTOMA possible value for vertical alignment.- See Also:
-
ALIGN_BASELINE
static final int ALIGN_BASELINEA possible value for vertical alignment.- See Also:
-
ALIGN_JUSTIFIED_ALL
static final int ALIGN_JUSTIFIED_ALLDoes the same as ALIGN_JUSTIFIED but the last line is also spread out.- See Also:
-
CCITTG4
static final int CCITTG4Pure two-dimensional encoding (Group 4)- See Also:
-
CCITTG3_1D
static final int CCITTG3_1DPure one-dimensional encoding (Group 3, 1-D)- See Also:
-
CCITTG3_2D
static final int CCITTG3_2DMixed one- and two-dimensional encoding (Group 3, 2-D)- See Also:
-
CCITT_BLACKIS1
static final int CCITT_BLACKIS1A flag indicating whether 1-bits are to be interpreted as black pixels and 0-bits as white pixels,- See Also:
-
CCITT_ENCODEDBYTEALIGN
static final int CCITT_ENCODEDBYTEALIGNA flag indicating whether the filter expects extra 0-bits before each encoded line so that the line begins on a byte boundary.- See Also:
-
CCITT_ENDOFLINE
static final int CCITT_ENDOFLINEA flag indicating whether end-of-line bit patterns are required to be present in the encoding.- See Also:
-
CCITT_ENDOFBLOCK
static final int CCITT_ENDOFBLOCKA flag indicating whether the filter expects the encoded data to be terminated by an end-of-block pattern, overriding the Rows parameter. The use of this flag will set the key /EndOfBlock to false.- See Also:
-
-
Method Details
-
process
Processes the element by adding it (or the different parts) to anElementListener
.- Parameters:
listener
- anElementListener
- Returns:
true
if the element was processed successfully
-
type
int type()Gets the type of the text element.- Returns:
- a type
-
isContent
boolean isContent()Checks if this element is a content object. If not, it's a metadata object.- Returns:
- true if this is a 'content' element; false if this is a 'metadata' element
- Since:
- iText 2.0.8
-
isNestable
boolean isNestable()Checks if this element is nestable.- Returns:
- true if this element can be nested inside other elements.
- Since:
- iText 2.0.8
-
getChunks
Gets all the chunks in this element.- Returns:
- an
ArrayList
-
toString
String toString()Gets the content of the text element.
-