Package com.inductiveautomation.rm.shape
Class RMTableRPG
- 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.RMTableRPG
 
 
 
 
 
- 
- All Implemented Interfaces:
- Archivable,- DeepChangeListener,- RMPropertyChanger,- RMTypes,- java.beans.PropertyChangeListener,- java.lang.Cloneable,- java.util.EventListener
 
 public class RMTableRPG extends RMParentShape Performs RPG for a table.
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from interface com.inductiveautomation.rm.base.RMTypesRMTypes.Align, RMTypes.AlignX, RMTypes.AlignY
 
- 
 - 
Field Summary- 
Fields inherited from class com.inductiveautomation.rm.shape.RMShapeBINDING_PROP_NAME, STROKE_BORDER, STROKE_DOUBLE, STROKE_HIDDEN, STROKE_SHAPE
 
- 
 - 
Constructor SummaryConstructors Constructor Description RMTableRPG(ReportOwner anRptOwner, RMTable aTable)Creates a new RMTableRPG for ReportOwner and Table.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description protected RMTableRPGaddPage()Adds a new page.protected booleanaddRows(RMGroup aGroup, RMTableRowRPG aParentRPG, RMTableRowRPG theLastRow)Adds table rows for a group.protected booleanaddRowsExtra(RMGroup aGroup, RMTableRowRPG aParentRPG, RMTableRowRPG theLastRow)A hook to add extra rows or such at bottom of table.protected doublecomputePrefHeight(double aWidth)Override to return PrefHeight is not paginating.protected RMTableRPGcreatePage()Creates a page.intgetColumnCount()doublegetColumnSpacing()protected RMGroupgetGroup(RMTable aTable)Returns the group for a given table.intgetPageBreak()Returns the page breakintgetPageBreakMax()Returns the page break max.intgetPageBreakPage()Returns the page break page.intgetPageBreakPageMax()Returns the page break page max.RMTableRPGgetPageLast()Returns the last page.booleangetStrokeOnTop()Override to paint table stroke on top.protected RMTableRPGmakeColumns()This method moves each groups the resulting set of table pages into a parent shape to accommodate aTable's getNumberOfColumns (spaced by its getColumnSpacing).protected voidmoveRowsToBottom()Scoots any rows that request it to the bottom of the page.RMShaperpgAll()Do RPG.protected org.apache.commons.lang3.tuple.Pair<java.lang.Integer,java.lang.String>rpgTable(RMTable aTable)Performs RPG.protected voidrpgWithScaling(RMTable table)voidsetColumnCount(int aValue)voidsetColumnSpacing(double aValue)booleansuperSelectable()Override to make selectable.- 
Methods inherited from class com.inductiveautomation.rm.shape.RMParentShapeaddChild, addChild, addChild, addChild, addLayoutChild, bringShapesToFront, clone, cloneDeep, computePrefWidth, divideShapeFromTop, fromXML, fromXMLChildren, fromXMLShape, getBoundsOfChildren, getChild, getChildArray, getChildContaining, getChildCount, getChildLast, getChildren, getChildrenIntersecting, getChildrenWithClass, getChildrenWithClass, getChildWithClass, getChildWithName, getLayout, getNeedsLayout, getSourceURL, indexOfChild, isHittable, isShowing, isSourceURLSet, layout, layoutChildren, relayout, removeChild, removeChild, removeChildren, removeLayoutChild, rpgAll, rpgChildren, sendShapesToBack, setHeight, setLayout, setNeedsLayout, setSourceURL, setWidth, toXML, toXMLChildren, toXMLShape
 - 
