public class RMPage extends RMShape
RMDocument template = new RMDocument(aSource); RMPage page = template.getPage(0); RMTable table = page.getChildWithName("MyTable"); ...
Or you might use it briefly when adding pages to a document (which comes with one by default):
RMDocument template = new RMDocument(612, 792); template.getPage(0).addChild(new RMText(new RXString("Hello Page 1!", RMFont("Arial", 100)))); template.addPage(new RMPage()); template.getPage(1).addChild(new RMText(new RXString("Hello Page 2!", RMFont("Arial", 100))));
Modifier and Type | Class and Description |
---|---|
static class |
RMPage.Plexing |
RMTypes.AlignX, RMTypes.AlignY
WRAP_TYPE_BOTH, WRAP_TYPE_NONE
Constructor and Description |
---|
RMPage()
Creates a plain empty page.
|
Modifier and Type | Method and Description |
---|---|
boolean |
acceptsChildren()
Editor method - indicates that page supports added children.
|
void |
addChild(RMShape aChild,
int anIndex)
Add the given child at the given index (over-rides RMShape version to propogate to RMPageLayer).
|
void |
addLayer(RMPageLayer aLayer)
Adds a layer to page.
|
void |
addLayer(RMPageLayer aLayer,
int anIndex)
Adds a layer to page.
|
void |
addLayerNamed(java.lang.String aString)
Creates a new layer with the given name and adds it to this page's layer list.
|
void |
bringShapesToFront(java.util.List shapes)
Overrides shape implementation to keep shapes in their proper layers.
|
RMPage |
clone()
Standard clone method.
|
RMShapeLayout |
createLayout()
Override to return a no-op layout.
|
boolean |
equals(java.lang.Object anObj)
Standard equals method.
|
java.lang.Object |
fromXMLShape(com.reportmill.archiver.RXArchiver anArchiver,
com.reportmill.archiver.RXElement anElement,
java.lang.Object anOwner)
XML unarchival.
|
void |
fromXMLShapeChildren(com.reportmill.archiver.RXArchiver anArchiver,
com.reportmill.archiver.RXElement anElement,
java.lang.Object anOwner)
XML unarchival for shape children.
|
RMAnimator |
getChildAnimator(boolean create)
Returns the child animator associated with this page, creating one if it doesn't exist (if requested).
|
RMPageLayer |
getChildLayer(RMShape aChild)
Returns the layer for a given child.
|
boolean |
getClipChildren()
Returns whether to clip children.
|
java.lang.String |
getDatasetKey()
Returns the dataset key associated with the table.
|
RMPageLayer |
getLayer(int anIndex)
Returns the layer at the given index.
|
RMPageLayer |
getLayer(java.lang.String aString)
Returns the layer with the given name.
|
int |
getLayerCount()
Returns the number of layers associated with this page.
|
java.util.List<RMPageLayer> |
getLayers()
Returns the list of page layers.
|
RMShape |
getPageShape()
Overrides shape implementation to return this page, since it is the page shape.
|
boolean |
getPaintBackground()
Returns whether to paint white background even if not explicitly defined and drop shadow.
|
RMPage |
getPart(int anIndex)
Override for parts if there is a dataset key.
|
int |
getPartCount()
Override for parts if there is a dataset key.
|
RMPage |
getPartDeep(int anIndex,
ReportMill aReportMill)
Override for parts if there is a dataset key.
|
int |
getPartDeepCount()
Override for parts if there is a dataset key.
|
RMPage.Plexing |
getPlexing()
Returns the page plexing (whether it prints to one page, page back & front, or back & front with tumble).
|
RMPageLayer |
getSelectedLayer()
Returns the selected layer.
|
int |
getSelectedLayerIndex()
Returns the index of the selected layer.
|
boolean |
isHittableChild(RMShape aChild)
Override so page layers can make children unhittable.
|
boolean |
isVisibleChild(RMShape aChild)
Override so page layers can make children not visible.
|
void |
moveLayer(int fromIndex,
int toIndex)
Moves the layer at fromIndex to toIndex.
|
void |
moveToNewLayer(java.util.List shapes)
Creates a new layer and adds the shapes in the given list to it.
|
int |
page()
Returns the "Page" number of this page (used to resolve @Page@ key references).
|
int |
pageMax()
Returns the "PageMax" of the document associated with this page (used to resolve @PageMax@ key references).
|
void |
paintShape(java.awt.Graphics2D aGraphics)
Top-level generic shape painting (sets transform, recurses to children, paints this).
|
void |
paintShapeChildren(java.awt.Graphics2D aGraphics)
Overridden to clip when viewing.
|
RMShape |
removeChild(int anIndex)
Removes the child at the given index (over-rides RMShape version to propogate to RMPageLayer).
|
RMPageLayer |
removeLayer(int anIndex)
Removes the layer at given index (and its children).
|
int |
removeLayer(RMPageLayer aLayer)
Removes the given layer.
|
void |
resetLayers()
Resets this page's list of layers to a single, selecctable layer named "Layer 1".
|
void |
selectLayer(RMPageLayer aLayer)
Selects the given layer.
|
void |
selectLayer(java.lang.String aString)
Selects the layer with the given name.
|
void |
sendShapesToBack(java.util.List shapes)
Overrides shape implementation to keep shapes in their proper layers.
|
void |
setClipChildren(boolean aValue)
Sets whether to clip children.
|
void |
setDatasetKey(java.lang.String aKeyPath)
Sets the dataset key associated with the table.
|
void |
setPaintBackground(boolean aValue)
Sets whether to paint white background even if not explicitly defined and drop shadow.
|
void |
setPlexing(RMPage.Plexing aPlexing)
Sets the page plexing (whether it prints to one page, page back & front, or back & front with tumble).
|
void |
setReportMill(ReportMill aReportMill)
Report generation.
|
boolean |
superSelectable()
Editor method - indicates that pages can be super-selected.
|
com.reportmill.archiver.RXElement |
toXMLShape(com.reportmill.archiver.RXArchiver anArchiver,
java.lang.Object anOwner)
XML archival.
|
void |
toXMLShapeChildren(com.reportmill.archiver.RXArchiver anArchiver,
com.reportmill.archiver.RXElement anElement,
java.lang.Object anOwner)
XML archival of children.
|
acceptsMouse, addAction, addActions, addBinding, addChild, addChild, addChild, addDeepChangeListener, addListener, addMouseListener, animUpdate, bounds, childrenSuperSelectImmediately, cloneDeep, contains, convertedPointFromShape, convertedPointToShape, convertedRectFromShape, convertedRectToShape, convertedSizeFromShape, convertedSizeToShape, convertedVectorFromShape, convertedVectorToShape, convertFromShape, convertPathFromShape, convertPathToShape, convertPointFromShape, convertPointToShape, convertRectFromShape, convertRectToShape, convertSizeFromShape, convertSizeToShape, convertToShape, convertVectorFromShape, convertVectorToShape, copyShape, createDivideShapeRemainder, createPartClone, deepChange, divideShapeFromEdge, divideShapeFromTop, doLayout, fromXML, fromXMLShapeLayout, get, get, getAction, getAlignmentX, getAlignmentY, getAncestor, getAncestorCount, getAncestorInCommon, getAnimator, getAnimator, getAutosizing, getAutosizingDefault, getBestHeight, getBestSize, getBestSize, getBestWidth, getBinding, getBinding, getBindingCount, getBounds, getBoundsInside, getBoundsMarked, getBoundsMarkedDeep, getBoundsOfChildren, getCausesWrap, getCausesWrapType, getChild, getChildAnimator, getChildArray, getChildClipShape, getChildContaining, getChildCount, getChildLast, getChildren, getChildrenIntersecting, getChildrenWhoCauseWrap, getChildrenWithClass, getChildrenWithClass, getChildWithClass, getChildWithName, getClipShape, getColor, getDatasetEntity, getDocument, getEffect, getEventAdapter, getFill, getFont, getFormat, getFrame, getFrame, getFrameMaxX, getFrameMaxY, getFrameX, getFrameXY, getFrameY, getHeight, getHover, getImageFill, getLayout, getLayout, getLayoutInfo, getLineWidth, getMaskPath, getMaximumSize, getMaximumSizeProperty, getMaxX, getMaxY, getMinimumSize, getMinimumSizeProperty, getName, getOpacity, getOpacityDeep, getOriginal, getOutline, getPageBreak, getPageBreakMax, getPageBreakPage, getPageBreakPageMax, getParent, getParentWithClass, getPath, getPathInBounds, getPreferredSize, getPreferredSize, getPreferredSizeProperty, getPropertyNameMapped, getPropertyNames, getReportMill, getRoll, getRootShape, getScaleX, getScaleY, getShapesToAncestor, getShapesToDescendant, getShapesToShape, getSize, getSizeP, getSkewX, getSkewY, getStroke, getStrokeColor, getStrokeWidth, getTextColor, getTimeline, getTimeline, getTransform, getTransformFromShape, getTransformInverse, getTransformToShape, getUndoer, getURL, getVisbileBounds, getVisibleBounds, getVisibleBounds, getVisibleBounds, getWidth, getX, getXY, getXYP, getY, height, indexOf, indexOfChild, intersects, isAncestor, isAnimProperty, isDescendant, isEditing, isEnabled, isHittable, isLocked, isMaximumSizeSet, isMinimumSizeSet, isRoot, isRSS, isShowing, isUnderlined, isViewing, isVisible, layoutReset, mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, notRSS, offsetChildrenXY, offsetXY, paint, paintShapeAll, paintShapeOver, propertyChange, put, removeAction, removeBinding, removeBinding, removeChild, removeChildren, removeDeepChangeListener, removeFromParent, removeMouseListener, repaint, repaint, resolvePageReferences, revalidate, setAction, setAlignmentX, setAlignmentY, setAutosizing, setBestHeight, setBestSize, setBestSize, setBounds, setBounds, setCausesWrap, setCausesWrapType, setColor, setEffect, setEnabled, setFill, setFont, setFormat, setFrame, setFrame, setFrameSize, setFrameX, setFrameXY, setFrameXY, setFrameY, setHeight, setHover, setLayout, setLayoutInfo, setLineWidth, setLocked, setMaximumSize, setMinimumSize, setName, setOpacity, setOutline, setParent, setPreferredSize, setReportMillBindings, setReportMillDeep, setRoll, setScaleX, setScaleXY, setScaleY, setShowing, setSize, setSize, setSizeP, setSkewX, setSkewXY, setSkewY, setStroke, setStrokeColor, setStrokeWidth, setTextColor, setTime, setUnderlined, setURL, setVisible, setWidth, setX, setXY, setXY, setXYP, setY, toString, toXML, toXMLShapeLayout, undoerDisable, undoerEnable, undoerSetUndoTitle, validate, width, x, y
addPropertyChangeListener, removePropertyChangeListener
getListener, getListenerCount, getListenerCount, getListenerList, getListeners, hasListeners, removeListener
public java.lang.String getDatasetKey()
getDatasetKey
in class RMShape
public void setDatasetKey(java.lang.String aKeyPath)
public boolean getPaintBackground()
public void setPaintBackground(boolean aValue)
public boolean getClipChildren()
public void setClipChildren(boolean aValue)
public int getLayerCount()
public RMPageLayer getLayer(int anIndex)
public java.util.List<RMPageLayer> getLayers()
public void addLayer(RMPageLayer aLayer)
public void addLayer(RMPageLayer aLayer, int anIndex)
public RMPageLayer removeLayer(int anIndex)
public int removeLayer(RMPageLayer aLayer)
public RMPageLayer getLayer(java.lang.String aString)
public void addLayerNamed(java.lang.String aString)
public void moveLayer(int fromIndex, int toIndex)
public RMPageLayer getChildLayer(RMShape aChild)
public int getSelectedLayerIndex()
public RMPageLayer getSelectedLayer()
public void selectLayer(RMPageLayer aLayer)
public void selectLayer(java.lang.String aString)
public void resetLayers()
public RMPage.Plexing getPlexing()
public void setPlexing(RMPage.Plexing aPlexing)
public void addChild(RMShape aChild, int anIndex)
public RMShape removeChild(int anIndex)
removeChild
in class RMShape
public void bringShapesToFront(java.util.List shapes)
bringShapesToFront
in class RMShape
public void sendShapesToBack(java.util.List shapes)
sendShapesToBack
in class RMShape
public void moveToNewLayer(java.util.List shapes)
public boolean isVisibleChild(RMShape aChild)
isVisibleChild
in class RMShape
public boolean isHittableChild(RMShape aChild)
isHittableChild
in class RMShape
public RMShape getPageShape()
getPageShape
in class RMShape
public RMAnimator getChildAnimator(boolean create)
getChildAnimator
in class RMShape
public int page()
public int pageMax()
public void paintShape(java.awt.Graphics2D aGraphics)
paintShape
in class RMShape
public void paintShapeChildren(java.awt.Graphics2D aGraphics)
paintShapeChildren
in class RMShape
public void setReportMill(ReportMill aReportMill)
setReportMill
in class RMShape
public int getPartCount()
getPartCount
in class RMShape
public RMPage getPart(int anIndex)
public int getPartDeepCount()
getPartDeepCount
in class RMShape
public RMPage getPartDeep(int anIndex, ReportMill aReportMill)
getPartDeep
in class RMShape
public RMShapeLayout createLayout()
public boolean equals(java.lang.Object anObj)
public com.reportmill.archiver.RXElement toXMLShape(com.reportmill.archiver.RXArchiver anArchiver, java.lang.Object anOwner)
toXMLShape
in class RMShape
public void toXMLShapeChildren(com.reportmill.archiver.RXArchiver anArchiver, com.reportmill.archiver.RXElement anElement, java.lang.Object anOwner)
toXMLShapeChildren
in class RMShape
public java.lang.Object fromXMLShape(com.reportmill.archiver.RXArchiver anArchiver, com.reportmill.archiver.RXElement anElement, java.lang.Object anOwner)
fromXMLShape
in class RMShape
public void fromXMLShapeChildren(com.reportmill.archiver.RXArchiver anArchiver, com.reportmill.archiver.RXElement anElement, java.lang.Object anOwner)
fromXMLShapeChildren
in class RMShape
public boolean acceptsChildren()
acceptsChildren
in class RMShape
public boolean superSelectable()
superSelectable
in class RMShape