Class RowGroupExpandCollapseCommand

  • All Implemented Interfaces:
    ILayerCommand

    public class RowGroupExpandCollapseCommand
    extends AbstractRowCommand
    Command to trigger expand/collapse on a row group at the specified coordinates, based on the current expand/collapse state.
    • Constructor Detail

      • RowGroupExpandCollapseCommand

        public RowGroupExpandCollapseCommand​(ILayer layer,
                                             int rowPosition)
        Create the command for a given row position and column position 0;
        Parameters:
        layer - The layer to which the positions match.
        rowPosition - The row position to identify the row group.
      • RowGroupExpandCollapseCommand

        public RowGroupExpandCollapseCommand​(ILayer layer,
                                             int rowPosition,
                                             int columnPosition)
        Create the command for the given row and column positions.
        Parameters:
        layer - The layer to which the positions match.
        rowPosition - The row position to identify the row group.
        columnPosition - The column position to identify the row group in a multi-level configuration.
        Since:
        1.6
      • RowGroupExpandCollapseCommand

        protected RowGroupExpandCollapseCommand​(RowGroupExpandCollapseCommand command)
        Clone constructor.
        Parameters:
        command - The command to clone.
    • Method Detail

      • getColumnPositionLayer

        public ILayer getColumnPositionLayer()
        Returns:
        The layer to which the column position matches.
        Since:
        1.6
      • getColumnPosition

        public int getColumnPosition()
        Returns:
        the columnPosition
        Since:
        1.6
      • getLocalColumnPosition

        public int getLocalColumnPosition​(ILayer targetLayer)
        Converts the locally transported column position from its origin layer to the given target layer.
        Parameters:
        targetLayer - The target layer to convert the command to.
        Returns:
        The column position converted to the given target layer or -1 in case the transformation failed.
        Since:
        1.6