Package org.openpdf.text
Interface Element
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 intA possible value for paragraph alignment.static final intA possible value for paragraph alignment.static final intA possible value for paragraph alignment.static final intThis is a possible type ofElement.static final intA flag indicating whether 1-bits are to be interpreted as black pixels and 0-bits as white pixels,static final intA flag indicating whether the filter expects extra 0-bits before each encoded line so that the line begins on a byte boundary.static final intA flag indicating whether the filter expects the encoded data to be terminated by an end-of-block pattern, overriding the Rows parameter.static final intA flag indicating whether end-of-line bit patterns are required to be present in the encoding.static final intPure one-dimensional encoding (Group 3, 1-D)static final intThis is a possible type ofElement.static final intThis is a possible type ofElement.static final intThis is a possible type ofElement.static final intThis is a possible type ofElement.static final intThis is a possible type ofElement.static final intThis is a possible type ofElement.static final intThis is a possible type ofElement.static final intThis is a possible type ofElement.static final intThis is a possible type ofElement.static final intThis is a possible type ofElement.static final intThis is a possible type ofElement.static final intThis is a possible type ofElement.static final intThis is a possible type ofElement. -
Method Summary
-
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:
-
TABLE
static final int TABLEThis is a possible type ofElement.- See Also:
-
RECTANGLE
static final int RECTANGLEThis 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:
-
MARKED
static final int MARKEDThis is a possible type ofElement.- 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:
-
CCITTG3_1D
static final int CCITTG3_1DPure one-dimensional encoding (Group 3, 1-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
-
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
-
toString
String toString()Gets the content of the text element.
-