Class Dimension

java.lang.Object
com.microfocus.zfe.haapi.ps.Dimension

public class Dimension extends Object
HAAPI Screen dimension object.
  • Constructor Details

    • Dimension

      public Dimension(int rows, int cols)
      Creates a new dimension instance.
      Parameters:
      rows - screen height.
      cols - screen width.
  • Method Details

    • getRows

      public int getRows()
      Returns:
      number of rows.
    • getCols

      public int getCols()
      Returns:
      number of columns.
    • toString

      public String toString()
      Overrides:
      toString in class Object
      Returns:
      human-readable representation of this object.
    • equals

      public boolean equals(Object other)
      Checks whether two dimension objects have equal values (copied from java.awt.Dimension).
      Overrides:
      equals in class Object
      Parameters:
      other - instance to compare.
      Returns:
      true if other equals this.
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
      Returns:
      a hash code for this instance (copied from java.awt.Dimension).