Package com.lowagie.text.factories
Class ElementFactory
java.lang.Object
com.lowagie.text.factories.ElementFactory
This class is able to create Element objects based on a list of properties.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic AnchorgetAnchor(Properties attributes) Creates an Anchor object based on a list of properties.static AnnotationgetAnnotation(Properties attributes) Creates an Annotation object based on a list of properties.static CellgetCell(Properties attributes) Creates a Cell object based on a list of properties.static ChapterAutoNumbergetChapter(Properties attributes) Creates a ChapterAutoNumber object based on a list of properties.static ChunkgetChunk(Properties attributes) Creates a Chunk object based on a list of properties.static ImagegetImage(Properties attributes) Creates an Image object based on a list of properties.static ListgetList(Properties attributes) Creates a List object based on a list of properties.static ListItemgetListItem(Properties attributes) Creates a ListItem object based on a list of properties.static ParagraphgetParagraph(Properties attributes) Creates a Paragraph object based on a list of properties.static PhrasegetPhrase(Properties attributes) Creates a Phrase object based on a list of properties.static SectiongetSection(Section parent, Properties attributes) Creates a Section object based on a list of properties.static TablegetTable(Properties attributes) Creates an Table object based on a list of properties.
-
Constructor Details
-
ElementFactory
public ElementFactory()
-
-
Method Details
-
getChunk
Creates a Chunk object based on a list of properties.- Parameters:
attributes-- Returns:
- a Chunk
-
getPhrase
Creates a Phrase object based on a list of properties.- Parameters:
attributes-- Returns:
- a Phrase
-
getAnchor
Creates an Anchor object based on a list of properties.- Parameters:
attributes-- Returns:
- an Anchor
-
getParagraph
Creates a Paragraph object based on a list of properties.- Parameters:
attributes-- Returns:
- a Paragraph
-
getListItem
Creates a ListItem object based on a list of properties.- Parameters:
attributes-- Returns:
- a ListItem
-
getList
Creates a List object based on a list of properties.- Parameters:
attributes-- Returns:
- the List
-
getCell
Creates a Cell object based on a list of properties.- Parameters:
attributes-- Returns:
- a Cell
-
getTable
Creates an Table object based on a list of properties.- Parameters:
attributes-- Returns:
- a Table
-
getChapter
Creates a ChapterAutoNumber object based on a list of properties.- Parameters:
attributes-- Returns:
- a Chapter
-
getSection
Creates a Section object based on a list of properties.- Parameters:
attributes-- Returns:
- a Section
-
getImage
public static Image getImage(Properties attributes) throws BadElementException, MalformedURLException, IOException Creates an Image object based on a list of properties.- Parameters:
attributes-- Returns:
- an Image
- Throws:
BadElementExceptionMalformedURLExceptionIOException
-
getAnnotation
Creates an Annotation object based on a list of properties.- Parameters:
attributes-- Returns:
- an Annotation
-