com.lowagie.text.factories

Class ElementFactory

public class ElementFactory extends Object

This class is able to create Element objects based on a list of properties.
Method Summary
static 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.
static voidsetRectangleProperties(Rectangle rect, Properties attributes)
Sets some Rectangle properties (for a Cell, Table,...).
static voidsetSectionParameters(Section section, Properties attributes)
Helper method to create a Chapter/Section object.

Method Detail

getAnchor

public static Anchor getAnchor(Properties attributes)
Creates an Anchor object based on a list of properties.

Parameters: attributes

Returns: an Anchor

getAnnotation

public static Annotation getAnnotation(Properties attributes)
Creates an Annotation object based on a list of properties.

Parameters: attributes

Returns: an Annotation

getCell

public static Cell getCell(Properties attributes)
Creates a Cell object based on a list of properties.

Parameters: attributes

Returns: a Cell

getChapter

public static ChapterAutoNumber getChapter(Properties attributes)
Creates a ChapterAutoNumber object based on a list of properties.

Parameters: attributes

Returns: a Chapter

getChunk

public static Chunk getChunk(Properties attributes)
Creates a Chunk object based on a list of properties.

Parameters: attributes

Returns: a Chunk

getImage

public static Image getImage(Properties attributes)
Creates an Image object based on a list of properties.

Parameters: attributes

Returns: an Image

getList

public static List getList(Properties attributes)
Creates a List object based on a list of properties.

Parameters: attributes

Returns: the List

getListItem

public static ListItem getListItem(Properties attributes)
Creates a ListItem object based on a list of properties.

Parameters: attributes

Returns: a ListItem

getParagraph

public static Paragraph getParagraph(Properties attributes)
Creates a Paragraph object based on a list of properties.

Parameters: attributes

Returns: a Paragraph

getPhrase

public static Phrase getPhrase(Properties attributes)
Creates a Phrase object based on a list of properties.

Parameters: attributes

Returns: a Phrase

getSection

public static Section getSection(Section parent, Properties attributes)
Creates a Section object based on a list of properties.

Parameters: attributes

Returns: a Section

getTable

public static Table getTable(Properties attributes)
Creates an Table object based on a list of properties.

Parameters: attributes

Returns: a Table

setRectangleProperties

private static void setRectangleProperties(Rectangle rect, Properties attributes)
Sets some Rectangle properties (for a Cell, Table,...).

setSectionParameters

private static void setSectionParameters(Section section, Properties attributes)
Helper method to create a Chapter/Section object.

Parameters: attributes