Package io.keikai.api

Class AreaRefWithType

  • All Implemented Interfaces:
    java.io.Serializable

    public class AreaRefWithType
    extends AreaRef
    A class that represents an area reference with 4 value : row(top row), column(left column), last row(bottom row) and last column(right column) and an extra selection type. (CELL, COL, ROW, ALL)
    Since:
    3.8.3
    Author:
    Henri Chen
    See Also:
    Serialized Form
    • Constructor Detail

      • AreaRefWithType

        public AreaRefWithType​(int row,
                               int column,
                               int lastRow,
                               int lastColumn,
                               CellSelectionType type)
      • AreaRefWithType

        public AreaRefWithType​(java.lang.String areaReference,
                               CellSelectionType type)
    • Method Detail

      • contains

        public boolean contains​(int tRow,
                                int lCol,
                                int bRow,
                                int rCol)
        Overrides:
        contains in class AreaRef
      • overlap

        public boolean overlap​(int bTopRow,
                               int bLeftCol,
                               int bBottomRow,
                               int bRightCol)
        Overrides:
        overlap in class AreaRef
      • asString

        public java.lang.String asString()
        Overrides:
        asString in class AreaRef
        Returns:
        reference string, e.x A1:B2
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class AreaRef
      • setSelType

        public void setSelType​(CellSelectionType type)
        Parameters:
        type -
        Since:
        3.8.3