Package com.reportmill.base
Class RMDocument
- java.lang.Object
- 
- com.reportmill.base.RMObject
- 
- com.reportmill.shape.RMShape
- 
- com.reportmill.base.RMDocument
 
 
 
- 
- All Implemented Interfaces:
- RMArchiver.Archiving,- java.lang.Cloneable
 - Direct Known Subclasses:
- RBDocument
 
 public class RMDocument extends RMShape The RMDocument class represents a ReportMill document and is also an RMShape subclass, so it can be a real part of the document/shape hierarchy. RMDocuments are also what ReportMill refers to as templates, and is commonly used like this:RMDocument template = RMDocument.getDoc(aSource); // Load from path String, File, byte array, etc. RMDocument report = template.generateReport(aDataset); // Any Java dataset: EJBs, custom classes, collctns, etc. report.writePDF("MyReport.pdf");On rare occasions, you may also want to create a document dynamically. Here's an example: RMDocument doc = new RMDocument(612, 792); // Standard US Letter size (8.5" x 11"), in points RMTable table = new RMTable(); // Create new table ... doc.getPage(0).addChild(table); // ... and add to first page table.setBounds(36, 36, 540, 680); // Position and size table table.getRow("Objects Details").getColumn(0).setText("Title: @getTitle@"); // Configure first text
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static interfaceRMDocument.DocListenerAn interface to define objects that want to get document notifications.
 - 
Field SummaryFields Modifier and Type Field Description static java.util.Locale_localestatic bytePAGE_LAYOUT_CONTINUOUSstatic bytePAGE_LAYOUT_CONTINUOUS_DOUBLEstatic bytePAGE_LAYOUT_DOUBLEstatic bytePAGE_LAYOUT_FACINGstatic bytePAGE_LAYOUT_QUADRUPLEstatic bytePAGE_LAYOUT_SINGLEstatic java.lang.String[]SUPPORTED_UNITSstatic byteUNIT_CMstatic byteUNIT_INCHESstatic byteUNIT_MMstatic byteUNIT_PICAstatic byteUNIT_POINTS- 
Fields inherited from class com.reportmill.shape.RMShapeWRAP_TYPE_BOTH, WRAP_TYPE_NONE
 
- 
 - 
Constructor SummaryConstructors Constructor Description RMDocument()Creates a plain empty document.RMDocument(float aWidth, float aHeight)Creates a document with the given width and height (in printer points).RMDocument(java.lang.Object aSource)Creates a new document from the given source (throws error if source was invalid).
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanacceptsChildren()Editor method indicates that document accepts children (should probably be false).voidaddPage(RMPage aPage)Adds a given page to this document (at end).voidaddPage(RMPage aPage, int anIndex)Adds a given page to this document (at the given index).voidaddPageReferenceShapes(RMDocument aDoc)Add the page reference shapes from given document to this document.voidaddPages(RMDocument aDoc)Add the pages in the given document to this document (at end) and clears the pages list in the given document.voidaddPages(java.util.List aList)Add the given list of pages to this document (at end).voidboundsChanged(RMShape aShape)Notifies this shape that a given shape's bounds have changed (presumably a descendant).booleanchildrenSuperSelectImmediately()Editor method indicates that pages super select immediately.java.lang.Objectclone()Copies basic document attributes (shallow copy only - no children or pages).RMShapecloneDeep()Copies the complete document, including document pages and all their children.voidcopy(java.lang.Object anObj)Copies the attributes of the given object.booleanequals(java.lang.Object anObj)Standard equals implementation.java.lang.ObjectfromXML(RXArchiver anArchiver, RXElement anElement)XML unarchival.RMDocumentgenerateReport(java.lang.Object objects)Returns a generated report from this template evaluated against the given object.RMDocumentgenerateReport(java.lang.Object objects, boolean paginate)Returns a generated report from this template evaluated against the given object with an option to paginate.RMDocumentgenerateReport(java.lang.Object objects, java.lang.Object userInfo)Returns a generated report from this template evaluated against the given object and userInfo.RMDocumentgenerateReport(java.lang.Object objects, java.lang.Object userInfo, boolean paginate)Returns generated report from this template evaluated against given object/userInfo (with option to paginate).RMAnimatorgetAnimator(int anIndex)Returns the animator for a specific page.RMAnimatorgetAnimatorLast()Returns the animator for the last page.byte[]getBytes()Returns the document as an XML byte array.byte[]getBytesCSV()Returns the document as a byte array of a CSV file.byte[]getBytesDelimitedAscii(java.lang.String fieldDelimiter, java.lang.String recordDelimiter, boolean quoteFields)Returns the document as a byte array of a delimited ASCII file (using given field, record separator strings).byte[]getBytesFlash()Returns the document as a byte array of a Flash file.byte[]getBytesHTML()Returns the document as a byte array of an HTML file.byte[]getBytesJPEG()Returns the document as byte array of a JPEG file.byte[]getBytesPDF()Returns the document as a byte array of a PDF file.byte[]getBytesPNG()Returns the document as byte array of PNG file.booleangetCalibrateColors()Returns whether the document should calibrate colors in generated file formats like PDF.booleangetCompress()Returns whether the document should compress images in generated file formats like PDF.RMDataSourcegetDataSource()Returns the RMDataSource associated with this document.RMSchemagetDataSourceSchema()Returns the schema for the RMDataSource associated with this document (convenience).static RMDocumentgetDoc(java.lang.Object aSource)Creates a new document from aSource (returns null if source is invalid).static RMDocumentgetDocForPDF(java.lang.Object aSource)Creates a new document from a PDF source.RMDocument.DocListenergetDocListener()Returns the DocListener associated with this document.RMDocumentgetDocument()Returns the document itself (over-ridden from RMShape).java.lang.StringgetFilename()Returns the filename associated with this document, if available.floatgetGridSpacing()Returns the grid spacing for the document's grid.booleangetLoops()Returns whether the last animator loops.java.util.MapgetMapHTML(java.lang.String anImageRoot)Returns the document as a Map of an HTML file and image resources.floatgetMarginBottom()Returns the margin rects bottom value.floatgetMarginLeft()Returns the margin rects left value.RMRectgetMarginRect()Returns the margin rect for this document.floatgetMarginRight()Returns the margin rects right value.floatgetMarginTop()Returns the margin rects top value.floatgetMaxTime()Returns the total time needed to animate this document (total of all page animators).java.lang.StringgetNullString()Returns the string used to replace any occurrances of null values in a generated report.RMPagegetPage(int index)Returns the page at the given index.intgetPageCount()Returns the number of pages in this document.RMPagegetPageLast()Returns the last page (convenience).bytegetPageLayout()Returns the page layout for the document.java.util.ListgetPages()Returns the list of RMPages associated with this document.RMSizegetPageSize()Returns the size of a document page.java.lang.BooleangetPaginate()Returns whether the document should paginate generated reports by default.floatgetPointsFromUnits(float aValue)Converts given value from document units to printer points (1/72 of an inch).java.lang.StringgetPublishUrl()Returns the URL this document should be uploaded to.RMPagegetSelectedPage()Returns the currently selected page of this document.intgetSelectedPageIndex()Returns the current page index of this document.booleangetShowGrid()Returns whether the document should show an alignment grid.booleangetShowMargin()Returns whether the document should show a margin rect.booleangetSnapGrid()Returns whether the document should snap to an alignment grid.booleangetSnapMargin()Returns whether the document should snap to a margin rect.java.lang.StringgetStringCSV()Returns the document as a string of a CSV file.java.lang.StringgetStringDelimitedText(java.lang.String fieldDelimiter, java.lang.String recordDelimiter, boolean quoteFields)Returns the document as a string of a delimited text file.RMUndoergetUndoer()Returns the RMUndoer for this document.intgetUnit()Returns the units used to express sizes in the current document (POINTS, INCHES, CENTIMETERS).floatgetUnitsFromPoints(float aValue)Converts given value to document units from printer points (1/72 of an inch).floatgetUnitsMultiplier()Returns the multiplier used to convert printer points to document units.java.lang.StringgetUnitString()Returns the units used to express sizes in the current document as one of the strings: point, inch or cm.floatgetVersion()Returns the version this document was loaded as.java.lang.ObjectinitWithArchiver(RMArchiver anArchiver)Legacy unarchival.byte[]pdfBytes()Obsolete method for old pdfBytes() method.voidrebuild()Rebuilds the document according to the selected page and page layout.voidremovePage(int anIndex)Removes the page at the given index from this document.voidresolvePageReferences()Performs page substitions on any text fields that were identified as containing @Page@ keys.RMShaperpgClone(ReportMill aReportMill)Report Generation method.voidsetCalibrateColors(boolean aValue)Sets whether the document should calibrate colors in generated file formats like PDF.voidsetCompress(boolean aValue)Sets whether the document should compress images in generated file formats like PDF.voidsetDataSource(RMDataSource aDataSource)Sets the RMDataSource associated with this document.voidsetDocListener(RMDocument.DocListener aListener)Sets the DocListener associated with this document.voidsetFilename(java.lang.String aPath)Sets the filename associated with this document.voidsetGridSpacing(float aValue)Sets the grid spacing for the document's grid.voidsetMarginRect(RMRect aRect)Sets the margin rect for this document.voidsetMargins(float left, float right, float top, float bottom)Sets the margin rect for this document.voidsetNeedsRepaint(RMShape aShape)This is a notification call for impending visual shape attribute changes.voidsetNullString(java.lang.String aValue)Sets the string used to replace any occurrances of null values in a generated report.voidsetPageLayout(byte aValue)Sets the page layout for the document.voidsetPages(java.util.List aList)Sets the list of RMPages associated with this document.voidsetPageSize(float aWidth, float aHeight)Sets the size of the document (and all of its pages).voidsetPaginate(java.lang.Boolean aValue)Sets whether the document should paginate generated reports by default.voidsetPublishUrl(java.lang.String aValue)Sets the URL this document should be uploaded to.voidsetSelectedPage(RMPage aPage)Selects the given page.voidsetSelectedPageIndex(int anIndex)Selects the currently selected page by index.voidsetShowGrid(boolean aValue)Sets whether the document should show an alignment grid.voidsetShowMargin(boolean aValue)Sets whether the document should show a margin rect.voidsetSnapGrid(boolean aValue)Sets whether the document should snap to an alignment grid.voidsetSnapMargin(boolean aValue)Sets whether the document should snap to a margin rect.voidsetUndoer(RMUndoer anUndoer)Sets the RMUndoer for this document.voidsetUnit(byte aValue)Sets the units used to express sizes in the current document (POINTS, INCHES, CENTIMETERS).voidsetUnitString(java.lang.String aValue)Sets the units used to express sizes in the current document with one of the strings: point, inch or cm.booleansuperSelectable()Editor method indicates that document is super selectable.RXElementtoXML(RXArchiver anArchiver)XML archival.RMObjectundoClone()Returns a copy of the document for undo (page list is copied shallow).voidundoerAddDirtyObject(RMObject anObj)Overrides RMShape implementation to actually add dirty object to notify doc listner and actually add to undoer.voidwillChange(RMShape aShape)This is a notification call-back for impeding shape attribute changes.voidwrite(java.lang.String aPath)Writes the document out to the given path String (it extracts type from path extension).voidwriteCSV(java.lang.String fname)Writes the document to the given path String as a CSV file.voidwriteDelimitedAscii(java.lang.String fname, java.lang.String fieldDelimiter, java.lang.String recordDelimiter, boolean quoteFields)Writes the document to the given path String as a delimited ASCII file.voidwriteFlash(java.lang.String fname)Writes the document to the given path String as Flash.voidwriteFlashHTML(java.lang.String fname)Writes the document to the given path String as Flash/HTML.java.util.MapwriteHTML(java.lang.String fname)Writes the document to the given path String as HTML.java.util.MapwriteHTML(java.lang.String fname, java.lang.String anImageRoot)Writes the document to the given path String as HTML (referenced images are written at the given relative path).voidwriteJPG(java.lang.String fname)Writes the document to the given path String as a JPEG file.voidwritePDF(java.lang.String fname)Writes the document to the given path String as PDF.- 
Methods inherited from class com.reportmill.shape.RMShapeacceptsDragKeys, acceptsFormat, acceptsMouse, addChild, addChild, addChildBelowLastChild, bounds, boundsChanged, bringShapesToFront, canBeUngrouped, contains, convertedPointFromShape, convertedPointToShape, convertedRectFromShape, convertedRectToShape, convertedSizeFromShape, convertedSizeToShape, convertedVectorFromShape, convertedVectorToShape, convertFromShape, convertPathFromShape, convertPathToShape, convertPointFromShape, convertPointToShape, convertRectFromShape, convertRectToShape, convertSizeFromShape, convertSizeToShape, convertToShape, convertVectorFromShape, convertVectorToShape, copyShape, delete, didChange, divideShapeFromEdge, divideShapeFromTop, dragExit, dragKeyAtPoint, dropKeyAtPoint, fromXMLDeep, get, getActionScript, getAnim, getAnim, getAnimator, getAnimator, getAutosizeHeight, getAutosizing, getBounds, getBoundsInside, getBoundsMarked, getBoundsOfChildren, getBoundsOfChildren, getBoundsSuperSelected, getCausesWrap, getCausesWrapType, getChild, getChildAnimator, getChildAnimator, getChildContaining, getChildCount, getChildLast, getChildren, getChildrenIntersecting, getChildrenWhoCauseWrap, getChildrenWhoDraw, getChildrenWhoHitTest, getChildSortedByX, getChildWithClass, getChildWithName, getColor, getCommonAncestor, getFill, getFill, getFill, getFillCount, getFills, getFont, getFormat, getFrame, getFrame, getFrameMaxX, getFrameMaxY, getFrameX, getFrameXY, getFrameY, getGroupShape, getHeight, getHeightToFit, getImageFill, getLineWidth, getListKey, getListKeyDeep, getListKeyShape, getMaxX, getMaxY, getName, getOpacity, getOpacityDeep, getOutline, getPageShape, getParent, getParentCount, getParents, getPath, getPathInBounds, getPropertyKey, getPropertyKeyCount, getPropertyKeyName, getRoll, getRootShape, getScaleX, getScaleY, getShapesToAncestor, getShapesToDescendant, getShapesToShape, getSize, getSizeP, getSkewX, getSkewY, getStroke, getStrokeColor, getTextColor, getToolClassName, getTransform, getTransformFromShape, getTransformInverse, getTransformToShape, getUrl, getWidth, getWidthToFit, getX, getXY, getXYP, getY, groupShapes, hasPageBreaks, height, indexOf, indexOf, intersects, isAncestor, isDescendant, isLocked, isRoot, isUnderlined, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, notRSS, offsetChildrenXY, offsetXY, page, pageBreakMax, pageBreakPageMax, pageMax, put, putPropertyKey, reclaimChildren, removeChild, removeChild, removeChildren, removeChildren, removeFromParent, resolvePageReferences, rpgCloneBase, rpgCloneChildren, rpgCloneConclude, rpgCloneNotification, rpgClonePrepare, rpgClonePreprocess, rpgCloneUrl, sendShapesToBack, setActionScript, setAnim, setAutosizeHeight, setAutosizing, setBounds, setBounds, setCausesWrapType, setChildren, setColor, setFill, setFont, setFormat, setFrame, setFrame, setFrameSize, setFrameX, setFrameXY, setFrameXY, setFrameY, setHeight, setHeightDeep, setHeightDeep, setHeightToFit, setLineWidth, setListKey, setLocked, setName, setNeedsRepaint, setOpacity, setOutline, setParent, setRoll, setScaleX, setScaleXY, setScaleY, setSize, setSize, setSizeDeep, setSizeP, setSizeToFit, setSizeToFit, setSkewX, setSkewXY, setSkewY, setStroke, setStrokeColor, setTextColor, setTime, setUnderlined, setUrl, setWidth, setWidthDeep, setWidthDeep, setWidthToFit, setX, setXY, setXY, setXYP, setY, sizesToFitChildren, toString, undoCopy, undoEquals, undoerDisable, undoerEnable, undoerSetUndoTitle, width, willChange, x, y
 - 
