Package io.keikai.api

Class AreaRefWithType

java.lang.Object
io.keikai.api.AreaRef
io.keikai.api.AreaRefWithType
All Implemented Interfaces:
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:
  • Field Details

  • Constructor Details

    • AreaRefWithType

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

      public AreaRefWithType(String areaReference, CellSelectionType type)
  • Method Details

    • cloneSelf

      public AreaRef cloneSelf()
      Overrides:
      cloneSelf in class AreaRef
    • 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
    • overlap

      public boolean overlap(AreaRefWithType areaRef)
    • asString

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

      public int hashCode()
      Overrides:
      hashCode in class AreaRef
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class AreaRef
    • setSelType

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

      public CellSelectionType getSelType()
      Returns:
      Since:
      3.8.3