Class RowColLocation

java.lang.Object
docking.widgets.fieldpanel.support.RowColLocation
Direct Known Subclasses:
DefaultRowColLocation

public class RowColLocation extends Object
Simple class to return a row, column location.
  • Field Details

    • row

      protected int row
    • col

      protected int col
  • Constructor Details

    • RowColLocation

      public RowColLocation(int row, int col)
      Constructs a new RowColLocation with the given row and column.
      Parameters:
      row - the row location
      col - the column location
    • RowColLocation

      public RowColLocation(int row, int col, boolean isHidden)
      Constructs a new RowColLocation with the given row and column.
      Parameters:
      row - the row location
      col - the column location
      isHidden - true if the given location is replaced with ellipsis in the UI
  • Method Details

    • row

      public int row()
    • col

      public int col()
    • isHidden

      public boolean isHidden()
      Returns true if this location is hidden, such as when the location is replaced by an ellipsis in the UI.
      Returns:
      true if this location is hidden, such as when the location is replaced by an ellipsis in the UI
    • withCol

      public RowColLocation withCol(int newColumn)
    • withRow

      public RowColLocation withRow(int newRow)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • hashCode

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

      public boolean equals(Object object)
      Overrides:
      equals in class Object