Methods inherited from class com.reportmill.base.RMObjectdidUndo, getAnimAttribute, getClassNameShort
 
- 
 
- 
- 
- 
Field Detail- 
PAGE_LAYOUT_SINGLEpublic static final byte PAGE_LAYOUT_SINGLE - See Also:
- Constant Field Values
 
 - 
PAGE_LAYOUT_DOUBLEpublic static final byte PAGE_LAYOUT_DOUBLE - See Also:
- Constant Field Values
 
 - 
PAGE_LAYOUT_QUADRUPLEpublic static final byte PAGE_LAYOUT_QUADRUPLE - See Also:
- Constant Field Values
 
 - 
PAGE_LAYOUT_FACINGpublic static final byte PAGE_LAYOUT_FACING - See Also:
- Constant Field Values
 
 - 
PAGE_LAYOUT_CONTINUOUSpublic static final byte PAGE_LAYOUT_CONTINUOUS - See Also:
- Constant Field Values
 
 - 
PAGE_LAYOUT_CONTINUOUS_DOUBLEpublic static final byte PAGE_LAYOUT_CONTINUOUS_DOUBLE - See Also:
- Constant Field Values
 
 - 
UNIT_INCHESpublic static final byte UNIT_INCHES - See Also:
- Constant Field Values
 
 - 
