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,- PropertyChangeListener,- Cloneable,- EventListener
Performs RPG for a table.
- 
Nested Class SummaryNested classes/interfaces inherited from interface com.inductiveautomation.rm.base.RMTypesRMTypes.Align, RMTypes.AlignX, RMTypes.AlignY
- 
Field SummaryFields inherited from class com.inductiveautomation.rm.shape.RMShapeBINDING_PROP_NAME, STROKE_BORDER, STROKE_DOUBLE, STROKE_HIDDEN, STROKE_SHAPE
- 
Constructor SummaryConstructorsConstructorDescriptionRMTableRPG(ReportOwner anRptOwner, RMTable aTable) Creates a new RMTableRPG for ReportOwner and Table.
- 
Method SummaryModifier and TypeMethodDescriptionprotected 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 RMTableRPGCreates a page.intdoubleprotected RMGroupReturns the group for a given table.intReturns the page breakintReturns the page break max.intReturns the page break page.intReturns the page break page max.Returns the last page.booleanOverride to paint table stroke on top.protected RMTableRPGThis method moves each groups the resulting set of table pages into a parent shape to accommodate aTable's getNumberOfColumns (spaced by its getColumnSpacing).protected voidScoots any rows that request it to the bottom of the page.rpgAll()Do RPG.Performs RPG.protected voidrpgWithScaling(RMTable table) voidsetColumnCount(int aValue) voidsetColumnSpacing(double aValue) voidsetFilterKey(String aKeyExpr) booleanOverride 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, toXMLShapeMethods 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, yMethods inherited from class com.inductiveautomation.rm.base.RMObjectaddPropertyChangeListener, firePropertyChange, firePropertyChange, firePropertyChange, getPCEvent, removePropertyChangeListener, sendPropertyChangeMethods inherited from class com.inductiveautomation.rm.base.RMListenerListaddListener, getListener, getListenerCount, getListenerCount, getListenerList, getListeners, hasListeners, removeListener
- 
Constructor Details- 
RMTableRPGCreates a new RMTableRPG for ReportOwner and Table.
 
- 
- 
Method Details- 
rpgAllDo RPG.- Returns:
- the RMShape or ReportOwner.ShapeListthat contains the Table's shapes after generation. Will not be null
 
- 
rpgWithScaling
- 
rpgTablePerforms 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
 
- 
getGroupReturns the group for a given table.
- 
getPageLastReturns the last page.
- 
addPageAdds a new page.
- 
createPageCreates a page.
- 
addRowsAdds table rows for a group.
- 
addRowsExtraA 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.
- 
makeColumnsThis 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) 
- 
getFilterKey
- 
setFilterKey
- 
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
 
 
-