Skip navigation links
A C D E F G H I L M N O P R S T V W 

A

AbstractText - Class in org.tmotte.pdfrpt.report.item
Acts as a base class for shared functionality in PText and PTextLines.
add(ReportItem) - Method in class org.tmotte.pdfrpt.report.PGroup
Adds item to this PGroup.
add(ReportItem...) - Method in class org.tmotte.pdfrpt.report.PGroup
A shortcut for adding multiple ReportItems; invokes add(ReportItem) for each member of items.
add(int, int, ReportItem) - Method in class org.tmotte.pdfrpt.report.PGroup
Adds item to this PGroup and invokes item.addLeft() and item.addTop() to change its relative position according to rules selected by horizontalPos and verticalPos.
addFooter(ReportItem) - Method in class org.tmotte.pdfrpt.report.Report
Adds footer to the bottom of the current page, setting footer's top offset so it fits flush with the bottom page margin, i.e.
addFooterAndPrint(ReportItem, SimplePDF) - Method in class org.tmotte.pdfrpt.report.Report
A shortcut to addFooter(footer).print(pdf).
addHeight(float) - Method in class org.tmotte.pdfrpt.report.item.PImage
A shortcut to setHeight(getHeight()+h)
addHeight(float) - Method in class org.tmotte.pdfrpt.report.ReportItem
A shortcut to setHeight(y+getTop()).
addHorizontal(ReportItem) - Method in class org.tmotte.pdfrpt.report.PGroup
Works the same as add(ReportItem), but positions item horizontally relative to the most recently added ReportItem.
addHorizontal(ReportItem...) - Method in class org.tmotte.pdfrpt.report.PGroup
A shortcut to add multiple ReportItems using addHorizontal(ReportItem).
addLeft(float) - Method in class org.tmotte.pdfrpt.report.ReportItem
A shortcut to setLeft(left+getLeft()).
addTop(float) - Method in class org.tmotte.pdfrpt.report.ReportItem
A shortcut to setTop(top+getTop()).
addVertical(ReportItem) - Method in class org.tmotte.pdfrpt.report.PGroup
Works the same as add(ReportItem), but positions item vertically relative to the most recently added ReportItem.
addVertical(ReportItem...) - Method in class org.tmotte.pdfrpt.report.PGroup
A shortcut to add multiple ReportItems using addVertical(ReportItem) .
addVertical(ReportItem, PageCount, ReportItem, ReportItem) - Method in class org.tmotte.pdfrpt.report.Report
An enhancement over addVerticalIfPageFits() that lumps a variety of page-management features into a single method: If item fits within the remaining space on the page (including the space needed for footer) it is added via addVertical(ReportItem); if not, the following takes place:
addVerticalCenter(ReportItem...) - Method in class org.tmotte.pdfrpt.report.PGroup
Works the same as addVertical(items), but also horizontally centers each item within this PGroup using item.setLeft().
addVerticalIfPageFits(ReportItem, float) - Method in class org.tmotte.pdfrpt.report.Report
Enhances PGroup.addVertical(ReportItem...) such that item is only added if it fits on the page vertically below the last ReportItem added, and with enough space left over for footerHeight.
addVerticalIfPageFits(ReportItem) - Method in class org.tmotte.pdfrpt.report.Report
A shortcut to addVerticalIfPageFits(item, 0)
addVerticalRight(ReportItem...) - Method in class org.tmotte.pdfrpt.report.PGroup
Works the same as addVertical(items), but additionally right-justifies each item to the right side of this PGroup using item.setLeft().
addWidth(float) - Method in class org.tmotte.pdfrpt.report.item.PImage
A shortcut to setWidth(getWidth()+h)
addWidth(float) - Method in class org.tmotte.pdfrpt.report.ReportItem
A shortcut to setWidth(x+getTop()).
adjustLineSpacing(float, float) - Method in class org.tmotte.pdfrpt.FontInfo
Controls the amount of blank space above and below rendered text.
adjustLineSpacingBottom(float) - Method in class org.tmotte.pdfrpt.FontInfo
Same as adjustLineSpacing(top, bottom) but only does the bottom.
adjustLineSpacingTop(float) - Method in class org.tmotte.pdfrpt.FontInfo
Same as adjustLineSpacing(top, bottom) but only does the top.
alignBaselineTo(FontInfo) - Method in class org.tmotte.pdfrpt.FontInfo
Aligns fonts to a common baseline.
allChars - Static variable in class org.tmotte.pdfrpt.FontInfo
Used for estimating line height.

C

center() - Method in class org.tmotte.pdfrpt.report.item.PText
Causes text to be horizontally centered when printed.
center() - Method in class org.tmotte.pdfrpt.report.item.PTextLines
Causes each line of text to be horizontally centered when printed.
close() - Method in class org.tmotte.pdfrpt.SimplePDF
Closes the internal iText Document object and the OutputStream.

D

draw(Image) - Method in class org.tmotte.pdfrpt.SimplePDF
Draws image at the current X,Y coordinate position, according the size determined by image.getScaledHeight() and image.getScaledWidth()
draw(String) - Method in class org.tmotte.pdfrpt.SimplePDF
Draws text to the right of the current X,Y coordinate position.
drawAndMoveX(String) - Method in class org.tmotte.pdfrpt.SimplePDF
Draws text to the right of the current X,Y coordinate position and moves the X coordinate to the end of the text; equivalent to draw(text).moveX(getWidth(text)).
drawCentered(String, float) - Method in class org.tmotte.pdfrpt.SimplePDF
Draws text centered on the current X,Y coordinate position.
drawLine(float, float) - Method in class org.tmotte.pdfrpt.SimplePDF
Draws a straight line from the current X,Y coordinates according to the distance specified by xDistance and yDistance, using the current line width and color.
drawRect(float, float) - Method in class org.tmotte.pdfrpt.SimplePDF
Draws a rectangle outline from the current X,Y coordinates according to the distance specified by width and height, using the current line width and color.
drawRectRounded(float, float, float, float, float, float) - Method in class org.tmotte.pdfrpt.SimplePDF
Generally the same as drawRect(), but with rounded corners.
drawToLeft(String) - Method in class org.tmotte.pdfrpt.SimplePDF
Draws text to the left of the current X,Y coordinate position, i.e.

E

enclose(float, float, float, float, ReportItem) - Method in class org.tmotte.pdfrpt.report.item.PRect
Encloses item within this PRect by creating a PGroup that contains both, and setting the width and height of this PRect to be just large enough to contain item's width/height plus the specified top/right/bottom/left padding values.
enclose(float, ReportItem) - Method in class org.tmotte.pdfrpt.report.item.PRect
A shortcut to enclose(padding, padding, padding, padding, item).
enclose(ReportItem) - Method in class org.tmotte.pdfrpt.report.item.PRect
A shortcut to enclose(0, 0, 0, 0, r).

F

fillRect(float, float) - Method in class org.tmotte.pdfrpt.SimplePDF
Fills in a rectangle from the current X,Y coordinates according to the distance specified by width and height, using the current line width.
fillRectRounded(float, float, float, float, float, float) - Method in class org.tmotte.pdfrpt.SimplePDF
The same as drawRectRounded(), but fills the rectangle with the current color.
FontInfo - Class in org.tmotte.pdfrpt
Contains custom font, font-size, color, and line-spacing information for printing PDF's.
FontInfo(BaseFont, float) - Constructor for class org.tmotte.pdfrpt.FontInfo
Constructs a FontInfo object with the specified BaseFont & and font size.
FontInfo() - Constructor for class org.tmotte.pdfrpt.FontInfo
Constructs a FontInfo object with the default font and size, i.e. BaseFont.createFont() and 12.
FontInfo(FontInfo, float) - Constructor for class org.tmotte.pdfrpt.FontInfo
A shortcut to new FontInfo(toCopy).setFontSize(fontSize).
FontInfo(String, InputStream, int) - Constructor for class org.tmotte.pdfrpt.FontInfo
A shortcut to new FontInfo(FontInfo.loadFont(name, str, contentSize), 12).
FontInfo(String, URL) - Constructor for class org.tmotte.pdfrpt.FontInfo
A shortcut to new FontInfo(FontInfo.loadFont(name, url), 12).
FontInfo(FontInfo) - Constructor for class org.tmotte.pdfrpt.FontInfo
Constructs a FontInfo object with properties copied from toCopy.
footerPrintAndClose(SimplePDF, ReportItem) - Method in class org.tmotte.pdfrpt.report.Report
Also somewhat deprecated.

G

getAdjustLineSpacingBottom() - Method in class org.tmotte.pdfrpt.FontInfo
Gets the lower (below the characters) line spacing adjustment.
getAdjustLineSpacingTop() - Method in class org.tmotte.pdfrpt.FontInfo
Gets the upper (above the characters) line spacing adjustment.
getBottom() - Method in class org.tmotte.pdfrpt.report.ReportItem
A shortcut to getTop()+getHeight()
getColor() - Method in class org.tmotte.pdfrpt.FontInfo
Obtains the font color, if there is one.
getColor() - Method in class org.tmotte.pdfrpt.report.item.PLine
Obtains the color setting.
getColor() - Method in class org.tmotte.pdfrpt.report.item.PRect
Obtains the color used to draw the rectangle.
getDocument() - Method in class org.tmotte.pdfrpt.SimplePDF
Obtains the internal iText Document object.
getFill() - Method in class org.tmotte.pdfrpt.report.item.PRect
Returns true if the rectangle is to be drawn in Fill mode.
getFit(String, float) - Method in class org.tmotte.pdfrpt.FontInfo
Divides str into a series of Strings, such that each will fit inside width at the current font and size.
getFit(float, String) - Method in class org.tmotte.pdfrpt.FontInfo
An alternate way to getFit(s, width).
getFont() - Method in class org.tmotte.pdfrpt.FontInfo
Gets the font.
getFontInfo() - Method in class org.tmotte.pdfrpt.report.item.PTextLines
Obtains the FontInfo instance passed to the constructor.
getFontInfo() - Method in class org.tmotte.pdfrpt.SimplePDF
Obtains the current font information.
getFontSize() - Method in class org.tmotte.pdfrpt.FontInfo
Gets the font size.
getHeight() - Method in class org.tmotte.pdfrpt.PageInfo
Gets the useable height, i.e.
getHeight() - Method in class org.tmotte.pdfrpt.report.ReportItem
Obtains the height.
getHeight() - Method in class org.tmotte.pdfrpt.SimplePDF
Gets the useable page height, i.e.
getImage() - Method in class org.tmotte.pdfrpt.report.item.PImage
Obtains the internal iText image object.
getInternalRenderer() - Method in class org.tmotte.pdfrpt.SimplePDF
Obtains the internal iText renderer object.
getITextX() - Method in class org.tmotte.pdfrpt.SimplePDF
This obtains the X coordinate as seen by iText.
getITextY() - Method in class org.tmotte.pdfrpt.SimplePDF
This obtains the Y coordinate as seen by iText.
getLeft() - Method in class org.tmotte.pdfrpt.report.ReportItem
Obtains this ReportItem's offset from its container's left.
getLines() - Method in class org.tmotte.pdfrpt.report.item.PTextLines
Obtains the internal representation of the lines of text to be printed.
getLineWidth() - Method in class org.tmotte.pdfrpt.report.item.PLine
Obtains the line width setting.
getLineWidth() - Method in class org.tmotte.pdfrpt.report.item.PRect
Gets the line width of the rectangle.
getLineWidth() - Method in class org.tmotte.pdfrpt.SimplePDF
 
getMarginBottom() - Method in class org.tmotte.pdfrpt.PageInfo
Obtains height of bottom margin.
getMarginLeft() - Method in class org.tmotte.pdfrpt.PageInfo
Obtains width of left margin.
getMarginRight() - Method in class org.tmotte.pdfrpt.PageInfo
Obtains width of right margin.
getMarginTop() - Method in class org.tmotte.pdfrpt.PageInfo
Obtains height of top margin.
getMaxAscent() - Method in class org.tmotte.pdfrpt.FontInfo
Gets the maximum ascent (the height above the baseline) for the current font/size.
getMaxDescent() - Method in class org.tmotte.pdfrpt.FontInfo
Gets the maximum descent (the height below the baseline) for the current font/size; note that this will be <= 0.
getOutline() - Method in class org.tmotte.pdfrpt.report.item.PRect
Returns true if the rectangle is to be drawn in Outline mode.
getPageSize() - Method in class org.tmotte.pdfrpt.PageInfo
Gets the internal iText Rectangle that represents the actual page dimensions; alternatively, getTotalWidth() and getTotalHeight() can be used.
getRight() - Method in class org.tmotte.pdfrpt.report.ReportItem
A shortcut to getLeft()+getWidth()
getTextLineHeight() - Method in class org.tmotte.pdfrpt.FontInfo
Obtains the total height that a line of text should use given the current font settings, including the amount added by adjustLineSpacing().
getTop() - Method in class org.tmotte.pdfrpt.report.ReportItem
Obtains this ReportItem's offset from its container's top.
getTotal() - Method in class org.tmotte.pdfrpt.report.PageCount
Gets the total number of pages.
getTotalHeight() - Method in class org.tmotte.pdfrpt.PageInfo
Gets the total height of the page, including margin space.
getTotalWidth() - Method in class org.tmotte.pdfrpt.PageInfo
Gets the total width of the page, including margin space.
getWidth(String) - Method in class org.tmotte.pdfrpt.FontInfo
Obtains the point width of text.
getWidth(char) - Method in class org.tmotte.pdfrpt.FontInfo
Same as getWidth(String) but gets the width of a single char.
getWidth() - Method in class org.tmotte.pdfrpt.PageInfo
Gets the useable width, i.e.
getWidth() - Method in class org.tmotte.pdfrpt.report.ReportItem
Obtains the width.
getWidth() - Method in class org.tmotte.pdfrpt.SimplePDF
Gets the useable page width, i.e.
getX() - Method in class org.tmotte.pdfrpt.SimplePDF
Obtains the X coordinate position, relative to the left margin.
getY() - Method in class org.tmotte.pdfrpt.SimplePDF
Obtains the Y coordinate position, relative to the top margin.

H

HCenter - Static variable in class org.tmotte.pdfrpt.report.PGroup
Use with add(horizontalPos, verticalPos, ReportItem).
HLeft - Static variable in class org.tmotte.pdfrpt.report.PGroup
Use with add(horizontalPos, verticalPos, ReportItem).
Horizontal - Static variable in class org.tmotte.pdfrpt.report.PGroup
Use with new PGroup(int, ReportItem...).
HRight - Static variable in class org.tmotte.pdfrpt.report.PGroup
Use with add(horizontalPos, verticalPos, ReportItem).

I

inc() - Method in class org.tmotte.pdfrpt.report.PageCount
Increments the internal page count, which starts at 1.
isStateSaved() - Method in class org.tmotte.pdfrpt.SimplePDF
Indicates whether the SimplePDF instance is currently in "saved state" mode, i.e.
ITest - Interface in org.tmotte.pdfrpt.test
 

L

LEGAL_LANDSCAPE - Static variable in class org.tmotte.pdfrpt.PageInfo
A shortcut to com.itextpdf.text.PageSize.LEGAL.rotate().
LEGAL_PORTRAIT - Static variable in class org.tmotte.pdfrpt.PageInfo
A shortcut to com.itextpdf.text.PageSize.LEGAL.
LETTER_LANDSCAPE - Static variable in class org.tmotte.pdfrpt.PageInfo
A shortcut to com.itextpdf.text.PageSize.LETTER.rotate().
LETTER_PORTRAIT - Static variable in class org.tmotte.pdfrpt.PageInfo
A shortcut to com.itextpdf.text.PageSize.LETTER.
lineFeed() - Method in class org.tmotte.pdfrpt.SimplePDF
Moves the Y coordinate downwards by the amount of getFontInfo().getTextLineHeight(); does not affect the X coordinate.
lineFeedWillExceed() - Method in class org.tmotte.pdfrpt.SimplePDF
Determines whether lineFeed() will push the Y coordinate down below the bottom margin.
loadFont(String, InputStream, int) - Static method in class org.tmotte.pdfrpt.FontInfo
Loads a font from an InputStream.
loadFont(String, URL) - Static method in class org.tmotte.pdfrpt.FontInfo
Similar to loadFont(String, InputStream, int), but obtains the InputStream and content size from url.
loadImage(InputStream) - Static method in class org.tmotte.pdfrpt.SimplePDF
Creates an iText Image from the data in inStream.
loadImage(URL) - Static method in class org.tmotte.pdfrpt.SimplePDF
Shortcut to loadImage(url.openStream());

M

main(String[]) - Static method in class org.tmotte.pdfrpt.test.performance.TestLoad
Command-line driver to allow whatever kind of load we like.
main(String[]) - Static method in class org.tmotte.pdfrpt.test.report.TestCentered
 
main(String[]) - Static method in class org.tmotte.pdfrpt.test.report.TestFont
 
main(String[]) - Static method in class org.tmotte.pdfrpt.test.report.TestFontSizes
 
main(String[]) - Static method in class org.tmotte.pdfrpt.test.report.TestMultipage
 
main(String[]) - Static method in class org.tmotte.pdfrpt.test.report.TestOffsets
 
main(String[]) - Static method in class org.tmotte.pdfrpt.test.report.TestPGroup
 
main(String[]) - Static method in class org.tmotte.pdfrpt.test.report.TestPImage
 
main(String[]) - Static method in class org.tmotte.pdfrpt.test.report.TestPLine
 
main(String[]) - Static method in class org.tmotte.pdfrpt.test.report.TestPRect
 
main(String[]) - Static method in class org.tmotte.pdfrpt.test.report.TestPText
 
main(String[]) - Static method in class org.tmotte.pdfrpt.test.report.TestPTextLines
 
main(String[]) - Static method in class org.tmotte.pdfrpt.test.report.TestPTextLines2
 
main(String[]) - Static method in class org.tmotte.pdfrpt.test.report.TestSplit
 
main(String[]) - Static method in class org.tmotte.pdfrpt.test.report.TestState
 
main(String[]) - Static method in class org.tmotte.pdfrpt.test.simplepdf.TestImage
 
main(String[]) - Static method in class org.tmotte.pdfrpt.test.simplepdf.TestRoundRect
 
main(String[]) - Static method in class org.tmotte.pdfrpt.test.Test
 
makeReport(SimplePDF, int) - Method in class org.tmotte.pdfrpt.test.performance.TestLoad
 
move(float, float) - Method in class org.tmotte.pdfrpt.SimplePDF
A shortcut to moveX(xDistance).moveY(yDistance).
moveX(float) - Method in class org.tmotte.pdfrpt.SimplePDF
Moves the internal X coordinate; positive values of distance will move to the right, negatives values to the left.
moveY(float) - Method in class org.tmotte.pdfrpt.SimplePDF
Moves the internal Y coordinate; positive values of distance will move down, negatives values move up.

N

newPage() - Method in class org.tmotte.pdfrpt.report.Report
Starts a new page in the PDF file, which will be created using SimplePDF.newPage()
newPage() - Method in class org.tmotte.pdfrpt.SimplePDF
Starts a new page in the document.

O

org.tmotte.pdfrpt - package org.tmotte.pdfrpt
Contains the core classes for PDF reporting.
org.tmotte.pdfrpt.report - package org.tmotte.pdfrpt.report
Improves on the SimplePDF class with object-oriented grouping of report elements, and relative positioning.
org.tmotte.pdfrpt.report.item - package org.tmotte.pdfrpt.report.item
Enhances the report package with classes for text, line art and image rendering.
org.tmotte.pdfrpt.test - package org.tmotte.pdfrpt.test
Contains a variety of unit tests, which are also useful as tutorial examples.
org.tmotte.pdfrpt.test.performance - package org.tmotte.pdfrpt.test.performance
 
org.tmotte.pdfrpt.test.report - package org.tmotte.pdfrpt.test.report
 
org.tmotte.pdfrpt.test.simplepdf - package org.tmotte.pdfrpt.test.simplepdf
 

P

PageCount - Class in org.tmotte.pdfrpt.report
Useful for page numbering, e.g.
PageCount() - Constructor for class org.tmotte.pdfrpt.report.PageCount
 
PageInfo - Class in org.tmotte.pdfrpt
Contains information about page size and margins, and is used by SimplePDF's constructor.
PageInfo(Rectangle, float, float, float, float) - Constructor for class org.tmotte.pdfrpt.PageInfo
Creates a new PageInfo with page sized according to pageSize and with the specified top/right/bottom/left margin values.
PageInfo(Rectangle, float) - Constructor for class org.tmotte.pdfrpt.PageInfo
A shortcut to PageInfo(pageSize, margin, margin, margin, margin)
PageInfo(Rectangle) - Constructor for class org.tmotte.pdfrpt.PageInfo
A shortcut to PageInfo(pageSize, 0, 0, 0, 0)
PageInfo(PageInfo) - Constructor for class org.tmotte.pdfrpt.PageInfo
Creates a new instance of PageInfo that has the same properties as other.
PageInfo() - Constructor for class org.tmotte.pdfrpt.PageInfo
A shortcut to PageInfo(LETTER_PORTRAIT, 0, 0, 0, 0)
PGroup - Class in org.tmotte.pdfrpt.report
Groups ReportItems together into a single ReportItem, and acts as a central component of reporting, especially as concerns relative positioning.
PGroup() - Constructor for class org.tmotte.pdfrpt.report.PGroup
 
