Class GridBounds

java.lang.Object
ghidra.graph.viewer.layout.GridBounds

public class GridBounds extends Object
Tracks the minimum and maximum indexes for both rows and columns.
  • Constructor Details

    • GridBounds

      public GridBounds()
  • Method Details

    • update

      public void update(GridPoint p)
      Updates the bounds for the given GridPoint.
      Parameters:
      p - the gridPoint used to update the minimums and maximums
    • shift

      public void shift(int rowShift, int colShift)
      Shifts the columns bounds by the given amount
      Parameters:
      rowShift - the amount to shift the row bounds.
      colShift - the amount to shift the column bounds.
      Throws:
      IllegalArgumentException - if the shift would make the minimum column negative
    • toString

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

      public int maxCol()
    • minCol

      public int minCol()
    • maxRow

      public int maxRow()
    • minRow

      public int minRow()
    • contains

      public boolean contains(GridPoint p)