|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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 for two reasons:
Anchor
,
Cell
,
Chapter
,
Chunk
,
Header
,
Image
,
Jpeg
,
List
,
ListItem
,
Meta
,
Paragraph
,
Phrase
,
Rectangle
,
Row
,
Section
,
Table
Field Summary | |
---|---|
static int |
ALIGN_BASELINE
A possible value for vertical alignment. |
static int |
ALIGN_BOTTOM
A possible value for vertical alignment. |
static int |
ALIGN_CENTER
A possible value for paragraph alignment. |
static int |
ALIGN_JUSTIFIED
A possible value for paragraph alignment. |
static int |
ALIGN_JUSTIFIED_ALL
Does the same as ALIGN_JUSTIFIED but the last line is also spread out. |
static int |
ALIGN_LEFT
A possible value for paragraph alignment. |
static int |
ALIGN_MIDDLE
A possible value for vertical alignment. |
static int |
ALIGN_RIGHT
A possible value for paragraph alignment. |
static int |
ALIGN_TOP
A possible value for vertical alignment. |
static int |
ALIGN_UNDEFINED
A possible value for paragraph alignment. |
static int |
ANCHOR
This is a possible type of Element |
static int |
ANNOTATION
This is a possible type of Element . |
static int |
AUTHOR
This is a possible type of Element . |
static int |
CCITT_BLACKIS1
A flag indicating whether 1-bits are to be interpreted as black pixels and 0-bits as white pixels, |
static 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. |
static 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. |
static int |
CCITT_ENDOFLINE
A flag indicating whether end-of-line bit patterns are required to be present in the encoding. |
static int |
CCITTG3_1D
Pure one-dimensional encoding (Group 3, 1-D) |
static int |
CCITTG3_2D
Mixed one- and two-dimensional encoding (Group 3, 2-D) |
static int |
CCITTG4
Pure two-dimensional encoding (Group 4) |
static int |
CELL
This is a possible type of Element . |
static int |
CHAPTER
This is a possible type of Element |
static int |
CHUNK
This is a possible type of Element . |
static int |
CREATIONDATE
This is a possible type of Element . |
static int |
CREATOR
This is a possible type of Element . |
static int |
HEADER
This is a possible type of Element . |
static int |
IMGRAW
This is a possible type of Element . |
static int |
IMGTEMPLATE
This is a possible type of Element . |
static int |
JBIG2
This is a possible type of Element . |
static int |
JPEG
This is a possible type of Element . |
static int |
JPEG2000
This is a possible type of Element . |
static int |
KEYWORDS
This is a possible type of Element . |
static int |
LIST
This is a possible type of Element |
static int |
LISTITEM
This is a possible type of Element |
static int |
MARKED
This is a possible type of Element . |
static int |
MULTI_COLUMN_TEXT
This is a possible type of Element . |
static int |
PARAGRAPH
This is a possible type of Element . |
static int |
PHRASE
This is a possible type of Element . |
static int |
PRODUCER
This is a possible type of Element . |
static int |
PTABLE
This is a possible type of Element . |
static int |
RECTANGLE
This is a possible type of Element . |
static int |
ROW
This is a possible type of Element . |
static int |
SECTION
This is a possible type of Element |
static int |
SUBJECT
This is a possible type of Element . |
static int |
TABLE
This is a possible type of Element . |
static int |
TITLE
This is a possible type of Element . |
static int |
YMARK
This is a possible type of Element . |
Method Summary | |
---|---|
java.util.ArrayList |
getChunks()
Gets all the chunks in this element. |
boolean |
isContent()
Checks if this element is a content object. |
boolean |
isNestable()
Checks if this element is nestable. |
boolean |
process(ElementListener listener)
Processes the element by adding it (or the different parts) to an
ElementListener . |
java.lang.String |
toString()
Gets the content of the text element. |
int |
type()
Gets the type of the text element. |
Field Detail |
---|
static final int HEADER
Element
.
static final int TITLE
Element
.
static final int SUBJECT
Element
.
static final int KEYWORDS
Element
.
static final int AUTHOR
Element .
- See Also:
- Constant Field Values
static final int PRODUCER
Element .
- See Also:
- Constant Field Values
static final int CREATIONDATE
Element .
- See Also:
- Constant Field Values
static final int CREATOR
Element .
- See Also:
- Constant Field Values
static final int CHUNK
Element
.
static final int PHRASE
Element
.
static final int PARAGRAPH
Element
.
static final int SECTION
Element
static final int LIST
Element
static final int LISTITEM
Element
static final int CHAPTER
Element
static final int ANCHOR
Element
static final int CELL
Element
.
static final int ROW
Element
.
static final int TABLE
Element
.
static final int PTABLE
Element
.
static final int ANNOTATION
Element
.
static final int RECTANGLE
Element
.
static final int JPEG
Element
.
static final int JPEG2000
Element
.
static final int IMGRAW
Element
.
static final int IMGTEMPLATE
Element
.
static final int JBIG2
Element
.
static final int MULTI_COLUMN_TEXT
Element
.
static final int MARKED
Element
.
static final int YMARK
Element
.
static final int ALIGN_UNDEFINED
static final int ALIGN_LEFT
static final int ALIGN_CENTER
static final int ALIGN_RIGHT
static final int ALIGN_JUSTIFIED
static final int ALIGN_TOP
static final int ALIGN_MIDDLE
static final int ALIGN_BOTTOM
static final int ALIGN_BASELINE
static final int ALIGN_JUSTIFIED_ALL
static final int CCITTG4
static final int CCITTG3_1D
static final int CCITTG3_2D
static final int CCITT_BLACKIS1
static final int CCITT_ENCODEDBYTEALIGN
static final int CCITT_ENDOFLINE
static final int CCITT_ENDOFBLOCK
Method Detail |
---|
boolean process(ElementListener listener)
ElementListener
.
listener
- an ElementListener
true
if the element was processed successfullyint type()
boolean isContent()
boolean isNestable()
java.util.ArrayList getChunks()
ArrayList
java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |