Package com.inductiveautomation.rm.shape
Class RMCrossTab
- 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.RMCrossTab
 
 
 
 
 
- 
- All Implemented Interfaces:
- Archivable,- DeepChangeListener,- RMPropertyChanger,- RMTypes,- RMShapeSelfInit,- java.beans.PropertyChangeListener,- java.lang.Cloneable,- java.util.EventListener
 
 public class RMCrossTab extends RMParentShape implements RMShapeSelfInit Manages a table of RMCells, which is really a stack of RMCellRows.
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from interface com.inductiveautomation.rm.base.RMTypesRMTypes.Align, RMTypes.AlignX, RMTypes.AlignY
 
- 
 - 
Field SummaryFields Modifier and Type Field Description static intCLASSIC1static intCLASSIC2static intCLASSIC3static intCLASSIC4static intDEFAULTstatic intDEFAULT_STYLEstatic intELEGANTstatic intGRID1static intGRID2static intGRID3static intGRID4static intGRID5static intGRID6static intGRID7static intGRID8static intLIST1static intLIST2static intLIST3static intLIST4static intLIST5static intLIST6static intNONEstatic intPROFESSIONALstatic intSIMPLE1static intSIMPLE2static intSIMPLE3- 
Fields inherited from class com.inductiveautomation.rm.shape.RMShapeBINDING_PROP_NAME, STROKE_BORDER, STROKE_DOUBLE, STROKE_HIDDEN, STROKE_SHAPE
 
- 
 - 
Constructor SummaryConstructors Constructor Description RMCrossTab()Creates a new RMCrossTab.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddCol()Adds a column.voidaddCol(int anIndex)Adds a column.voidaddCol(RMCrossTabCol aCol, int anIndex)Adds a column at the given index.voidaddRow()Adds a row.voidaddRow(int anIndex)Adds a row at given index.voidaddRow(RMCrossTabRow aRow, int anIndex)Adds a row at the given index.voidapplyCellFormatting(RMCrossTabCell aSourceCell, RMCrossTabCell aDestCell)Copy all relevant cell formatting options from source to destination.voidapplyFormatting(int styleIndex)RMCrossTabclone()Standard clone implementation.RMCrossTabcloneDeep()Clone deep.RMShapedivideShapeFromTop(double anAmount)Divides the shape by a given amount from the top.protected voidfromXMLShape(RXArchiver anArchiver, RXElement anElement)XML unarchival.RMCrossTabCellgetCell(int aRow, int aColumn)Returns the cell at the given row and column indexes.intgetCol(double anX)Returns the specific column index for the given point.RMCrossTabColgetCol(int anIndex)Returns the specific column at the given index.intgetColumnCount()Returns the number of rows for this table.java.lang.StringgetDatasetKey()Returns the dataset key.intgetDisplayColumnCount()intgetDisplayRowCount()java.lang.StringgetFilterKey()Returns the optional key chain expression string used to prune the table list derived from dataset key.intgetFormatStyle()intgetHeaderColumnCount()Returns the number header columns for table.intgetHeaderRowCount()Returns the number of header rows for table.protected voidgetPropertyNames(java.util.List<java.lang.String> aList)Returns the property names for crosstab.intgetRow(double aY)Returns the specific row index for the given point.RMCrossTabRowgetRow(int anIndex)Returns the specific row at the given index.intgetRowCount()Returns the number of rows.booleanisDeletable()Override this for shapes (like a table row) that don't don't make sense to delete by themselves.protected voidlayoutChildren()Relays out table rows, columns and cells.voidmergeCells(int aRow1, int aCol1, int aRow2, int aCol2)Merges a range of cells into one cell.RMCrossTabColremoveCol(int anIndex)Removes the column at the given index.RMCrossTabRowremoveRow(int anIndex)Removes the row at the given index.RMShaperpgAll(ReportOwner anRptOwner, RMShape aParent)Sets a reportmill for this crosstab (which really gets the dataset and calls setObjects).voidselfInit()protected voidsetCell(RMCrossTabCell aCell, int aRow, int aCol, int aRowSpan, int aColSpan)Sets the cell at the given row and column indexes.voidsetColumnCount(int aColumnCount)Sets the number of columns for this table.voidsetDatasetKey(java.lang.String aKey)Sets the dataset key.voidsetDisplayColumnCount(int cols)voidsetDisplayRowCount(int rows)voidsetFilterKey(java.lang.String aKeyExpr)Sets the optional key chain expression string used to prune the table list derived from dataset key.voidsetFormatStyle(int formatStyle)voidsetHeaderColumnCount(int aCount)Sets the number header columns for table.voidsetHeaderRowCount(int aCount)Sets the number of header rows for table.voidsetRowCount(int aRowCount)Sets the number of rows.voidsplitCell(RMCrossTabCell aCell)Splits a cell.protected voidtoXMLChildren(RXArchiver anArchiver, RXElement anElement)XML archival - override to suppress archival of children.protected RXElementtoXMLShape(RXArchiver anArchiver)XML archival.- 
Methods inherited from class com.inductiveautomation.rm.shape.RMParentShapeaddChild, addChild, addChild, addChild, addLayoutChild, bringShapesToFront, computePrefHeight, computePrefWidth, 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, rpgChildren, sendShapesToBack, setHeight, setLayout, setNeedsLayout, setSourceURL, setWidth, toXML
 - 
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, 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, getPageBreak, getPageBreakMax, getPageBreakPage, getPageBreakPageMax, getPageShape, getParent, getParent, getPath, getPathInBounds, getPrefHeight, getPrefHeight, getPrefWidth, getPrefWidth, getPropertyNameMapped, 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, 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, superSelectable, 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_STYLEpublic static final int DEFAULT_STYLE - See Also:
- Constant Field Values
 
 - 
