A class that contains all the possible tagnames and their attributes.
| Field Summary |
|---|
| public static final String | ITEXT | the root tag. |
| public static final String | TITLE | attribute of the root and annotation tag (also a special tag within a chapter or section) |
| public static final String | SUBJECT | attribute of the root tag |
| public static final String | KEYWORDS | attribute of the root tag |
| public static final String | AUTHOR | attribute of the root tag |
| public static final String | CREATIONDATE | attribute of the root tag |
| public static final String | PRODUCER | attribute of the root tag |
| public static final String | CHAPTER | the chapter tag |
| public static final String | SECTION | the section tag |
| public static final String | NUMBERDEPTH | attribute of section/chapter tag |
| public static final String | DEPTH | attribute of section/chapter tag |
| public static final String | NUMBER | attribute of section/chapter tag |
| public static final String | INDENT | attribute of section/chapter tag |
| public static final String | LEFT | attribute of chapter/section/paragraph/table/cell tag |
| public static final String | RIGHT | attribute of chapter/section/paragraph/table/cell tag |
| public static final String | PHRASE | the phrase tag |
| public static final String | ANCHOR | the anchor tag |
| public static final String | LIST | the list tag |
| public static final String | LISTITEM | the listitem tag |
| public static final String | PARAGRAPH | the paragraph tag |
| public static final String | LEADING | attribute of phrase/paragraph/cell tag |
| public static final String | ALIGN | attribute of paragraph/image/table tag |
| public static final String | KEEPTOGETHER | attribute of paragraph |
| public static final String | NAME | attribute of anchor tag |
| public static final String | REFERENCE | attribute of anchor tag |
| public static final String | LISTSYMBOL | attribute of list tag |
| public static final String | NUMBERED | attribute of list tag |
| public static final String | LETTERED | attribute of the list tag |
| public static final String | FIRST | attribute of list tag |
| public static final String | SYMBOLINDENT | attribute of list tag |
| public static final String | INDENTATIONLEFT | attribute of list tag |
| public static final String | INDENTATIONRIGHT | attribute of list tag |
| public static final String | IGNORE | the chunk tag |
| public static final String | ENTITY | the chunk tag |
| public static final String | ID | the chunk tag |
| public static final String | CHUNK | the chunk tag |
| public static final String | ENCODING | attribute of the chunk tag |
| public static final String | EMBEDDED | attribute of the chunk tag |
| public static final String | COLOR | attribute of the chunk/table/cell tag |
| public static final String | RED | attribute of the chunk/table/cell tag |
| public static final String | GREEN | attribute of the chunk/table/cell tag |
| public static final String | BLUE | attribute of the chunk/table/cell tag |
| public static final String | SUBSUPSCRIPT | attribute of the chunk tag |
| public static final String | LOCALGOTO | attribute of the chunk tag |
| public static final String | REMOTEGOTO | attribute of the chunk tag |
| public static final String | LOCALDESTINATION | attribute of the chunk tag |
| public static final String | GENERICTAG | attribute of the chunk tag |
| public static final String | TABLE | the table tag |
| public static final String | ROW | the cell tag |
| public static final String | CELL | the cell tag |
| public static final String | COLUMNS | attribute of the table tag |
| public static final String | LASTHEADERROW | attribute of the table tag |
| public static final String | CELLPADDING | attribute of the table tag |
| public static final String | CELLSPACING | attribute of the table tag |
| public static final String | OFFSET | attribute of the table tag |
| public static final String | WIDTHS | attribute of the table tag |
| public static final String | TABLEFITSPAGE | attribute of the table tag |
| public static final String | CELLSFITPAGE | attribute of the table tag |
| public static final String | CONVERT2PDFP | attribute of the table tag |
| public static final String | HORIZONTALALIGN | attribute of the cell tag |
| public static final String | VERTICALALIGN | attribute of the cell tag |
| public static final String | COLSPAN | attribute of the cell tag |
| public static final String | ROWSPAN | attribute of the cell tag |
| public static final String | HEADER | attribute of the cell tag |
| public static final String | NOWRAP | attribute of the cell tag |
| public static final String | BORDERWIDTH | attribute of the table/cell tag |
| public static final String | TOP | attribute of the table/cell tag |
| public static final String | BOTTOM | attribute of the table/cell tag |
| public static final String | WIDTH | attribute of the table/cell tag |
| public static final String | BORDERCOLOR | attribute of the table/cell tag |
| public static final String | BACKGROUNDCOLOR | attribute of the table/cell tag |
| public static final String | BGRED | attribute of the table/cell tag |
| public static final String | BGGREEN | attribute of the table/cell tag |
| public static final String | BGBLUE | attribute of the table/cell tag |
| public static final String | GRAYFILL | attribute of the table/cell tag |
| public static final String | IMAGE | the image tag |
| public static final String | URL | attribute of the image and annotation tag |
| public static final String | UNDERLYING | attribute of the image tag |
| public static final String | TEXTWRAP | attribute of the image tag |
| public static final String | ALT | attribute of the image tag |
| public static final String | ABSOLUTEX | attribute of the image tag |
| public static final String | ABSOLUTEY | attribute of the image tag |
| public static final String | PLAINWIDTH | attribute of the image tag |
| public static final String | PLAINHEIGHT | attribute of the image tag |
| public static final String | SCALEDWIDTH | attribute of the image tag |
| public static final String | SCALEDHEIGHT | attribute of the image tag |
| public static final String | ROTATION | attribute of the image tag |
| public static final String | NEWPAGE | the newpage tag |
| public static final String | NEWLINE | the newpage tag |
| public static final String | ANNOTATION | the annotation tag |
| public static final String | FILE | attribute of the annotation tag |
| public static final String | DESTINATION | attribute of the annotation tag |
| public static final String | PAGE | attribute of the annotation tag |
| public static final String | NAMED | attribute of the annotation tag |
| public static final String | APPLICATION | attribute of the annotation tag |
| public static final String | PARAMETERS | attribute of the annotation tag |
| public static final String | OPERATION | attribute of the annotation tag |
| public static final String | DEFAULTDIR | attribute of the annotation tag |
| public static final String | LLX | attribute of the annotation tag |
| public static final String | LLY | attribute of the annotation tag |
| public static final String | URX | attribute of the annotation tag |
| public static final String | URY | attribute of the annotation tag |
| public static final String | CONTENT | attribute of the annotation tag |
| public static final String | ALIGN_LEFT | the possible value of an alignment attribute |
| public static final String | ALIGN_CENTER | the possible value of an alignment attribute |
| public static final String | ALIGN_RIGHT | the possible value of an alignment attribute |
| public static final String | ALIGN_JUSTIFIED | the possible value of an alignment attribute |
| public static final String | ALIGN_JUSTIFIED_ALL | the possible value of an alignment attribute |
| public static final String | ALIGN_TOP | the possible value of an alignment attribute |
| public static final String | ALIGN_MIDDLE | the possible value of an alignment attribute |
| public static final String | ALIGN_BOTTOM | the possible value of an alignment attribute |
| public static final String | ALIGN_BASELINE | the possible value of an alignment attribute |
| public static final String | DEFAULT | the possible value of an alignment attribute |
| public static final String | UNKNOWN | the possible value of an alignment attribute |
| public static final String | FONT | the possible value of an alignment attribute |
| public static final String | SIZE | the possible value of an alignment attribute |
| public static final String | STYLE | the possible value of an alignment attribute |
| public static final String | HORIZONTALRULE | the possible value of a tag |
| public static final String | PAGE_SIZE | the possible value of a tag |
| public static final String | ORIENTATION | the possible value of a tag |
| public static final String | ALIGN_INDENTATION_ITEMS | a possible list attribute |
| public static final String | AUTO_INDENT_ITEMS | a possible list attribute |
| public static final String | LOWERCASE | a possible list attribute |
| public static final String | FACE | a possible list attribute |
| public static final String | SRC | attribute of the image or iframe tag |
| Method from com.lowagie.text.ElementTags Detail: |
public static int alignmentValue(String alignment) {
if (alignment == null) return Element.ALIGN_UNDEFINED;
if (ALIGN_CENTER.equalsIgnoreCase(alignment)) {
return Element.ALIGN_CENTER;
}
if (ALIGN_LEFT.equalsIgnoreCase(alignment)) {
return Element.ALIGN_LEFT;
}
if (ALIGN_RIGHT.equalsIgnoreCase(alignment)) {
return Element.ALIGN_RIGHT;
}
if (ALIGN_JUSTIFIED.equalsIgnoreCase(alignment)) {
return Element.ALIGN_JUSTIFIED;
}
if (ALIGN_JUSTIFIED_ALL.equalsIgnoreCase(alignment)) {
return Element.ALIGN_JUSTIFIED_ALL;
}
if (ALIGN_TOP.equalsIgnoreCase(alignment)) {
return Element.ALIGN_TOP;
}
if (ALIGN_MIDDLE.equalsIgnoreCase(alignment)) {
return Element.ALIGN_MIDDLE;
}
if (ALIGN_BOTTOM.equalsIgnoreCase(alignment)) {
return Element.ALIGN_BOTTOM;
}
if (ALIGN_BASELINE.equalsIgnoreCase(alignment)) {
return Element.ALIGN_BASELINE;
}
return Element.ALIGN_UNDEFINED;
}
Translates a String value to an alignment value.
(written by Norman Richards, integrated into iText by Bruno) |
public static String getAlignment(int alignment) {
// methods
switch(alignment) {
case Element.ALIGN_LEFT:
return ALIGN_LEFT;
case Element.ALIGN_CENTER:
return ALIGN_CENTER;
case Element.ALIGN_RIGHT:
return ALIGN_RIGHT;
case Element.ALIGN_JUSTIFIED:
case Element.ALIGN_JUSTIFIED_ALL:
return ALIGN_JUSTIFIED;
case Element.ALIGN_TOP:
return ALIGN_TOP;
case Element.ALIGN_MIDDLE:
return ALIGN_MIDDLE;
case Element.ALIGN_BOTTOM:
return ALIGN_BOTTOM;
case Element.ALIGN_BASELINE:
return ALIGN_BASELINE;
default:
return DEFAULT;
}
}
Translates the alignment value to a String value. |