Package com.inductiveautomation.rm.shape
Class RMDocument
- java.lang.Object
- 
- com.inductiveautomation.rm.base.RMListenerList
- 
- com.inductiveautomation.rm.base.RMObject
- 
- com.inductiveautomation.rm.shape.RMShape
- 
- com.inductiveautomation.rm.shape.RMParentShape
- 
- com.inductiveautomation.rm.shape.RMDocument
 
 
 
 
 
- 
- All Implemented Interfaces:
- Archivable,- DeepChangeListener,- RMPropertyChanger,- RMTypes,- java.beans.PropertyChangeListener,- java.lang.Cloneable,- java.util.EventListener
 
 public class RMDocument extends RMParentShape 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 = new RMDocument(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 classRMDocument.BytesFormatstatic classRMDocument.PageLayoutstatic classRMDocument.Unit- 
Nested classes/interfaces inherited from interface com.inductiveautomation.rm.base.RMTypesRMTypes.Align, RMTypes.AlignX, RMTypes.AlignY
 
- 
 - 
Field SummaryFields Modifier and Type Field Description static java.util.Locale_localestatic java.lang.StringDEFAULT_NULL_STR- 
Fields inherited from class com.inductiveautomation.rm.shape.RMShapeBINDING_PROP_NAME, STROKE_BORDER, STROKE_DOUBLE, STROKE_HIDDEN, STROKE_SHAPE
 
- 
 - 
Constructor SummaryConstructors Constructor Description RMDocument()Creates a plain empty document.RMDocument(double aWidth, double 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.
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleanacceptsChildren()Editor method indicates that document accepts children (should probably be false).voidaddChild(RMShape aChild, int anIndex)Override to make sure document has size.RMPageaddPage()Adds a new page to this document.voidaddPage(RMPage aPage)Adds a given page to this document.voidaddPage(RMPage aPage, int anIndex)Adds a given page to this document at the given index.voidaddPages(RMDocument aDoc)Add the pages in the given document to this document (at end) and clears the pages list in the given document.booleanchildrenSuperSelectImmediately()Editor method indicates that pages super select immediately.RMDocumentclone()Copies basic document attributes (shallow copy only - no children or pages).protected doublecomputePrefHeight(double aWidth)Override to return height * PageCount (plus spacing) for Continuous, height * PageCount/2 for ContinuousDouble, and height * 2 for Quadruple.protected doublecomputePrefWidth(double aHeight)Override to return double page width for PageLayout.Double, Facing, & Quadruple.RMPagecreatePage()Creates a new page.protected voidfromXMLShape(RXArchiver anArchiver, RXElement anElement)XML unarchival.RMDocumentgenerateReport()Returns a generated report from this template evaluated against the given object.RMDocumentgenerateReport(java.lang.Object theObjects)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 theObjects, java.lang.Object theUserInfo, boolean aPaginateFlag)Returns generated report from this template evaluated against given object/userInfo (with option to paginate).byte[]getAllPagesBytesJPEG()Returns a single jpeg that includes all pages and is (pageCount * pageHeight) tallbyte[]getAllPagesBytesPNG()Returns a single png that includes all pages and is (pageCount * pageHeight) tallRMAnimatorgetAnimator(int anIndex)Returns the animator for a specific page.RMAnimatorgetAnimatorLast()Returns the animator for the last page.java.lang.StringgetAutosizingDefault()Returns the autosizing default.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[]getBytesExcel()Deprecated.usegetBytesXlsx()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.byte[]getBytesRTF()Returns the document as byte array of an Excel file.byte[]getBytesXlsx()Returns the document as byte array of an Excel XLSX file.booleangetCompress()Returns whether the document should compress images in generated file formats like PDF.EntitygetDatasetEntity()Returns the entity this shape should show in keys browser.RMDataSourcegetDataSource()Returns the RMDataSource associated with this document.SchemagetDataSourceSchema()Returns the schema for the RMDataSource associated with this document (convenience).static RMDocumentgetDoc(java.lang.Object aSource)Creates a new document from aSource using RMArchiver.RMDocumentgetDocument()Returns the document itself (over-ridden from RMShape).java.lang.StringgetFilename()Returns the filename associated with this document, if available.RMFontgetFont()Returns the document's default font.doublegetGridSpacing()Returns the grid spacing for the document's grid.booleangetLoops()Returns whether the last animator loops.doublegetMarginBottom()Returns the margin rects bottom value.doublegetMarginLeft()Returns the margin rects left value.RMRectgetMarginRect()Returns the margin rect for this document.RMRectgetMarginRectDefault()Returns the default margin rect.doublegetMarginRight()Returns the margin rects right value.doublegetMarginTop()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 anIndex)Returns the page at the given index.intgetPageCount()Returns the number of pages in this document.RMPagegetPageLast()Returns the last page (convenience).RMDocument.PageLayoutgetPageLayout()Returns the page layout for the document.java.util.List<RMPage>getPages()Returns the list of pages associated with this document.RMSizegetPageSize()Returns the size of a document page.RMSizegetPageSizeDefault()Returns the default page size.doublegetPointsFromUnits(double 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.intgetSelectedIndex()Returns the current page index of this document.RMPagegetSelectedPage()Returns the currently selected page 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.RMDocumentgetSubreport(java.lang.String aName)Returns a subreport document for given name (override to improve).RMDocument.UnitgetUnit()Returns the units used to express sizes in the current document (POINTS, INCHES, CENTIMETERS).doublegetUnitsFromPoints(double 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.floatgetVersion()Returns the version this document was loaded as.booleanisBypassImageCache()booleanisDeletable()Override this for shapes (like a table row) that don't don't make sense to delete by themselves.booleanisPaginate()Returns whether the document should paginate generated reports by default.protected voidlayoutChildren()Rebuilds the document according to the selected page and page layout.voidpaintShape(RMShapePainter aPntr)Overrides paint shape, because document should never really paint itself.byte[]pdfBytes()Obsolete method for old pdfBytes() method.RMPageremovePage(int anIndex)Removes a page from this document.intremovePage(RMPage aPage)Removes the given page.voidresolvePageReferences()Performs page substitutions on any text fields that were identified as containing @Page@ keys.protected RMShaperpgChildren(ReportOwner anRptOwner, RMParentShape aParent)Override to handle ShapeLists special.voidsetBypassImageCache(boolean b)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.voidsetFont(RMFont aFont)Sets the document default font.voidsetGridSpacing(double aValue)Sets the grid spacing for the document's grid.voidsetMarginRect(RMRect aRect)Sets the margin rect for this document.voidsetMargins(double left, double right, double top, double bottom)Sets the margin rect for this document.voidsetNullString(java.lang.String aValue)Sets the string used to replace any occurrances of null values in a generated report.voidsetPageLayout(RMDocument.PageLayout aValue)Sets the page layout for the document.voidsetPageLayout(java.lang.String aValue)Set page layout from string.voidsetPageSize(double aWidth, double aHeight)Sets the size of the document (and all of its pages).voidsetPaginate(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.voidsetSelectedIndex(int anIndex)Selects the currently selected page by index.voidsetSelectedPage(RMPage aPage)Selects the given page.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.voidsetUnit(RMDocument.Unit aValue)Sets the units used to express sizes in the current document (POINTS, INCHES, CENTIMETERS).voidsetUnit(java.lang.String aString)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()Returns RXElement for document.protected voidtoXMLChildren(RXArchiver anArchiver, RXElement anElement)XML archival of children.protected RXElementtoXMLShape(RXArchiver anArchiver)XML archival.voidwrite(java.io.File aFile)Writes the document to the given File objectvoidwrite(java.lang.String aPath)Writes the document out to the given path String (it extracts type from path extension).voidwriteExcel(java.lang.String path)Deprecated.voidwritePDF(java.lang.String aPath)Writes the document to the given path String as PDF.voidwriteXlsx(java.io.File file)Writes the document to the given path String as Excel Xlsx format.voidwriteXlsx(java.lang.String path)Writes the document to the given path String as Excel Xlsx format.- 
Methods inherited from class com.inductiveautomation.rm.shape.RMParentShapeaddChild, addChild, addChild, addLayoutChild, bringShapesToFront, cloneDeep, divideShapeFromTop, fromXML, fromXMLChildren, getBoundsOfChildren, getChild, getChildArray, getChildContaining, getChildCount, getChildLast, getChildren, getChildrenIntersecting, getChildrenWithClass, getChildrenWithClass, getChildWithClass, getChildWithName, getLayout, getNeedsLayout, getSourceURL, indexOfChild, isHittable, isShowing, isSourceURLSet, layout, relayout, removeChild, removeChild, removeChildren, removeLayoutChild, rpgAll, sendShapesToBack, setHeight, setLayout, setNeedsLayout, setSourceURL, setWidth, toXML
 - 
Methods inherited from class com.inductiveautomation.rm.shape.RMShapeacceptsMouse, addBinding, addBinding, addDeepChangeListener, addMouseListener, animUpdate, bounds, contains, convertedPointFromShape, convertedPointToShape, convertedRectFromShape, convertedRectToShape, convertedVectorFromShape, convertedVectorToShape, convertFromShape, convertPathFromShape, convertPathToShape, convertPointFromShape, convertPointToShape, convertRectFromShape, convertRectToShape, convertToShape, convertVectorFromShape, convertVectorToShape, copyShape, createDivideShapeRemainder, deepChange, divideShapeFromEdge, get, get, getAlignment, getAlignmentX, getAlignmentY, getAncestor, getAncestorCount, getAncestorInCommon, getAnimator, getAnimator, getAutosizing, getBestHeight, getBestHeight, getBestWidth, getBestWidth, getBinding, getBinding, getBindingCount, getBindings, getBounds, getBoundsInside, getBoundsMarked, getBoundsMarkedDeep, getChildAnimator, getChildAnimator, getChildClipShape, getClipShape, getColor, getDashArrayString, getDashPhase, getDatasetKey, getDisplayedFill, getDisplayedStroke, getEffect, getEventAdapter, getFill, getFormat, getFrame, getFrameHeight, getFrameMaxX, getFrameMaxY, getFrameWidth, getFrameX, getFrameXY, getFrameY, getHeight, getHover, getLayoutInfo, getMaskPath, getMaxX, getMaxY, getMinHeight, getMinHeight, getMinWidth, getMinWidth, getName, getOpacity, getOpacityDeep, getOutline, getPageBreak, getPageBreakMax, getPageBreakPage, getPageBreakPageMax, getPageShape, getParent, getParent, getPath, getPathInBounds, getPrefHeight, getPrefHeight, getPrefWidth, getPrefWidth, getPropertyNameMapped, getPropertyNames, getPropertyNames, getRoll, getRootShape, getRSS, getScaleX, getScaleY, getShapesToAncestor, getShapesToDescendant, getShapesToShape, getSize, getSkewX, getSkewY, getStroke, getStrokeColor, getStrokeOnTop, getStrokeStyle, getStrokeWidth, getTextColor, getTimeline, getTimeline, getTransform, getTransformFromShape, getTransformInverse, getTransformToShape, getUndoer, getURL, getVisbileBounds, getVisibleBounds, getVisibleBounds, getVisibleBounds, getWidth, getX, getXY, getXYP, getY, height, indexOf, intersects, isAncestor, isAnimProperty, isDescendant, isEditing, isEnabled, isFontSet, isHittable, isLocked, isMinHeightSet, isMinWidthSet, isPrefHeightSet, isPrefWidthSet, isRoot, isRSS, isShowing, isUnderlined, isUseFill, isUseStroke, isViewing, isVisible, mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, offsetXY, page, pageMax, paint, paintShapeAll, paintShapeChildren, paintShapeOver, propertyChange, put, removeBinding, removeBinding, removeDeepChangeListener, removeFromParent, removeMouseListener, repaint, repaint, resolvePageReferences, rpgBindings, rpgShape, setAlignment, setAlignmentX, setAlignmentY, setAutosizing, setBestHeight, setBestSize, setBounds, setBounds, setColor, setDashArrayString, setDashPhase, setEffect, setEnabled, setFill, setFormat, setFrame, setFrame, setFrameSize, setFrameX, setFrameXY, setFrameXY, setFrameY, setHover, setLayoutInfo, setLocked, setMinHeight, setMinSize, setMinWidth, setName, setOpacity, setOutline, setParent, setPrefHeight, setPrefWidth, setRoll, setScaleX, setScaleXY, setScaleY, setShowing, setSize, setSize, setSkewX, setSkewXY, setSkewY, setStroke, setStrokeColor, setStrokeStyle, setStrokeWidth, setTextColor, setTime, setTimeline, setUnderlined, setURL, setUseFill, setUseStroke, setVisible, setX, setXY, setXY, setXYP, setY, shapeHidden, shapeShown, toString, undoerDisable, undoerEnable, undoerSetUndoTitle, width, x, y
 - 
Methods inherited from class com.inductiveautomation.rm.base.RMObjectaddPropertyChangeListener, firePropertyChange, firePropertyChange, firePropertyChange, getPCEvent, removePropertyChangeListener, sendPropertyChange
 - 
Methods inherited from class com.inductiveautomation.rm.base.RMListenerListaddListener, getListener, getListenerCount, getListenerCount, getListenerList, getListeners, hasListeners, removeListener
 
- 
 
- 
- 
- 
Field Detail- 
DEFAULT_NULL_STRpublic static final java.lang.String DEFAULT_NULL_STR - See Also:
- Constant Field Values
 
 - 
_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(double aWidth, double 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.
 
- 
 - 
Method Detail- 
getDocpublic static RMDocument getDoc(java.lang.Object aSource) Creates a new document from aSource using RMArchiver.
 - 
getFilenamepublic java.lang.String getFilename() Returns the filename associated with this document, if available.
 - 
getFontpublic RMFont getFont() Returns the document's default font.
 - 
setFontpublic void setFont(RMFont aFont) Sets the document default font.
 - 
getVersionpublic float getVersion() Returns the version this document was loaded as.
 - 
getPageCountpublic int getPageCount() Returns the number of pages in this document.
 - 
getPagepublic RMPage getPage(int anIndex) Returns the page at the given index.
 - 
getPageLastpublic RMPage getPageLast() Returns the last page (convenience).
 - 
getPagespublic java.util.List<RMPage> getPages() Returns the list of pages associated with this document.
 - 
addPagepublic RMPage addPage() Adds a new page to this document.
 - 
addPagepublic void addPage(RMPage aPage) Adds a given page to this document.
 - 
addPagepublic void addPage(RMPage aPage, int anIndex) Adds a given page to this document at the given index.
 - 
removePagepublic RMPage removePage(int anIndex) Removes a page from this document.
 - 
removePagepublic int removePage(RMPage aPage) Removes the given page.
 - 
createPagepublic RMPage createPage() Creates a new page.
 - 
addChildpublic void addChild(RMShape aChild, int anIndex) Override to make sure document has size.- Overrides:
- addChildin class- RMParentShape
 
 - 
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.
 - 
getSelectedIndexpublic int getSelectedIndex() Returns the current page index of this document.
 - 
setSelectedIndexpublic void setSelectedIndex(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 RMDocument.PageLayout getPageLayout() Returns the page layout for the document.
 - 
setPageLayoutpublic void setPageLayout(RMDocument.PageLayout aValue) Sets the page layout for the document.
 - 
setPageLayoutpublic void setPageLayout(java.lang.String aValue) Set page layout from string.
 - 
getUnitpublic RMDocument.Unit getUnit() Returns the units used to express sizes in the current document (POINTS, INCHES, CENTIMETERS).
 - 
setUnitpublic void setUnit(RMDocument.Unit aValue) Sets the units used to express sizes in the current document (POINTS, INCHES, CENTIMETERS).
 - 
setUnitpublic void setUnit(java.lang.String aString) Sets the units used to express sizes in the current document with one of the strings: point, inch or cm.
 - 
getPointsFromUnitspublic double getPointsFromUnits(double aValue) Converts given value from document units to printer points (1/72 of an inch).
 - 
getUnitsFromPointspublic double getUnitsFromPoints(double 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.
 - 
getGridSpacingpublic double getGridSpacing() Returns the grid spacing for the document's grid.
 - 
setGridSpacingpublic void setGridSpacing(double aValue) Sets the grid spacing for the document's 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.
 - 
getMarginRectDefaultpublic RMRect getMarginRectDefault() Returns the default margin rect.
 - 
setMarginspublic void setMargins(double left, double right, double top, double bottom)Sets the margin rect for this document.
 - 
getMarginLeftpublic double getMarginLeft() Returns the margin rects left value.
 - 
getMarginRightpublic double getMarginRight() Returns the margin rects right value.
 - 
getMarginToppublic double getMarginTop() Returns the margin rects top value.
 - 
getMarginBottompublic double getMarginBottom() Returns the margin rects bottom value.
 - 
getPageSizepublic RMSize getPageSize() Returns the size of a document page.
 - 
setPageSizepublic void setPageSize(double aWidth, double aHeight)Sets the size of the document (and all of its pages).
 - 
getPageSizeDefaultpublic RMSize getPageSizeDefault() Returns the default page size.
 - 
getAutosizingDefaultpublic java.lang.String getAutosizingDefault() Returns the autosizing default.- Overrides:
- getAutosizingDefaultin class- RMShape
 
 - 
getDataSourcepublic RMDataSource getDataSource() Returns the RMDataSource associated with this document.
 - 
setDataSourcepublic void setDataSource(RMDataSource aDataSource) Sets the RMDataSource associated with this document.
 - 
getDataSourceSchemapublic Schema getDataSourceSchema() Returns the schema for the RMDataSource associated with this document (convenience).
 - 
getDatasetEntitypublic Entity getDatasetEntity() Returns the entity this shape should show in keys browser.- Overrides:
- getDatasetEntityin class- RMShape
 
 - 
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.
 - 
setBypassImageCachepublic void setBypassImageCache(boolean b) 
 - 
isBypassImageCachepublic boolean isBypassImageCache() 
 - 
isPaginatepublic boolean isPaginate() Returns whether the document should paginate generated reports by default.
 - 
setPaginatepublic void setPaginate(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.
 - 
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.
 - 
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).
 - 
getBytesExcel@Deprecated public byte[] getBytesExcel() Deprecated.usegetBytesXlsx()Returns the document as byte array of an Excel file.
 - 
getBytesXlsxpublic byte[] getBytesXlsx() Returns the document as byte array of an Excel XLSX file.
 - 
getBytesRTFpublic byte[] getBytesRTF() Returns the document as byte array of an Excel file.
 - 
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.
 - 
getAllPagesBytesPNGpublic byte[] getAllPagesBytesPNG() Returns a single png that includes all pages and is (pageCount * pageHeight) tall
 - 
getAllPagesBytesJPEGpublic byte[] getAllPagesBytesJPEG() Returns a single jpeg that includes all pages and is (pageCount * pageHeight) tall
 - 
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).
 - 
writepublic void write(java.io.File aFile) Writes the document to the given File object
 - 
writePDFpublic void writePDF(java.lang.String aPath) Writes the document to the given path String as PDF.
 - 
writeExcel@Deprecated public void writeExcel(java.lang.String path) Deprecated.Writes the document to the given path String as Excel.- Parameters:
- path- the save path, must not be null
 
 - 
writeXlsxpublic void writeXlsx(java.lang.String path) Writes the document to the given path String as Excel Xlsx format.- Parameters:
- path- the save path, must not be null
 
 - 
writeXlsxpublic void writeXlsx(java.io.File file) Writes the document to the given path String as Excel Xlsx format.- Parameters:
- file- the file to save to, must not be null
 
 - 
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.
 - 
getSubreportpublic RMDocument getSubreport(java.lang.String aName) Returns a subreport document for given name (override to improve).
 - 
paintShapepublic void paintShape(RMShapePainter aPntr) Overrides paint shape, because document should never really paint itself.- Overrides:
- paintShapein class- RMShape
 
 - 
generateReportpublic RMDocument generateReport() Returns a generated report from this template evaluated against the given object.
 - 
generateReportpublic RMDocument generateReport(java.lang.Object theObjects) 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 theObjects, java.lang.Object theUserInfo, boolean aPaginateFlag) Returns generated report from this template evaluated against given object/userInfo (with option to paginate).
 - 
rpgChildrenprotected RMShape rpgChildren(ReportOwner anRptOwner, RMParentShape aParent) Override to handle ShapeLists special.- Overrides:
- rpgChildrenin class- RMParentShape
 
 - 
resolvePageReferencespublic void resolvePageReferences() Performs page substitutions on any text fields that were identified as containing @Page@ keys.
 - 
layoutChildrenprotected void layoutChildren() Rebuilds the document according to the selected page and page layout.- Overrides:
- layoutChildrenin class- RMParentShape
 
 - 
computePrefWidthprotected double computePrefWidth(double aHeight) Override to return double page width for PageLayout.Double, Facing, & Quadruple. return a double value for the width.- Overrides:
- computePrefWidthin class- RMParentShape
 
 - 
computePrefHeightprotected double computePrefHeight(double aWidth) Override to return height * PageCount (plus spacing) for Continuous, height * PageCount/2 for ContinuousDouble, and height * 2 for Quadruple.- Overrides:
- computePrefHeightin class- RMParentShape
- Returns:
- a double value for the height.
 
 - 
toXMLpublic RXElement toXML() Returns RXElement for document.
 - 
clonepublic RMDocument clone() Copies basic document attributes (shallow copy only - no children or pages).- Overrides:
- clonein class- RMParentShape
 
 - 
toXMLShapeprotected RXElement toXMLShape(RXArchiver anArchiver) XML archival.- Overrides:
- toXMLShapein class- RMParentShape
 
 - 
toXMLChildrenprotected void toXMLChildren(RXArchiver anArchiver, RXElement anElement) XML archival of children.- Overrides:
- toXMLChildrenin class- RMParentShape
 
 - 
fromXMLShapeprotected void fromXMLShape(RXArchiver anArchiver, RXElement anElement) XML unarchival.- Overrides:
- fromXMLShapein class- RMParentShape
 
 - 
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.
 - 
isDeletablepublic boolean isDeletable() Description copied from class:RMShapeOverride this for shapes (like a table row) that don't don't make sense to delete by themselves.- Overrides:
- isDeletablein class- RMShape
 
 
- 
 
-