NONEpublic static final int NONE - See Also:
- Constant Field Values
 
 - 
CLASSIC1public static final int CLASSIC1 - See Also:
- Constant Field Values
 
 - 
CLASSIC2public static final int CLASSIC2 - See Also:
- Constant Field Values
 
 - 
CLASSIC3public static final int CLASSIC3 - See Also:
- Constant Field Values
 
 - 
CLASSIC4public static final int CLASSIC4 - See Also:
- Constant Field Values
 
 - 
DEFAULTpublic static final int DEFAULT - See Also:
- Constant Field Values
 
 - 
ELEGANTpublic static final int ELEGANT - See Also:
- Constant Field Values
 
 - 
GRID1public static final int GRID1 - See Also:
- Constant Field Values
 
 - 
GRID2public static final int GRID2 - See Also:
- Constant Field Values
 
 - 
GRID3public static final int GRID3 - See Also:
- Constant Field Values
 
 - 
GRID4public static final int GRID4 - See Also:
- Constant Field Values
 
 - 
GRID5public static final int GRID5 - See Also:
- Constant Field Values
 
 - 
GRID6public static final int GRID6 - See Also:
- Constant Field Values
 
 - 
GRID7public static final int GRID7 - See Also:
- Constant Field Values
 
 - 
GRID8public static final int GRID8 - See Also:
- Constant Field Values
 
 - 
LIST1public static final int LIST1 - See Also:
- Constant Field Values
 
 - 
LIST2public static final int LIST2 - See Also:
- Constant Field Values
 
 - 
LIST3public static final int LIST3 - See Also:
- Constant Field Values
 
 - 
LIST4public static final int LIST4 - See Also:
- Constant Field Values
 
 - 
LIST5public static final int LIST5 - See Also:
- Constant Field Values
 
 - 
LIST6public static final int LIST6 - See Also:
- Constant Field Values
 
 - 
PROFESSIONALpublic static final int PROFESSIONAL - See Also:
- Constant Field Values
 
 - 
SIMPLE1public static final int SIMPLE1 - See Also:
- Constant Field Values
 
 - 
SIMPLE2public static final int SIMPLE2 - See Also:
- Constant Field Values
 
 - 
SIMPLE3public static final int SIMPLE3 - See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
selfInitpublic void selfInit() - Specified by:
- selfInitin interface- RMShapeSelfInit
 
 - 
getDatasetKeypublic java.lang.String getDatasetKey() Returns the dataset key.- Overrides:
- getDatasetKeyin class- RMShape
 
 - 
setDatasetKeypublic void setDatasetKey(java.lang.String aKey) Sets the dataset key.
 - 
getFilterKeypublic java.lang.String getFilterKey() Returns the optional key chain expression string used to prune the table list derived from dataset key.
 - 
setFilterKeypublic void setFilterKey(java.lang.String aKeyExpr) Sets the optional key chain expression string used to prune the table list derived from dataset key.
 - 
setFormatStylepublic void setFormatStyle(int formatStyle) 
 - 
getFormatStylepublic int getFormatStyle() 
 - 
getRowCountpublic int getRowCount() Returns the number of rows.
 - 
setRowCountpublic void setRowCount(int aRowCount) Sets the number of rows.
 - 
getRowpublic RMCrossTabRow getRow(int anIndex) Returns the specific row at the given index.
 - 
addRowpublic void addRow() Adds a row.
 - 
addRowpublic void addRow(int anIndex) Adds a row at given index.
 - 
