Interface Element

All Known Implementing Classes:
Image, ImgJBIG2, ImgRaw, Meta, Rectangle, RectangleReadOnly

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

    Fields
    Modifier and Type
    Field
    Description
    static final int
    A possible value for paragraph alignment.
    static final int
    A possible value for paragraph alignment.
    static final int
    A possible value for paragraph alignment.
    static final int
    This is a possible type of Element .
    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
    This is a possible type of Element .
    static final int
    This is a possible type of Element .
    static final int
    This is a possible type of Element.
    static final int
    This is a possible type of Element.
    static final int
    This is a possible type of Element.
    static final int
    This is a possible type of Element.
    static final int
    This is a possible type of Element.
    static final int
    This is a possible type of Element .
    static final int
    This is a possible type of Element .
    static final int
    This is a possible type of Element.
    static final int
    This is a possible type of Element.
    static final int
    This is a possible type of Element.
    static final int
    This is a possible type of Element.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Checks if this element is a content object.
    boolean
    Checks if this element is nestable.
    Gets the content of the text element.
    int
    Gets the type of the text element.
  • Field Details

    • TITLE

      static final int TITLE
      This is a possible type of Element.
      See Also:
    • SUBJECT

      static final int SUBJECT
      This is a possible type of Element.
      See Also:
    • KEYWORDS

      static final int KEYWORDS
      This is a possible type of Element.
      See Also:
    • AUTHOR

      static final int AUTHOR
      This is a possible type of Element .
      See Also:
    • PRODUCER

      static final int PRODUCER
      This is a possible type of Element .
      See Also:
    • CREATIONDATE

      static final int CREATIONDATE
      This is a possible type of Element .
      See Also:
    • CREATOR

      static final int CREATOR
      This is a possible type of Element .
      See Also:
    • MODIFICATIONDATE

      static final int MODIFICATIONDATE
      This is a possible type of Element .
      See Also:
    • TABLE

      static final int TABLE
      This is a possible type of Element.
      See Also:
    • RECTANGLE

      static final int RECTANGLE
      This is a possible type of Element.
      See Also:
    • IMGRAW

      static final int IMGRAW
      This is a possible type of Element.
      See Also:
    • IMGTEMPLATE

      static final int IMGTEMPLATE
      This is a possible type of Element.
      See Also:
    • MARKED

      static final int MARKED
      This is a possible type of Element.
      See Also:
    • ALIGN_LEFT

      static final int ALIGN_LEFT
      A 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_CENTER
      A 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_RIGHT
      A 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_1D
      Pure one-dimensional encoding (Group 3, 1-D)
      See Also:
    • CCITT_BLACKIS1

      static final int CCITT_BLACKIS1
      A 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_ENCODEDBYTEALIGN
      A 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_ENDOFLINE
      A flag indicating whether end-of-line bit patterns are required to be present in the encoding.
      See Also:
    • CCITT_ENDOFBLOCK

      static final int CCITT_ENDOFBLOCK
      A 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.
      Overrides:
      toString in class Object
      Returns:
      a type