UNIT_POINTSpublic static final byte UNIT_POINTS - See Also:
- Constant Field Values
 
 - 
UNIT_CMpublic static final byte UNIT_CM - See Also:
- Constant Field Values
 
 - 
UNIT_MMpublic static final byte UNIT_MM - See Also:
- Constant Field Values
 
 - 
UNIT_PICApublic static final byte UNIT_PICA - See Also:
- Constant Field Values
 
 - 
SUPPORTED_UNITSpublic static final java.lang.String[] SUPPORTED_UNITS 
 - 
_localepublic static java.util.Locale _locale 
 
- 
 - 
Constructor Detail- 
RMDocumentpublic RMDocument() Creates a plain empty document. It's really only used by the archiver.
 - 
RMDocumentpublic RMDocument(float aWidth, float aHeight)Creates a document with the given width and height (in printer points).
 - 
RMDocumentpublic RMDocument(java.lang.Object aSource) Creates a new document from the given source (throws error if source was invalid).
 
- 
 - 
Method Detail- 
getDocpublic static RMDocument getDoc(java.lang.Object aSource) Creates a new document from aSource (returns null if source is invalid).
 - 
getDocForPDFpublic static RMDocument getDocForPDF(java.lang.Object aSource) Creates a new document from a PDF source.
 - 
getFilenamepublic java.lang.String getFilename() Returns the filename associated with this document, if available.
 - 
setFilenamepublic void setFilename(java.lang.String aPath) Sets the filename associated with this document.
 - 
getVersionpublic float getVersion() Returns the version this document was loaded as.
 - 
getPageCountpublic int getPageCount() Returns the number of pages in this document.- Overrides:
- getPageCountin class- RMShape
 
 - 
getPagepublic RMPage getPage(int index) Returns the page at the given index.
 - 
getPageLastpublic RMPage getPageLast() Returns the last page (convenience).
 - 
getPagespublic java.util.List getPages() Returns the list of RMPages associated with this document.
 - 
setPagespublic void setPages(java.util.List aList) Sets the list of RMPages associated with this document.
 - 
addPagepublic void addPage(RMPage aPage) Adds a given page to this document (at end).
 - 
addPagepublic void addPage(RMPage aPage, int anIndex) Adds a given page to this document (at the given index).
 - 
removePagepublic void removePage(int anIndex) Removes the page at the given index from this document.
 - 
addPagespublic void addPages(java.util.List aList) Add the given list of pages to this document (at end).
 - 
addPagespublic void addPages(RMDocument aDoc) Add the pages in the given document to this document (at end) and clears the pages list in the given document.
 - 
addPageReferenceShapespublic void addPageReferenceShapes(RMDocument aDoc) Add the page reference shapes from given document to this document.
 - 
getSelectedPageIndexpublic int getSelectedPageIndex() Returns the current page index of this document.
 - 
setSelectedPageIndexpublic void setSelectedPageIndex(int anIndex) Selects the currently selected page by index.
 - 
getSelectedPagepublic RMPage getSelectedPage() Returns the currently selected page of this document.
 - 
setSelectedPagepublic void setSelectedPage(RMPage aPage) Selects the given page.
 - 
getPageLayoutpublic byte getPageLayout() Returns the page layout for the document.
 - 
setPageLayoutpublic void setPageLayout(byte aValue) Sets the page layout for the document.
 - 
getDataSourcepublic RMDataSource getDataSource() Returns the RMDataSource associated with this document.
 - 
setDataSourcepublic void setDataSource(RMDataSource aDataSource) Sets the RMDataSource associated with this document.
 - 
getDataSourceSchemapublic RMSchema getDataSourceSchema() Returns the schema for the RMDataSource associated with this document (convenience).
 - 
getUnitpublic int getUnit() Returns the units used to express sizes in the current document (POINTS, INCHES, CENTIMETERS).
 - 
setUnitpublic void setUnit(byte aValue) Sets the units used to express sizes in the current document (POINTS, INCHES, CENTIMETERS).
 - 
getUnitStringpublic java.lang.String getUnitString() Returns the units used to express sizes in the current document as one of the strings: point, inch or cm.
 - 
setUnitStringpublic void setUnitString(java.lang.String aValue) Sets the units used to express sizes in the current document with one of the strings: point, inch or cm.
 - 
getPointsFromUnitspublic float getPointsFromUnits(float aValue) Converts given value from document units to printer points (1/72 of an inch).
 - 
getUnitsFromPointspublic float getUnitsFromPoints(float aValue) Converts given value to document units from printer points (1/72 of an inch).
 - 
getUnitsMultiplierpublic float getUnitsMultiplier() Returns the multiplier used to convert printer points to document units.
 - 
getShowGridpublic boolean getShowGrid() Returns whether the document should show an alignment grid.
 - 
setShowGridpublic void setShowGrid(boolean aValue) Sets whether the document should show an alignment grid.
 - 
getSnapGridpublic boolean getSnapGrid() Returns whether the document should snap to an alignment grid.
 - 
setSnapGridpublic void setSnapGrid(boolean aValue) Sets whether the document should snap to an alignment grid.
 - 
getShowMarginpublic boolean getShowMargin() Returns whether the document should show a margin rect.
 - 
setShowMarginpublic void setShowMargin(boolean aValue) Sets whether the document should show a margin rect.
 - 
getSnapMarginpublic boolean getSnapMargin() Returns whether the document should snap to a margin rect.
 - 
setSnapMarginpublic void setSnapMargin(boolean aValue) Sets whether the document should snap to a margin rect.
 - 
getMarginRectpublic RMRect getMarginRect() Returns the margin rect for this document.
 - 
setMarginRectpublic void setMarginRect(RMRect aRect) Sets the margin rect for this document.
 - 
setMarginspublic void setMargins(float left, float right, float top, float bottom)Sets the margin rect for this document.
 - 
getMarginLeftpublic float getMarginLeft() Returns the margin rects left value.
 - 
getMarginRightpublic float getMarginRight() Returns the margin rects right value.
 - 
getMarginToppublic float getMarginTop() Returns the margin rects top value.
 - 
getMarginBottompublic float getMarginBottom() Returns the margin rects bottom value.
 - 
getGridSpacingpublic float getGridSpacing() Returns the grid spacing for the document's grid.
 - 
setGridSpacingpublic void setGridSpacing(float aValue) Sets the grid spacing for the document's grid.
 - 
getPublishUrlpublic java.lang.String getPublishUrl() Returns the URL this document should be uploaded to.
 - 
setPublishUrlpublic void setPublishUrl(java.lang.String aValue) Sets the URL this document should be uploaded to.
 - 
getNullStringpublic java.lang.String getNullString() Returns the string used to replace any occurrances of null values in a generated report.
 - 
setNullStringpublic void setNullString(java.lang.String aValue) Sets the string used to replace any occurrances of null values in a generated report.
 - 
getPaginatepublic java.lang.Boolean getPaginate() Returns whether the document should paginate generated reports by default.
 - 
setPaginatepublic void setPaginate(java.lang.Boolean aValue) Sets whether the document should paginate generated reports by default.
 - 
getCompresspublic boolean getCompress() Returns whether the document should compress images in generated file formats like PDF.
 - 
setCompresspublic void setCompress(boolean aValue) Sets whether the document should compress images in generated file formats like PDF.
 - 
getCalibrateColorspublic boolean getCalibrateColors() Returns whether the document should calibrate colors in generated file formats like PDF.
 - 
setCalibrateColorspublic void setCalibrateColors(boolean aValue) Sets whether the document should calibrate colors in generated file formats like PDF.
 - 
getDocListenerpublic RMDocument.DocListener getDocListener() Returns the DocListener associated with this document.
 - 
setDocListenerpublic void setDocListener(RMDocument.DocListener aListener) Sets the DocListener associated with this document.
 - 
generateReportpublic RMDocument generateReport(java.lang.Object objects) Returns a generated report from this template evaluated against the given object.
 - 
generateReportpublic RMDocument generateReport(java.lang.Object objects, java.lang.Object userInfo) Returns a generated report from this template evaluated against the given object and userInfo.
 - 
generateReportpublic RMDocument generateReport(java.lang.Object objects, boolean paginate) Returns a generated report from this template evaluated against the given object with an option to paginate.
 - 
generateReportpublic RMDocument generateReport(java.lang.Object objects, java.lang.Object userInfo, boolean paginate) Returns generated report from this template evaluated against given object/userInfo (with option to paginate).
 - 
getBytespublic byte[] getBytes() Returns the document as an XML byte array.
 - 
getBytesPDFpublic byte[] getBytesPDF() Returns the document as a byte array of a PDF file.
 - 
getBytesHTMLpublic byte[] getBytesHTML() Returns the document as a byte array of an HTML file.
 - 
getBytesFlashpublic byte[] getBytesFlash() Returns the document as a byte array of a Flash file.
 - 
getBytesCSVpublic byte[] getBytesCSV() Returns the document as a byte array of a CSV file.
 - 
getBytesDelimitedAsciipublic byte[] getBytesDelimitedAscii(java.lang.String fieldDelimiter, java.lang.String recordDelimiter, boolean quoteFields)Returns the document as a byte array of a delimited ASCII file (using given field, record separator strings).
 - 
getBytesJPEGpublic byte[] getBytesJPEG() Returns the document as byte array of a JPEG file.
 - 
getBytesPNGpublic byte[] getBytesPNG() Returns the document as byte array of PNG file.
 - 
getMapHTMLpublic java.util.Map getMapHTML(java.lang.String anImageRoot) Returns the document as a Map of an HTML file and image resources.
 - 
getStringCSVpublic java.lang.String getStringCSV() Returns the document as a string of a CSV file.
 - 
getStringDelimitedTextpublic java.lang.String getStringDelimitedText(java.lang.String fieldDelimiter, java.lang.String recordDelimiter, boolean quoteFields)Returns the document as a string of a delimited text file.
 - 
writepublic void write(java.lang.String aPath) Writes the document out to the given path String (it extracts type from path extension).
 - 
writePDFpublic void writePDF(java.lang.String fname) Writes the document to the given path String as PDF.
 - 
writeHTMLpublic java.util.Map writeHTML(java.lang.String fname) Writes the document to the given path String as HTML.
 - 
writeHTMLpublic java.util.Map writeHTML(java.lang.String fname, java.lang.String anImageRoot)Writes the document to the given path String as HTML (referenced images are written at the given relative path).
 - 
writeFlashpublic void writeFlash(java.lang.String fname) Writes the document to the given path String as Flash.
 - 
writeFlashHTMLpublic void writeFlashHTML(java.lang.String fname) Writes the document to the given path String as Flash/HTML.
 - 
writeCSVpublic void writeCSV(java.lang.String fname) Writes the document to the given path String as a CSV file.
 - 
