All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.bytezone.dm3270.display.ScreenDimensions Maven / Gradle / Ivy

Go to download

This is a trimmed down version of https://github.com/dmolony/dm3270 to be used as TN3270 client library

There is a newer version: 0.9.1
Show newest version
package com.bytezone.dm3270.display;

import com.bytezone.dm3270.orders.BufferAddress;

public class ScreenDimensions {

  public final int rows;
  public final int columns;
  public final int size;

  public ScreenDimensions(int rows, int columns) {
    this.rows = rows;
    this.columns = columns;

    size = rows * columns;

    BufferAddress.setScreenWidth(columns);       // for debugging output
  }

  @Override
  public String toString() {
    return String.format("[Rows:%d, Columns:%d, Size:%d]", rows, columns, size);
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy