Package com.inductiveautomation.rm.shape
Class RMCrossTabCell
- java.lang.Object
-
- All Implemented Interfaces:
Archivable,DeepChangeListener,RMPropertyChanger,RMTypes,java.beans.PropertyChangeListener,java.lang.Cloneable,java.util.EventListener
public class RMCrossTabCell extends RMTextShape
A text shape subclass used to form the basis of a table.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.inductiveautomation.rm.base.RMTypes
RMTypes.Align, RMTypes.AlignX, RMTypes.AlignY
-
-
Field Summary
-
Fields inherited from class com.inductiveautomation.rm.shape.RMTextShape
WRAP_BASIC, WRAP_NONE, WRAP_SCALE
-
Fields inherited from class com.inductiveautomation.rm.shape.RMShape
BINDING_PROP_NAME, STROKE_BORDER, STROKE_DOUBLE, STROKE_HIDDEN, STROKE_SHAPE
-
-
Constructor Summary
Constructors Constructor Description RMCrossTabCell()Creates a new RMCrossTabCell.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclearContents()Clears the text and grouping from this cell.RMCrossTabCellclone()Standard clone implementation.RMXStringcreateXString()Override to create an xstring that is aligned center by default.java.lang.ObjectfromXML(RXArchiver anArchiver, RXElement anElement)XML unarchival.RMCrossTabCellgetCellAbove()Returns the cell just above this cell.RMCrossTabCellgetCellAfter()Returns the cell after, or to the right of, this cell.RMCrossTabCellgetCellBefore()Returns the cell before, or to the left of, this cell.RMCrossTabCellgetCellBelow()Returns the cell just below this cell.intgetCol()Returns the column of this cell.intgetColEnd()Returns the end column of this cell.intgetColSpan()Returns the number of columns this cell spans.RMGroupgetGroup()Returns the group for this cell.RMGroupinggetGrouping()Returns the grouping.java.lang.StringgetGroupingKey()java.awt.InsetsgetMarginDefault()Returns the default text margin for RMCell (top=5, left=5, right=5, bottom=5).intgetRow()Returns the row of this cell.intgetRowEnd()Returns the end row of this cell.intgetRowSpan()Returns the number of rows this cell spans.booleangetShowBottomBorder()Returns whether cell shows bottom border.booleangetShowLeftBorder()Returns whether cell shows left border.booleangetShowRightBorder()Returns whether cell shows right border.booleangetShowTopBorder()Returns whether cell shows top border.RMCrossTabgetTable()Returns the table for this cell.booleanisColumnHeader()Returns whether this cell is a column header cell.booleanisDeletable()Override this for shapes (like a table row) that don't don't make sense to delete by themselves.booleanisRowHeader()Returns whether this cell is a row header cell.voidpaintShape(RMShapePainter aPntr)Handles painting a crosstab cell.protected voidsetGroup(RMGroup aGroup)Sets the group for this cell.voidsetGrouping(RMGrouping aGrouping)Sets the grouping.voidsetGroupingKey(java.lang.String key)voidsetShowBorders(boolean left, boolean right, boolean top, boolean bottom)Convenience method to set all borders at oncevoidsetShowBottomBorder(boolean aFlag)Sets whether cell shows bottom border.voidsetShowLeftBorder(boolean aFlag)Sets whether cell shows left border.voidsetShowRightBorder(boolean aFlag)Sets whether cell shows right border.voidsetShowTopBorder(boolean aFlag)Sets whether cell shows top border.RXElementtoXML(RXArchiver anArchiver)XML archival.-
Methods inherited from class com.inductiveautomation.rm.shape.RMTextShape
computePrefHeight, computePrefWidth, copyText, createDivideShapeRemainder, createTextLayout, fromXMLFinish, getAlignmentX, getAlignmentY, getAlignString, getAutosizingDefault, getCharSpacing, getCoalesceNewlines, getDateFormat, getDrawsSelectionRect, getFont, getLineGap, getLineHeightMax, getLineHeightMin, getLineSpacing, getLinkedText, getMargin, getMarginBottom, getMarginLeft, getMarginRight, getMarginString, getMarginTop, getMaskPath, getNegativeInRed, getNullFormat, getNumberFormat, getOutline, getPath, getPathInBounds, getPathInBounds, getPathShape, getPerformsWrap, getPropertyNames, getText, getTextColor, getTextLayout, getVisibleEnd, getVisibleStart, getWraps, getXString, isAllTextVisible, isStructured, isUnderlined, length, paginate, paintShapeBack, paintShapeText, paintTextRun, peerDidChange, propertyChange, resolvePageReferences, revalidate, rpgShape, scaleFonts, setAlignmentX, setAlignmentY, setCharSpacing, setCoalesceNewlines, setDateFormat, setDrawsSelectionRect, setFont, setFormat, setHeight, setLineGap, setLineHeightMax, setLineHeightMin, setLineSpacing, setLinkedText, setMargin, setMarginString, setNegativeInRed, setNullFormat, setNumberFormat, setOutline, setPathShape, setPerformsWrap, setRadius, setText, setTextColor, setUnderlined, setWidth, setWraps, setXString, superSelectable, toString
-
Methods inherited from class com.inductiveautomation.rm.shape.RMRectShape
getRadius
-
Methods inherited from class com.inductiveautomation.rm.shape.RMShape
acceptsChildren, acceptsMouse, addBinding, addBinding, addDeepChangeListener, addMouseListener, animUpdate, bounds, childrenSuperSelectImmediately, cloneDeep, contains, convertedPointFromShape, convertedPointToShape, convertedRectFromShape, convertedRectToShape, convertedVectorFromShape, convertedVectorToShape, convertFromShape, convertPathFromShape, convertPathToShape, convertPointFromShape, convertPointToShape, convertRectFromShape, convertRectToShape, convertToShape, convertVectorFromShape, convertVectorToShape, copyShape, deepChange, divideShapeFromEdge, divideShapeFromTop, get, get, getAlignment, getAncestor, getAncestorCount, getAncestorInCommon, getAnimator, getAnimator, getAutosizing, getBestHeight, getBestHeight, getBestWidth, getBestWidth, getBinding, getBinding, getBindingCount, getBindings, getBounds, getBoundsInside, getBoundsMarked, getBoundsMarkedDeep, getChild, getChildAnimator, getChildAnimator, getChildClipShape, getChildCount, getChildren, getClipShape, getColor, getDashArrayString, getDashPhase, getDatasetEntity, getDatasetKey, getDisplayedFill, getDisplayedStroke, getDocument, getEffect, getEventAdapter, getFill, getFormat, getFrame, getFrameHeight, getFrameMaxX, getFrameMaxY, getFrameWidth, getFrameX, getFrameXY, getFrameY, getHeight, getHover, getLayoutInfo, getMaxX, getMaxY, getMinHeight, getMinHeight, getMinWidth, getMinWidth, getName, getOpacity, getOpacityDeep, getPageBreak, getPageBreakMax, getPageBreakPage, getPageBreakPageMax, getPageShape, getParent, getParent, getPrefHeight, getPrefHeight, getPrefWidth, getPrefWidth, getPropertyNameMapped, getPropertyNames, getRoll, getRootShape, getRSS, getScaleX, getScaleY, getShapesToAncestor, getShapesToDescendant, getShapesToShape, getSize, getSkewX, getSkewY, getStroke, getStrokeColor, getStrokeOnTop, getStrokeStyle, getStrokeWidth, 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, isUseFill, isUseStroke, isViewing, isVisible, mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, offsetXY, page, pageMax, paint, paintShapeAll, paintShapeChildren, paintShapeOver, put, removeBinding, removeBinding, removeDeepChangeListener, removeFromParent, removeMouseListener, repaint, repaint, rpgAll, rpgBindings, setAlignment, setAutosizing, setBestHeight, setBestSize, setBounds, setBounds, setColor, setDashArrayString, setDashPhase, setEffect, setEnabled, setFill, setFrame, setFrame, setFrameSize, setFrameX, setFrameXY, setFrameXY, setFrameY, setHover, setLayoutInfo, setLocked, setMinHeight, setMinSize, setMinWidth, setName, setOpacity, setParent, setPrefHeight, setPrefWidth, setRoll, setScaleX, setScaleXY, setScaleY, setShowing, setSize, setSize, setSkewX, setSkewXY, setSkewY, setStroke, setStrokeColor, setStrokeStyle, setStrokeWidth, setTime, setTimeline, setURL, setUseFill, setUseStroke, setVisible, setX, setXY, setXY, setXYP, setY, shapeHidden, shapeShown, undoerDisable, undoerEnable, undoerSetUndoTitle, width, x, y
-
Methods inherited from class com.inductiveautomation.rm.base.RMObject
addPropertyChangeListener, firePropertyChange, firePropertyChange, firePropertyChange, getPCEvent, removePropertyChangeListener, sendPropertyChange
-
Methods inherited from class com.inductiveautomation.rm.base.RMListenerList
addListener, getListener, getListenerCount, getListenerCount, getListenerList, getListeners, hasListeners, removeListener
-
-
-
-
Method Detail
-
createXString
public RMXString createXString()
Override to create an xstring that is aligned center by default.- Overrides:
createXStringin classRMTextShape
-
getTable
public RMCrossTab getTable()
Returns the table for this cell.
-
getRow
public int getRow()
Returns the row of this cell.
-
getCol
public int getCol()
Returns the column of this cell.
-
getColSpan
public int getColSpan()
Returns the number of columns this cell spans.
-
getRowSpan
public int getRowSpan()
Returns the number of rows this cell spans.
-
getRowEnd
public int getRowEnd()
Returns the end row of this cell.
-
getShowLeftBorder
public boolean getShowLeftBorder()
Returns whether cell shows left border.
-
setShowLeftBorder
public void setShowLeftBorder(boolean aFlag)
Sets whether cell shows left border.
-
getShowRightBorder
public boolean getShowRightBorder()
Returns whether cell shows right border.
-
setShowRightBorder
public void setShowRightBorder(boolean aFlag)
Sets whether cell shows right border.
-
getShowTopBorder
public boolean getShowTopBorder()
Returns whether cell shows top border.
-
setShowTopBorder
public void setShowTopBorder(boolean aFlag)
Sets whether cell shows top border.
-
getShowBottomBorder
public boolean getShowBottomBorder()
Returns whether cell shows bottom border.
-
setShowBottomBorder
public void setShowBottomBorder(boolean aFlag)
Sets whether cell shows bottom border.
-
setShowBorders
public void setShowBorders(boolean left, boolean right, boolean top, boolean bottom)Convenience method to set all borders at once
-
getGrouping
public RMGrouping getGrouping()
Returns the grouping.
-
setGrouping
public void setGrouping(RMGrouping aGrouping)
Sets the grouping.
-
getGroupingKey
public java.lang.String getGroupingKey()
-
setGroupingKey
public void setGroupingKey(java.lang.String key)
-
getGroup
public RMGroup getGroup()
Returns the group for this cell.
-
setGroup
protected void setGroup(RMGroup aGroup)
Sets the group for this cell.
-
getColEnd
public int getColEnd()
Returns the end column of this cell.
-
getCellBefore
public RMCrossTabCell getCellBefore()
Returns the cell before, or to the left of, this cell.
-
getCellAfter
public RMCrossTabCell getCellAfter()
Returns the cell after, or to the right of, this cell.
-
getCellAbove
public RMCrossTabCell getCellAbove()
Returns the cell just above this cell.
-
getCellBelow
public RMCrossTabCell getCellBelow()
Returns the cell just below this cell.
-
isColumnHeader
public boolean isColumnHeader()
Returns whether this cell is a column header cell.
-
isRowHeader
public boolean isRowHeader()
Returns whether this cell is a row header cell.
-
getMarginDefault
public java.awt.Insets getMarginDefault()
Returns the default text margin for RMCell (top=5, left=5, right=5, bottom=5).- Overrides:
getMarginDefaultin classRMTextShape
-
clearContents
public void clearContents()
Clears the text and grouping from this cell.
-
paintShape
public void paintShape(RMShapePainter aPntr)
Handles painting a crosstab cell.- Overrides:
paintShapein classRMTextShape
-
isDeletable
public 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 classRMTextShape
-
clone
public RMCrossTabCell clone()
Standard clone implementation.- Overrides:
clonein classRMTextShape
-
toXML
public RXElement toXML(RXArchiver anArchiver)
XML archival.- Specified by:
toXMLin interfaceArchivable- Overrides:
toXMLin classRMTextShape
-
fromXML
public java.lang.Object fromXML(RXArchiver anArchiver, RXElement anElement)
XML unarchival.- Specified by:
fromXMLin interfaceArchivable- Overrides:
fromXMLin classRMTextShape
-
-