Methods inherited from class com.inductiveautomation.rm.shape.RMShapeacceptsChildren, acceptsMouse, addBinding, addBinding, addDeepChangeListener, addMouseListener, animUpdate, bounds, childrenSuperSelectImmediately, 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, getAutosizingDefault, getBestHeight, getBestHeight, getBestWidth, getBestWidth, getBinding, getBinding, getBindingCount, getBindings, getBounds, getBoundsInside, getBoundsMarked, getBoundsMarkedDeep, getChildAnimator, getChildAnimator, getChildClipShape, getClipShape, getColor, getDashArrayString, getDashPhase, getDatasetEntity, getDatasetKey, getDisplayedFill, getDisplayedStroke, getDocument, getEffect, getEventAdapter, getFill, getFont, getFormat, getFrame, getFrameHeight, getFrameMaxX, getFrameMaxY, getFrameWidth, getFrameX, getFrameXY, getFrameY, getHeight, getHover, getLayoutInfo, getMaskPath, getMaxX, getMaxY, getMinHeight, getMinHeight, getMinWidth, getMinWidth, getName, getOpacity, getOpacityDeep, getOutline, 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, 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, isDeletable, 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, paintShape, 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, setFont, 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
 
- 
 
- 
- 
- 
Constructor Detail- 
RMTableRPGpublic RMTableRPG(ReportOwner anRptOwner, RMTable aTable) Creates a new RMTableRPG for ReportOwner and Table.
 
- 
 - 
Method Detail- 
rpgAllpublic RMShape rpgAll() Do RPG.- Returns:
- the RMShape or ReportOwner.ShapeListthat contains the Table's shapes after generation. Will not be null
 
 - 
rpgWithScalingprotected void rpgWithScaling(RMTable table) 
 - 
rpgTableprotected org.apache.commons.lang3.tuple.Pair<java.lang.Integer,java.lang.String> rpgTable(RMTable aTable) Performs RPG. Returns the string of a failed table row or an empty string if successful. Table rows will fail if they cannot be successfully split or there is no available room left on the page or table to squeeze even one details row in. This is usually due to a poorly designed table on the users part, but it is accounted for anyways.- Parameters:
- aTable- the RMTable object to rpg. Must not be null
- Returns:
- the failed row's title (ex: static_data Header) or "" if successful
 
 - 
getPageLastpublic RMTableRPG getPageLast() Returns the last page.
 - 
addPageprotected RMTableRPG addPage() Adds a new page.
 - 
createPageprotected RMTableRPG createPage() Creates a page.
 - 
addRowsprotected boolean addRows(RMGroup aGroup, RMTableRowRPG aParentRPG, RMTableRowRPG theLastRow) Adds table rows for a group.
 - 
addRowsExtraprotected boolean addRowsExtra(RMGroup aGroup, RMTableRowRPG aParentRPG, RMTableRowRPG theLastRow) A hook to add extra rows or such at bottom of table.
 - 
moveRowsToBottomprotected void moveRowsToBottom() Scoots any rows that request it to the bottom of the page.
 - 
makeColumnsprotected RMTableRPG makeColumns() This method moves each groups the resulting set of table pages into a parent shape to accommodate aTable's getNumberOfColumns (spaced by its getColumnSpacing). tables for each explicit page break into encompassing shapes that hold numberOfColumns tables (spaced apart by _columnSpacing).
 - 
getPageBreakpublic int getPageBreak() Returns the page break- Overrides:
- getPageBreakin class- RMShape
 
 - 
getPageBreakMaxpublic int getPageBreakMax() Returns the page break max.- Overrides:
- getPageBreakMaxin class- RMShape
 
 - 
getPageBreakPagepublic int getPageBreakPage() Returns the page break page.- Overrides:
- getPageBreakPagein class- RMShape
 
 - 
getPageBreakPageMaxpublic int getPageBreakPageMax() Returns the page break page max.- Overrides:
- getPageBreakPageMaxin class- RMShape
 
 - 
getColumnCountpublic int getColumnCount() 
 - 
setColumnCountpublic void setColumnCount(int aValue) 
 - 
getColumnSpacingpublic double getColumnSpacing() 
 - 
setColumnSpacingpublic void setColumnSpacing(double aValue) 
 - 
computePrefHeightprotected double computePrefHeight(double aWidth) Override to return PrefHeight is not paginating.- Overrides:
- computePrefHeightin class- RMParentShape
 
 - 
getStrokeOnToppublic boolean getStrokeOnTop() Override to paint table stroke on top.- Overrides:
- getStrokeOnTopin class- RMShape
 
 - 
superSelectablepublic boolean superSelectable() Override to make selectable.- Overrides:
- superSelectablein class- RMShape
 
 
- 
 
-