addRowpublic void addRow(RMCrossTabRow aRow, int anIndex) Adds a row at the given index. If reference row index is provided, the referenced row object is copied for new row. If reference column index is provided, previous columns cells are merged, successive column cells are cloned.
 - 
removeRowpublic RMCrossTabRow removeRow(int anIndex) Removes the row at the given index.
 - 
getColpublic RMCrossTabCol getCol(int anIndex) Returns the specific column at the given index.
 - 
addColpublic void addCol() Adds a column.
 - 
addColpublic void addCol(int anIndex) Adds a column.
 - 
addColpublic void addCol(RMCrossTabCol aCol, int anIndex) Adds a column at the given index. If reference column index is provided, the referenced column object is copied for new column. If reference row index is provided, previous row cells are merged, successive row cells are cloned.
 - 
removeColpublic RMCrossTabCol removeCol(int anIndex) Removes the column at the given index.
 - 
getRowpublic int getRow(double aY) Returns the specific row index for the given point.
 - 
getColpublic int getCol(double anX) Returns the specific column index for the given point.
 - 
getCellpublic RMCrossTabCell getCell(int aRow, int aColumn) Returns the cell at the given row and column indexes.
 - 
setCellprotected void setCell(RMCrossTabCell aCell, int aRow, int aCol, int aRowSpan, int aColSpan) Sets the cell at the given row and column indexes.
 - 
setDisplayRowCountpublic void setDisplayRowCount(int rows) 
 - 
getDisplayRowCountpublic int getDisplayRowCount() 
 - 
setDisplayColumnCountpublic void setDisplayColumnCount(int cols) 
 - 
getDisplayColumnCountpublic int getDisplayColumnCount() 
 - 
getHeaderRowCountpublic int getHeaderRowCount() Returns the number of header rows for table.
 - 
setHeaderRowCountpublic void setHeaderRowCount(int aCount) Sets the number of header rows for table.
 - 
getHeaderColumnCountpublic int getHeaderColumnCount() Returns the number header columns for table.
 - 
setHeaderColumnCountpublic void setHeaderColumnCount(int aCount) Sets the number header columns for table.
 - 
mergeCellspublic void mergeCells(int aRow1, int aCol1, int aRow2, int aCol2)Merges a range of cells into one cell.
 - 
splitCellpublic void splitCell(RMCrossTabCell aCell) Splits a cell.
 - 
layoutChildrenprotected void layoutChildren() Relays out table rows, columns and cells.- Overrides:
- layoutChildrenin class- RMParentShape
 
 - 
getColumnCountpublic int getColumnCount() Returns the number of rows for this table.
 - 
setColumnCountpublic void setColumnCount(int aColumnCount) Sets the number of columns for this table.
 - 
rpgAll@Nonnull public RMShape rpgAll(ReportOwner anRptOwner, RMShape aParent) Sets a reportmill for this crosstab (which really gets the dataset and calls setObjects).- Overrides:
- rpgAllin class- RMParentShape
 
 - 
divideShapeFromTop@Nonnull public RMShape divideShapeFromTop(double anAmount) Divides the shape by a given amount from the top. Returns a clone of the given shape with bounds set to the remainder. Divides children among the two shapes (recursively calling divide shape for those straddling).- Overrides:
- divideShapeFromTopin class- RMParentShape
 
 - 
getPropertyNamesprotected void getPropertyNames(java.util.List<java.lang.String> aList) Returns the property names for crosstab.- Overrides:
- getPropertyNamesin class- RMShape
 
 - 
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
 
 - 
clonepublic RMCrossTab clone() Standard clone implementation.- Overrides:
- clonein class- RMParentShape
 
 - 
cloneDeeppublic RMCrossTab cloneDeep() Clone deep.- Overrides:
- cloneDeepin class- RMParentShape
 
 - 
toXMLShapeprotected RXElement toXMLShape(RXArchiver anArchiver) XML archival.- Overrides:
- toXMLShapein class- RMParentShape
 
 - 
applyFormattingpublic void applyFormatting(int styleIndex) 
 - 
applyCellFormattingpublic void applyCellFormatting(RMCrossTabCell aSourceCell, RMCrossTabCell aDestCell) Copy all relevant cell formatting options from source to destination.
 - 
toXMLChildrenprotected void toXMLChildren(RXArchiver anArchiver, RXElement anElement) XML archival - override to suppress archival of children.- Overrides:
- toXMLChildrenin class- RMParentShape
 
 - 
fromXMLShapeprotected void fromXMLShape(RXArchiver anArchiver, RXElement anElement) XML unarchival.- Overrides:
- fromXMLShapein class- RMParentShape
 
 
- 
 
-