public class FlowWriter
extends java.lang.Object
Constructor and Description |
---|
FlowWriter(Block block)
Creates a new flow-writer.
|
FlowWriter(BlockContainer bc)
Creates a new flow-writer.
|
FlowWriter(Flow flow)
Creates a new flow-writer.
|
Modifier and Type | Method and Description |
---|---|
void |
endTable()
Ends a table.
|
CellStyle |
getCellStyle()
Gets the style of table cells.
|
TableCell |
getCurrentTableCell()
Gets the current table cell when writing in a table.
|
FlowStyle |
getFlowStyle()
Gets the style this FlowWriter uses to format paragraphs and text.
|
void |
newParagraph()
Starts a new paragraph.
|
void |
newParagraph(int spaceBefore)
Starts a new paragraph.
|
void |
newParagraph(int spaceBefore,
Values.Alignment alignment)
Starts a new paragraph.
|
void |
newParagraph(Measure spaceBefore)
Starts a new paragraph.
|
void |
newParagraph(Measure spaceBefore,
Measure spaceAfter)
Starts a new paragraph.
|
void |
newParagraph(Values.Alignment alignment)
Starts a new paragraph.
|
void |
nextTableCell()
Jumps into the next table cell of a table row.
|
void |
nextTableRow()
Jumps into the next table row
|
void |
pageBreak()
Starts a new page.
|
void |
setCellStyle(CellStyle style)
Sets the style of table cells.
|
void |
setFlowStyle(FlowStyle style)
Sets the style this FlowWriter uses to format paragraphs and text.
|
void |
startTable(Measure[] columnWidths)
Starts a table.
|
void |
startTable(Measure[] columnWidths,
java.lang.String[] header,
int headerBorderW)
Starts a table
|
void |
startTable(Measure[] columnWidths,
java.lang.String[] header,
int hdBorderWidth,
java.awt.Color hdBorderColor)
Starts a table.
|
void |
startTable(Measure[] columnWidths,
TableFooter footer)
Starts a table.
|
void |
startTable(Measure[] columnWidths,
TableHeader header)
Starts a table.
|
void |
startTable(Measure[] columnWidths,
TableHeader header,
TableFooter footer)
Starts a table.
|
void |
write(BlockElement element)
Writes an BlockGroupMember into Flow.
|
void |
write(InlineElement element)
Writes an InlineElement into current Paragraph (Block).
|
void |
write(java.lang.String text)
Writes some text.
|
void |
write(java.lang.String text,
FontSupport.Style fontStyle)
Writes some text with given font style.
|
void |
write(java.lang.String text,
FontSupport.Weight fontWeight)
Writes some text with given font weight.
|
void |
write(java.lang.String text,
int fontSize)
Writes some text with given font size.
|
void |
write(java.lang.String text,
int fontSize,
FontSupport.Style fontStyle)
Writes some text with given font style.
|
void |
write(java.lang.String text,
int fontSize,
FontSupport.Weight fontWeight)
Writes some text with given font weight.
|
void |
write(java.lang.String text,
int fontSize,
FontSupport.Weight fontWeight,
FontSupport.Style fontStyle)
Writes some text with given font style.
|
public FlowWriter(Flow flow)
flow
- Flow.public FlowWriter(Block block)
block
- Block.public FlowWriter(BlockContainer bc)
bc
- BlockContainer.public FlowStyle getFlowStyle()
public void setFlowStyle(FlowStyle style)
style
- New Style.public CellStyle getCellStyle()
public void setCellStyle(CellStyle style)
style
- Style of table cells.public void write(java.lang.String text)
text
- Text.public void write(java.lang.String text, int fontSize)
text
- Text.fontSize
- New font size. (applied to style)public void write(java.lang.String text, FontSupport.Weight fontWeight)
text
- Text.fontWeight
- New font weight. (applied to style)public void write(java.lang.String text, FontSupport.Style fontStyle)
text
- Text.fontStyle
- New font style. (applied to style)public void write(java.lang.String text, int fontSize, FontSupport.Weight fontWeight)
text
- Text.fontSize
- New font size. (applied to style)fontWeight
- New font weight. (applied to style)public void write(java.lang.String text, int fontSize, FontSupport.Style fontStyle)
text
- Text.fontSize
- New font size. (applied to style)fontStyle
- New font style. (applied to style)public void write(java.lang.String text, int fontSize, FontSupport.Weight fontWeight, FontSupport.Style fontStyle)
text
- Text.fontSize
- New font size. (applied to style)fontWeight
- New font weight. (applied to style)fontStyle
- New font style. (applied to style)public void write(InlineElement element)
element
- InlineElement.public void write(BlockElement element)
element
- BlockGroupMember.public void newParagraph()
public void newParagraph(Values.Alignment alignment)
alignment
- New alignment (applied to style).public void pageBreak()
public void newParagraph(int spaceBefore)
spaceBefore
- Space before new paragraph in points (applied to style).public void newParagraph(int spaceBefore, Values.Alignment alignment)
spaceBefore
- Space before new paragraph in points (applied to style).alignment
- Text alignment. (applied to style).public void newParagraph(Measure spaceBefore)
spaceBefore
- Space before new paragraph (applied to style).public void newParagraph(Measure spaceBefore, Measure spaceAfter)
spaceBefore
- Space before new paragraph (applied to style).spaceAfter
- Space after new paragraph (applied to style).public void startTable(Measure[] columnWidths, TableHeader header)
columnWidths
- Width of table columns.header
- Table header.public void startTable(Measure[] columnWidths, java.lang.String[] header, int headerBorderW)
columnWidths
- Width of table columnsheader
- Column headers.headerBorderW
- Width of header border in points.public void startTable(Measure[] columnWidths, java.lang.String[] header, int hdBorderWidth, java.awt.Color hdBorderColor)
columnWidths
- Width of table columnsheader
- Column headers.hdBorderWidth
- Width of headers border in points.hdBorderColor
- Color of headers border.public void startTable(Measure[] columnWidths, TableFooter footer)
columnWidths
- Width of table columns.footer
- Table footer.public void startTable(Measure[] columnWidths, TableHeader header, TableFooter footer)
columnWidths
- Width of table columns.header
- Table header.footer
- Table footer.public void startTable(Measure[] columnWidths)
columnWidths
- Width of table columnspublic void endTable()
public void nextTableCell()
public void nextTableRow()
public TableCell getCurrentTableCell()
© 2003-2011 by Sascha Schmidt (vision-cloud.de). All Rights Reserved.