PGroup(ReportItem...) - Constructor for class org.tmotte.pdfrpt.report.PGroup
Creates a new PGroup and adds reportItems to it.
PGroup(int, ReportItem...) - Constructor for class org.tmotte.pdfrpt.report.PGroup
Works the same as new(ReportItem...), but adds the ReportItems vertically or horizontally according to the value of hv.
PImage - Class in org.tmotte.pdfrpt.report.item
Implements support for images in Reports.
PImage(Image) - Constructor for class org.tmotte.pdfrpt.report.item.PImage
Sets the iText Image object to be printed, and sets the height/width of this PImage to Image.getScaledWidth() & Image.getScaledHeight()
PImage(InputStream) - Constructor for class org.tmotte.pdfrpt.report.item.PImage
A shortcut to new PImage(SimplePDF.loadImage(inStream)).
PImage(URL) - Constructor for class org.tmotte.pdfrpt.report.item.PImage
A shortcut to new PImage(SimplePDF.loadImage(url)).
PImage(PImage) - Constructor for class org.tmotte.pdfrpt.report.item.PImage
Creates a copy of other, including a copy of the image it contains.
PLine - Class in org.tmotte.pdfrpt.report.item
Represents a simple graphical line to be drawn in a Report.
PLine(float, float) - Constructor for class org.tmotte.pdfrpt.report.item.PLine
Creates a line to be starting from the x,y coordinate specified by the Top and Left properties and drawn to the x,y coordinate determined by xDist and yDist.
PRect - Class in org.tmotte.pdfrpt.report.item
Represents a graphical rectangle to be drawn in a Report.
PRect() - Constructor for class org.tmotte.pdfrpt.report.item.PRect
Creates a PRect with height and width equal to 0.
PRect(float, float) - Constructor for class org.tmotte.pdfrpt.report.item.PRect
Creates a PRect with dimensions of width and height.
print(SimplePDF) - Method in class org.tmotte.pdfrpt.report.item.PImage
Prints the image using pdf.draw(Image).
print(SimplePDF) - Method in class org.tmotte.pdfrpt.report.item.PLine
Draws the line using SimplePDF.drawLine().
print(SimplePDF) - Method in class org.tmotte.pdfrpt.report.item.PRect
Prints this PRect using SimplePDF's rectangle drawing methods as appropriate, depending on fill vs.
print(SimplePDF) - Method in class org.tmotte.pdfrpt.report.item.PSpacer
Does absolutely nothing.
print(SimplePDF) - Method in class org.tmotte.pdfrpt.report.item.PText
Prints this PText instance.
print(SimplePDF) - Method in class org.tmotte.pdfrpt.report.item.PTextLines
Similar to PText.print(pdf), but prints multiple lines.
print(SimplePDF) - Method in class org.tmotte.pdfrpt.report.PGroup
Prints all of the items in this PGroup using ReportItem.print(), in the order they were added to this PGroup.
print(SimplePDF) - Method in class org.tmotte.pdfrpt.report.ReportItem
This method must be implemented by subclasses so that they can print themselves.
printAndClose(SimplePDF) - Method in class org.tmotte.pdfrpt.report.Report
Somewhat deprecated.
PSpacer - Class in org.tmotte.pdfrpt.report.item
PSpacer is essentially an empty ReportItem that can be placed between other items and used to offset them via ReportItem's top/left/width/height properties.
PSpacer() - Constructor for class org.tmotte.pdfrpt.report.item.PSpacer
 
PText - Class in org.tmotte.pdfrpt.report.item
Allows for rendering of simple text data.
PText(FontInfo, float, String) - Constructor for class org.tmotte.pdfrpt.report.item.PText
Constructs a PText using the specified font, width and text; also sets the height as determined by fontInfo.getTextLineHeight().
PText(FontInfo, String) - Constructor for class org.tmotte.pdfrpt.report.item.PText
Constructs a PText with width & height equal to the width and height of text as determined by fontInfo.getWidth(text) and fontInfo.getTextLineHeight().
PText(float, FontInfo, String) - Constructor for class org.tmotte.pdfrpt.report.item.PText
Works the same as PText(fontInfo, width, text).
PText(SimplePDF, float, String) - Constructor for class org.tmotte.pdfrpt.report.item.PText
A shortcut to PText(pdf.getFontInfo(), width, text).
PText(SimplePDF, String) - Constructor for class org.tmotte.pdfrpt.report.item.PText
A shortcut to PText(pdf.getFontInfo(), text)
PTextLines - Class in org.tmotte.pdfrpt.report.item
Similar to PText, but allows for multi-line text.
PTextLines(FontInfo, float, String) - Constructor for class org.tmotte.pdfrpt.report.item.PTextLines
Constructs a PTextLines using the specified font, width and text, adding line breaks as necessary to make text fit within width.
PTextLines(FontInfo, String...) - Constructor for class org.tmotte.pdfrpt.report.item.PTextLines
Creates a new PTextLines with line breaks between each member of the text array (for convenience, this is a varargs paramter).
PTextLines(SimplePDF, float, String) - Constructor for class org.tmotte.pdfrpt.report.item.PTextLines
A shortcut to PTextLines(pdf.getFontInfo(), width, text).
PTextLines(SimplePDF, String...) - Constructor for class org.tmotte.pdfrpt.report.item.PTextLines
A shortcut to PTextLines(pdf.getFontInfo(), text).
PTextLines(FontInfo, List<String>) - Constructor for class org.tmotte.pdfrpt.report.item.PTextLines
Converts lines to a String[] array and invokes PTextLines(FontInfo, String...).
PTextLines(SimplePDF, List<String>) - Constructor for class org.tmotte.pdfrpt.report.item.PTextLines
A shortcut to PTextLines(pdf.getFontInfo(), lines)

