Document Tree. A Flowable is a document element that is placed on a page. It is usually a part of a document tree. Flowables at one level in a document tree are rendered one below the other. Here is schematic representation of an example document tree: |- Section | |- Paragraph | \- Paragraph \- Section |- Paragraph |- List | | | | | | | | | | | |- ListItem | | | |- Paragraph (item label; a number or bullet symbol) \- StaticGroupedFlowables (item body) \- Paragraph \- ListItem \- Paragraph | | | | | \- StaticGroupedFlowables \- List |- ListItem | \- ... \- ... \- Paragraph This represents a document consisting of two sections. The first section contains two para- graphs. The second section contains a paragraph followed by a list and another paragraph. All of the elements in this tree are instances of Flowable subclasses. Section and List are subclasses of GroupedFlowables; they group a number of flowables. In the case of List, these are always of the ListItem type. Each list item contains an item number (ordered list) or a bullet symbol (unordered list) and an item body. For simple lists, the item body is typically a single Paragraph. The second list item contains a nested List. A Paragraph does not have any Flowable children. It is however the root node of a tree of inline elements. This is an example paragraph in which several text styles are combined: Paragraph |- SingleStyledText('Text with ') |- MixedStyledText(style='emphasis') | |- SingleStyledText('multiple ') | \- MixedStyledText(style='strong') | |- SingleStyledText('nested ') | \- SingleStyledText('styles', style='small caps') \- SingleStyledText('.') The visual representation of the words in this paragraph is determined by the applied style sheet. Read more about how this works in the next section. Besides SingleStyledText and MixedStyledText elements (subclasses of StyledText), paragraphs can also contain InlineFlowables. Currently, the only inline flowable is InlineImage. The common superclass for flowable and inline elements is Styled, which indicates that these elements can be styled using the style sheets.
Appears in 1 contract
Sources: User Manual
Document Tree. A Flowable is a document element that is placed on a page. It is usually a part of a document tree. Flowables at one level in a document tree are rendered one below the other. Here is schematic representation of an example document tree: |- Section | |- Paragraph | \- Paragraph \- Section |- Paragraph |- List | | | | | | | | | | | |- ListItem | | | |- Paragraph (item label; a number or bullet symbol) \- StaticGroupedFlowables (item body) \- Paragraph \- ListItem \- Paragraph | | | | | \- StaticGroupedFlowables \- List |- ListItem | \- ... \- ... \- Paragraph This represents a document consisting of two sections. The first first section contains two para- graphs. The second section contains a paragraph followed by a list and another paragraph. All of the elements in this tree are instances of Flowable subclasses. Section and List are subclasses of GroupedFlowables; they group a number of flowablesflowables. In the case of List, these are always of the ListItem type. Each list item contains an item number (ordered list) or a bullet symbol (unordered list) and an item body. For simple lists, the item body is typically a single Paragraph. The second list item contains a nested List. A Paragraph does not have any Flowable children. It is however the root node of a tree of inline elements. This is an example paragraph in which several text styles are combined: Paragraph |- SingleStyledText('Text with ') |- MixedStyledText(style='emphasis') | |- SingleStyledText('multiple ') | \- MixedStyledText(style='strong') | |- SingleStyledText('nested ') | \- SingleStyledText('styles', style='small caps') \- SingleStyledText('.') The visual representation of the words in this paragraph is determined by the applied style sheet. Read more about how this works in the next section. Besides SingleStyledText and MixedStyledText elements (subclasses of StyledText), paragraphs can also contain InlineFlowables. Currently, the only inline flowable flowable is InlineImage. The common superclass for flowable flowable and inline elements is Styled, which indicates that these elements can be styled using the style sheets.
Appears in 1 contract
Sources: User Manual
Document Tree. A Flowable is a document element that is placed on a page. It is usually a part of a document tree. Flowables at one level in a document tree are rendered one below the other. Here is schematic representation of an example document tree: |- Section | |- Paragraph | \- Paragraph \- Section |- Paragraph |- List | | | | | | | | | | | |- ListItem | | | |- Paragraph (item label; a number or bullet symbol) \- StaticGroupedFlowables (item body) \- Paragraph \- ListItem \- Paragraph | | | | | \- StaticGroupedFlowables \- List |- ListItem | \- ... \- ... \- Paragraph This represents a document consisting of two sections. The first section contains two para- graphs. The second section contains a paragraph followed by a list and another paragraph. All of the elements in this tree are instances of Flowable subclasses. Section and List are subclasses of GroupedFlowables; they group a number of flowables. In the case of List, these are always of the ListItem type. Each list item contains an item number (ordered list) or a bullet symbol (unordered list) and an item body. For simple lists, the item body is typically a single Paragraph. The second list item contains a nested List. A Paragraph does not have any Flowable children. It is however the root node of a tree of inline elements. This is an example paragraph in which several text styles are combined: Paragraph |- SingleStyledText('Text with ') |- MixedStyledText(style='emphasis') | |- SingleStyledText('multiple ') | \- MixedStyledText(style='strong') | |- SingleStyledText('nested ') | \- SingleStyledText('styles', style='small caps') \- SingleStyledText('.') The visual representation of the words in this paragraph is determined by the applied style sheet. Read more about how this works in the next section. Besides SingleStyledText and MixedStyledText elements (subclasses of StyledText), paragraphs can also contain InlineFlowables. Currently, the only inline flowable is InlineImage. The common superclass for flowable and inline elements is Styled, which indicates that these elements can be styled using the style sheets.
Appears in 1 contract
Sources: User Manual