public class RBDocument extends RMDocument implements RJMinMaxSizeSettable
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
| Modifier and Type | Class and Description |
|---|---|
static class |
RBDocument.MenuTreeNode
This inner class models MenuBars, Menus and MenuItems as TreeNodes.
|
RMDocument.DocListener_locale, PAGE_LAYOUT_CONTINUOUS, PAGE_LAYOUT_CONTINUOUS_DOUBLE, PAGE_LAYOUT_DOUBLE, PAGE_LAYOUT_FACING, PAGE_LAYOUT_QUADRUPLE, PAGE_LAYOUT_SINGLE, SUPPORTED_UNITS, UNIT_CM, UNIT_INCHES, UNIT_MM, UNIT_PICA, UNIT_POINTSWRAP_TYPE_BOTH, WRAP_TYPE_NONE| Constructor and Description |
|---|
RBDocument(int aWidth,
int aHeight)
Creates a new document with the given width and height.
|
| Modifier and Type | Method and Description |
|---|---|
RMSize |
getDefaultMaximumSize() |
RMSize |
getDefaultMinimumSize()
Default values for the extrema
|
RMSize |
getMaximumSize()
Returns component's maximum size as an RMSize.
|
RMSize |
getMinimumSize()
Returns component's minimum size as an RMSize.
|
RBPage |
getPageRB(int anIndex)
Returns the document page at the given index as an RBPage.
|
RJPanel |
getPanel()
A helper method to get the current RJPanel
|
RBPage |
getSelectedPageRB()
Returns the document's selected page as an RBPage.
|
java.lang.String |
getToolClassName()
Editor method - indicates that linked text should use normal text inspector.
|
void |
setDataSource(RMDataSource aDataSource)
Overrides RMEditor implementation to install in RJPanel.
|
void |
setMaximumSize(RMSize max)
Set component's maximum size as an RMSize
|
void |
setMinimumSize(RMSize min)
Set component's minimum size as an RMSize
|
acceptsChildren, addPage, addPage, addPageReferenceShapes, addPages, addPages, boundsChanged, childrenSuperSelectImmediately, clone, cloneDeep, copy, equals, fromXML, generateReport, generateReport, generateReport, generateReport, getAnimator, getAnimatorLast, getBytes, getBytesCSV, getBytesDelimitedAscii, getBytesFlash, getBytesHTML, getBytesJPEG, getBytesPDF, getBytesPNG, getCalibrateColors, getCompress, getDataSource, getDataSourceSchema, getDoc, getDocForPDF, getDocListener, getDocument, getFilename, getGridSpacing, getLoops, getMapHTML, getMarginBottom, getMarginLeft, getMarginRect, getMarginRight, getMarginTop, getMaxTime, getNullString, getPage, getPageCount, getPageLast, getPageLayout, getPages, getPageSize, getPaginate, getPointsFromUnits, getPublishUrl, getSelectedPage, getSelectedPageIndex, getShowGrid, getShowMargin, getSnapGrid, getSnapMargin, getStringCSV, getStringDelimitedText, getUndoer, getUnit, getUnitsFromPoints, getUnitsMultiplier, getUnitString, getVersion, initWithArchiver, pdfBytes, rebuild, removePage, resolvePageReferences, rpgClone, setCalibrateColors, setCompress, setDocListener, setFilename, setGridSpacing, setMarginRect, setMargins, setNeedsRepaint, setNullString, setPageLayout, setPages, setPageSize, setPaginate, setPublishUrl, setSelectedPage, setSelectedPageIndex, setShowGrid, setShowMargin, setSnapGrid, setSnapMargin, setUndoer, setUnit, setUnitString, superSelectable, toXML, undoClone, undoerAddDirtyObject, willChange, write, writeCSV, writeDelimitedAscii, writeFlash, writeFlashHTML, writeHTML, writeHTML, writeJPG, writePDFacceptsDragKeys, 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, 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, ydidUndo, getAnimAttribute, getClassNameShortfinalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetSizepublic RBDocument(int aWidth,
int aHeight)
public RBPage getPageRB(int anIndex)
public RBPage getSelectedPageRB()
public java.lang.String getToolClassName()
getToolClassName in class RMShapepublic RJPanel getPanel()
public void setMaximumSize(RMSize max)
setMaximumSize in interface RJMinMaxSizeSettablepublic RMSize getMaximumSize()
getMaximumSize in interface RJMinMaxSizeSettablepublic void setMinimumSize(RMSize min)
setMinimumSize in interface RJMinMaxSizeSettablepublic RMSize getMinimumSize()
getMinimumSize in interface RJMinMaxSizeSettablepublic RMSize getDefaultMinimumSize()
RJMinMaxSizeSettablegetDefaultMinimumSize in interface RJMinMaxSizeSettablepublic RMSize getDefaultMaximumSize()
getDefaultMaximumSize in interface RJMinMaxSizeSettablepublic void setDataSource(RMDataSource aDataSource)
setDataSource in class RMDocument