R

REPLACE_CURR_PAGE - Static variable in class org.tmotte.pdfrpt.report.item.AbstractText
Embed this String in the text of a PText or PTextLines instance and it will be replaced with the current page number.
REPLACE_PAGE_COUNT - Static variable in class org.tmotte.pdfrpt.report.item.AbstractText
Embed this String in the text of a PText or PTextLines instance and it will be replaced with the total page count for the report.
Report - Class in org.tmotte.pdfrpt.report
The centerpiece of this package. ReportItems are added to a Report, and then the Report is printed.
Report(float, float) - Constructor for class org.tmotte.pdfrpt.report.Report
Creates a new Report that uses the specified width and height for its pages.
Report(PageInfo) - Constructor for class org.tmotte.pdfrpt.report.Report
Shortcut to Report(pageInfo.getWidth(), pageInfo.getHeight()); here, Report will respect the margins set on pageInfo and calculate positioning based on the space bounded by those margins, not the boundaries of the PDF page itself.
Report(SimplePDF) - Constructor for class org.tmotte.pdfrpt.report.Report
Shortcut to Report(pdf.getWidth(), pdf.getHeight()).
ReportItem - Class in org.tmotte.pdfrpt.report
The generic base class for report components.
ReportItem() - Constructor for class org.tmotte.pdfrpt.report.ReportItem
 
resize(float, float) - Method in class org.tmotte.pdfrpt.report.item.PImage
Resizes the image to fit within the desired width/height.
restoreState() - Method in class org.tmotte.pdfrpt.SimplePDF
Companion method to saveState(); returns font, color and line width settings to the state previously saved by saveState().
rightAlign() - Method in class org.tmotte.pdfrpt.report.item.PText
Causes text to be right-aligned when printed.
rightAlign() - Method in class org.tmotte.pdfrpt.report.item.PTextLines
Causes each line of text to be right-aligned when printed.
run(SimplePDF) - Method in class org.tmotte.pdfrpt.test.report.TestOffsets
 
run(SimplePDF) - Method in class org.tmotte.pdfrpt.test.report.TestPGroup
 
run(SimplePDF) - Method in class org.tmotte.pdfrpt.test.report.TestPLine
 
run(SimplePDF) - Method in class org.tmotte.pdfrpt.test.report.TestPRect
 

S

saveState() - Method in class org.tmotte.pdfrpt.SimplePDF
Saves all of the state concerning font, color, and line width of drawn lines; does not save margin settings or X-Y coordinate position.
setColor(int, int, int) - Method in class org.tmotte.pdfrpt.FontInfo
Sets the font color using RGB values.
setColor(Color) - Method in class org.tmotte.pdfrpt.FontInfo
Sets the font color using Java's standard Color object.
setColor(BaseColor) - Method in class org.tmotte.pdfrpt.FontInfo
Sets the font color using an iText BaseColor instance.
setColor(Color) - Method in class org.tmotte.pdfrpt.report.item.PLine
Sets the color using Java's standard Color object.
setColor(int, int, int) - Method in class org.tmotte.pdfrpt.report.item.PLine
Sets the color of the line using RGB values; each parameter should be in the range of 0-255.
setColor(BaseColor) - Method in class org.tmotte.pdfrpt.report.item.PLine
Sets the color of the line.
setColor(Color) - Method in class org.tmotte.pdfrpt.report.item.PRect
Sets the color using Java's standard Color object.
setColor(BaseColor) - Method in class org.tmotte.pdfrpt.report.item.PRect
Sets the color of the rectangle, both for fill and outline rectangles.
setColor(int, int, int) - Method in class org.tmotte.pdfrpt.report.item.PRect
Sets the color of the rectangle, using red/green/blue values.
setColor(BaseColor) - Method in class org.tmotte.pdfrpt.SimplePDF
Sets the "fill" and "stroke" colors, i.e.
setColor(int, int, int) - Method in class org.tmotte.pdfrpt.SimplePDF
A shortcut to setColor(new BaseColor(red, green, blue));
setColor(Color) - Method in class org.tmotte.pdfrpt.SimplePDF
Sets the color using Java's standard Color object.
setFill() - Method in class org.tmotte.pdfrpt.report.item.PRect
Causes the rectangle to be drawn filled instead of as an outline.
setFill(Color) - Method in class org.tmotte.pdfrpt.report.item.PRect
A shortcut to PRect.setFill().setColor(color), for convenience.
setFill(BaseColor) - Method in class org.tmotte.pdfrpt.report.item.PRect
A shortcut to PRect.setFill().setColor(color), for convenience.
setFill(int, int, int) - Method in class org.tmotte.pdfrpt.report.item.PRect
A shortcut to PRect.setFill().setColor(r, g, b), for convenience.
setFont(BaseFont) - Method in class org.tmotte.pdfrpt.FontInfo
Sets the font.
setFontInfo(FontInfo) - Method in class org.tmotte.pdfrpt.SimplePDF
Sets font information according to values set in fontInfo.
setFontSize(float) - Method in class org.tmotte.pdfrpt.FontInfo
Sets the font size.
setHeight(float) - Method in class org.tmotte.pdfrpt.report.item.PImage
Resizes the image to fit within the desired height; only has an effect if h is less than the current height.
setHeight(float) - Method in class org.tmotte.pdfrpt.report.ReportItem
Sets the height of the this ReportItem.
setLeft(float) - Method in class org.tmotte.pdfrpt.report.ReportItem
Sets the left of this ReportItem to x.
setLineWidth(float) - Method in class org.tmotte.pdfrpt.report.item.PLine
Sets the width of the line.
setLineWidth(float) - Method in class org.tmotte.pdfrpt.report.item.PRect
Sets the line width, for use when drawing in outline mode.
setLineWidth(float) - Method in class org.tmotte.pdfrpt.SimplePDF
Sets the line width used for drawing lines and rectangles.
setMargins(float, float, float, float) - Method in class org.tmotte.pdfrpt.PageInfo
Changes the page margins.
setMargins(float, float, float, float) - Method in class org.tmotte.pdfrpt.SimplePDF
Sets the margins on the page.
setOutline() - Method in class org.tmotte.pdfrpt.report.item.PRect
Causes the rectangle to be drawn as an outline, as opposed to a fill.
setPageCount(PageCount) - Method in class org.tmotte.pdfrpt.report.item.AbstractText
Sets the PageCount instance for this instance.
setPageCount(PageCount) - Method in class org.tmotte.pdfrpt.report.item.PText
Overrides AbstractText.setPageCount() for method-chaining convenience.
setPageCount(PageCount) - Method in class org.tmotte.pdfrpt.report.item.PTextLines
Overrides AbstractText.setPageCount() for method-chaining convenience.
setPageSize(Rectangle) - Method in class org.tmotte.pdfrpt.PageInfo
Changes the size of the page.
setPosition(float, float) - Method in class org.tmotte.pdfrpt.report.ReportItem
A shortcut to setLeft(x).setTop(y).
setRounded(float, float, float, float) - Method in class org.tmotte.pdfrpt.report.item.PRect
Allows for rounded corners on the rectangle.
setRounded(float) - Method in class org.tmotte.pdfrpt.report.item.PRect
A shortcut to setRounded(offset, offset, offset, offset).
setTop(float) - Method in class org.tmotte.pdfrpt.report.ReportItem
Sets the top of this ReportItem to x.
setWidth(float) - Method in class org.tmotte.pdfrpt.report.item.PImage
Resizes the image to fit within the desired width; only has an effect if w is less than the current width.
setWidth(float) - Method in class org.tmotte.pdfrpt.report.ReportItem
Sets the width of the this ReportItem.
setX(float) - Method in class org.tmotte.pdfrpt.SimplePDF
Sets the X coordinate relative to the left margin.
setXY(float, float) - Method in class org.tmotte.pdfrpt.SimplePDF
A shortcut to setX(x).setY(y).
setY(float) - Method in class org.tmotte.pdfrpt.SimplePDF
Sets the Y coordinate relative to the top margin.
SimplePDF - Class in org.tmotte.pdfrpt
A wrapper for the iText PDF library, for use by itself or with the org.tmotte.pdfrpt.report package (in either case with iText, of course).
SimplePDF(OutputStream, PageInfo) - Constructor for class org.tmotte.pdfrpt.SimplePDF
Starts a new PDF, to be written to outStream, and using the specified page size and margins.
SimplePDF(OutputStream, Rectangle) - Constructor for class org.tmotte.pdfrpt.SimplePDF
Shortcut to SimplePDF(outStream, new PageInfo(pageSize)).
SimplePDF(OutputStream) - Constructor for class org.tmotte.pdfrpt.SimplePDF
Shortcut to SimplePDF(outStream, new PageInfo()).
split(String, float) - Method in class org.tmotte.pdfrpt.FontInfo
Divides str into two Strings, one that fits inside of width, and the leftover text.
split(float, String) - Method in class org.tmotte.pdfrpt.FontInfo
An alternate to split(str, width).

T

test() - Method in interface org.tmotte.pdfrpt.test.ITest
 
test() - Method in class org.tmotte.pdfrpt.test.performance.TestLoad
Provides automated verification that this test still basically works.
test(int, int, boolean) - Method in class org.tmotte.pdfrpt.test.performance.TestLoad
 
test() - Method in class org.tmotte.pdfrpt.test.report.TestCentered
 
test() - Method in class org.tmotte.pdfrpt.test.report.TestFont
 
test() - Method in class org.tmotte.pdfrpt.test.report.TestFontSizes
 
test() - Method in class org.tmotte.pdfrpt.test.report.TestMultipage
 
test() - Method in class org.tmotte.pdfrpt.test.report.TestOffsets
 
test() - Method in class org.tmotte.pdfrpt.test.report.TestPGroup
 
test() - Method in class org.tmotte.pdfrpt.test.report.TestPImage
 
test() - Method in class org.tmotte.pdfrpt.test.report.TestPLine
 
test() - Method in class org.tmotte.pdfrpt.test.report.TestPRect
 
test() - Method in class org.tmotte.pdfrpt.test.report.TestPText
 
test() - Method in class org.tmotte.pdfrpt.test.report.TestPTextLines
 
test() - Method in class org.tmotte.pdfrpt.test.report.TestPTextLines2
 
test() - Method in class org.tmotte.pdfrpt.test.report.TestSplit
 
test() - Method in class org.tmotte.pdfrpt.test.report.TestState
 
test() - Method in class org.tmotte.pdfrpt.test.simplepdf.TestImage
 
test() - Method in class org.tmotte.pdfrpt.test.simplepdf.TestRoundRect
 
Test - Class in org.tmotte.pdfrpt.test
Graphical test automation is hard.
Test() - Constructor for class org.tmotte.pdfrpt.test.Test
 
TestCentered - Class in org.tmotte.pdfrpt.test.report
This combines centered text with uncentered but well-arranged shapes
TestCentered() - Constructor for class org.tmotte.pdfrpt.test.report.TestCentered
 
TestFont - Class in org.tmotte.pdfrpt.test.report
 
TestFont() - Constructor for class org.tmotte.pdfrpt.test.report.TestFont
 
TestFontSizes - Class in org.tmotte.pdfrpt.test.report
 
TestFontSizes() - Constructor for class org.tmotte.pdfrpt.test.report.TestFontSizes
 
TestImage - Class in org.tmotte.pdfrpt.test.simplepdf
Tests image rendering.
TestImage() - Constructor for class org.tmotte.pdfrpt.test.simplepdf.TestImage
 
TestLoad - Class in org.tmotte.pdfrpt.test.performance
Provides a load test
TestLoad() - Constructor for class org.tmotte.pdfrpt.test.performance.TestLoad
 
TestMultipage - Class in org.tmotte.pdfrpt.test.report
 
TestMultipage() - Constructor for class org.tmotte.pdfrpt.test.report.TestMultipage
 
TestOffsets - Class in org.tmotte.pdfrpt.test.report
 
TestOffsets() - Constructor for class org.tmotte.pdfrpt.test.report.TestOffsets
 
TestPGroup - Class in org.tmotte.pdfrpt.test.report
 
TestPGroup() - Constructor for class org.tmotte.pdfrpt.test.report.TestPGroup
 
TestPImage - Class in org.tmotte.pdfrpt.test.report
Tests image rendering.
TestPImage() - Constructor for class org.tmotte.pdfrpt.test.report.TestPImage
 
TestPLine - Class in org.tmotte.pdfrpt.test.report
 
TestPLine() - Constructor for class org.tmotte.pdfrpt.test.report.TestPLine
 
TestPRect - Class in org.tmotte.pdfrpt.test.report
 
TestPRect() - Constructor for class org.tmotte.pdfrpt.test.report.TestPRect
 
TestPText - Class in org.tmotte.pdfrpt.test.report
 
TestPText() - Constructor for class org.tmotte.pdfrpt.test.report.TestPText
 
TestPTextLines - Class in org.tmotte.pdfrpt.test.report
 
TestPTextLines() - Constructor for class org.tmotte.pdfrpt.test.report.TestPTextLines
 
TestPTextLines2 - Class in org.tmotte.pdfrpt.test.report
 
TestPTextLines2() - Constructor for class org.tmotte.pdfrpt.test.report.TestPTextLines2
 
TestRoundRect - Class in org.tmotte.pdfrpt.test.simplepdf
 
TestRoundRect() - Constructor for class org.tmotte.pdfrpt.test.simplepdf.TestRoundRect
 
TestSplit - Class in org.tmotte.pdfrpt.test.report
 
TestSplit() - Constructor for class org.tmotte.pdfrpt.test.report.TestSplit
 
TestState - Class in org.tmotte.pdfrpt.test.report
 
TestState() - Constructor for class org.tmotte.pdfrpt.test.report.TestState
 
toString() - Method in class org.tmotte.pdfrpt.report.item.PText
Prints the text contents of this instance, for debugging purposes.
toString() - Method in class org.tmotte.pdfrpt.report.item.PTextLines
Prints the text contents of this instance, for debugging purposes.

V

VBottom - Static variable in class org.tmotte.pdfrpt.report.PGroup
Use with add(horizontalPos, verticalPos, ReportItem).
VCenter - Static variable in class org.tmotte.pdfrpt.report.PGroup
Use with add(horizontalPos, verticalPos, ReportItem).
Vertical - Static variable in class org.tmotte.pdfrpt.report.PGroup
Use with new PGroup(int, ReportItem...).
VTop - Static variable in class org.tmotte.pdfrpt.report.PGroup
Use with add(horizontalPos, verticalPos, ReportItem).

W

willMovePastBottom(float) - Method in class org.tmotte.pdfrpt.SimplePDF
Determines whether the intended vertical position change will move past the bottom margin; useful when deciding whether to start a new page.
A C D E F G H I L M N O P R S T V W 
Skip navigation links