writeDelimitedAsciipublic void writeDelimitedAscii(java.lang.String fname, java.lang.String fieldDelimiter, java.lang.String recordDelimiter, boolean quoteFields)Writes the document to the given path String as a delimited ASCII file.
 - 
writeJPGpublic void writeJPG(java.lang.String fname) Writes the document to the given path String as a JPEG file.
 - 
rebuildpublic void rebuild() Rebuilds the document according to the selected page and page layout.
 - 
getPageSizepublic RMSize getPageSize() Returns the size of a document page.
 - 
setPageSizepublic void setPageSize(float aWidth, float aHeight)Sets the size of the document (and all of its pages).
 - 
getMaxTimepublic float getMaxTime() Returns the total time needed to animate this document (total of all page animators).
 - 
getDocumentpublic RMDocument getDocument() Returns the document itself (over-ridden from RMShape).- Overrides:
- getDocumentin class- RMShape
 
 - 
getAnimatorpublic RMAnimator getAnimator(int anIndex) Returns the animator for a specific page.
 - 
getAnimatorLastpublic RMAnimator getAnimatorLast() Returns the animator for the last page.
 - 
getLoopspublic boolean getLoops() Returns whether the last animator loops.
 - 
getUndoerpublic RMUndoer getUndoer() Returns the RMUndoer for this document.
 - 
setUndoerpublic void setUndoer(RMUndoer anUndoer) Sets the RMUndoer for this document.
 - 
undoerAddDirtyObjectpublic void undoerAddDirtyObject(RMObject anObj) Overrides RMShape implementation to actually add dirty object to notify doc listner and actually add to undoer.- Overrides:
- undoerAddDirtyObjectin class- RMShape
 
 - 
willChangepublic void willChange(RMShape aShape) This is a notification call-back for impeding shape attribute changes.- Overrides:
- willChangein class- RMShape
 
 - 
setNeedsRepaintpublic void setNeedsRepaint(RMShape aShape) This is a notification call for impending visual shape attribute changes.- Overrides:
- setNeedsRepaintin class- RMShape
 
 - 
boundsChangedpublic void boundsChanged(RMShape aShape) Notifies this shape that a given shape's bounds have changed (presumably a descendant).- Overrides:
- boundsChangedin class- RMShape
 
 - 
resolvePageReferencespublic void resolvePageReferences() Performs page substitions on any text fields that were identified as containing @Page@ keys.
 - 
equalspublic boolean equals(java.lang.Object anObj) Standard equals implementation.
 - 
clonepublic java.lang.Object clone() Copies basic document attributes (shallow copy only - no children or pages).
 - 
cloneDeeppublic RMShape cloneDeep() Copies the complete document, including document pages and all their children.
 - 
undoClonepublic RMObject undoClone() Returns a copy of the document for undo (page list is copied shallow).
 - 
copypublic void copy(java.lang.Object anObj) Copies the attributes of the given object.
 - 
toXMLpublic RXElement toXML(RXArchiver anArchiver) XML archival.
 - 
fromXMLpublic java.lang.Object fromXML(RXArchiver anArchiver, RXElement anElement) XML unarchival.
 - 
initWithArchiverpublic java.lang.Object initWithArchiver(RMArchiver anArchiver) Legacy unarchival.- Specified by:
- initWithArchiverin interface- RMArchiver.Archiving
- Overrides:
- initWithArchiverin class- RMShape
 
 - 
rpgClonepublic RMShape rpgClone(ReportMill aReportMill) Report Generation method.
 - 
superSelectablepublic boolean superSelectable() Editor method indicates that document is super selectable.- Overrides:
- superSelectablein class- RMShape
 
 - 
childrenSuperSelectImmediatelypublic boolean childrenSuperSelectImmediately() Editor method indicates that pages super select immediately.- Overrides:
- childrenSuperSelectImmediatelyin class- RMShape
 
 - 
acceptsChildrenpublic boolean acceptsChildren() Editor method indicates that document accepts children (should probably be false).- Overrides:
- acceptsChildrenin class- RMShape
 
 - 
pdfBytespublic byte[] pdfBytes() Obsolete method for old pdfBytes() method.
 
- 
 
-