Class RMCrossTabCell

All Implemented Interfaces:
Archivable, DeepChangeListener, RMPropertyChanger, RMTypes, PropertyChangeListener, Cloneable, EventListener

public class RMCrossTabCell extends RMTextShape
A text shape subclass used to form the basis of a table.
  • Constructor Details

    • RMCrossTabCell

      public RMCrossTabCell()
      Creates a new RMCrossTabCell.
  • Method Details

    • createXString

      public RMXString createXString()
      Override to create an xstring that is aligned center by default.
      Overrides:
      createXString in class RMTextShape
    • 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 String getGroupingKey()
    • setGroupingKey

      public void setGroupingKey(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 Insets getMarginDefault()
      Returns the default text margin for RMCell (top=5, left=5, right=5, bottom=5).
      Overrides:
      getMarginDefault in class RMTextShape
    • clearContents

      public void clearContents()
      Clears the text and grouping from this cell.
    • paintShape

      public void paintShape(RMShapePainter aPntr)
      Handles painting a crosstab cell.
      Overrides:
      paintShape in class RMTextShape
    • isDeletable

      public boolean isDeletable()
      Description copied from class: RMShape
      Override this for shapes (like a table row) that don't don't make sense to delete by themselves.
      Overrides:
      isDeletable in class RMTextShape
    • clone

      public RMCrossTabCell clone()
      Standard clone implementation.
      Overrides:
      clone in class RMTextShape
    • setWraps

      public void setWraps(byte aValue)
      Description copied from class: RMTextShape
      Sets the wrapping behavior for over-filled rpgCloned text (NONE, WRAP, SHRINK). No bindings because this takes a byte and no expression function returns a byte.
      Overrides:
      setWraps in class RMTextShape
    • toXML

      public RXElement toXML(RXArchiver anArchiver)
      XML archival.
      Specified by:
      toXML in interface Archivable
      Overrides:
      toXML in class RMTextShape
    • fromXML

      public Object fromXML(RXArchiver anArchiver, RXElement anElement)
      XML unarchival.
      Specified by:
      fromXML in interface Archivable
      Overrides:
      fromXML in class RMTextShape