writeattributes
Class AddressEdit.AttributeRegion

java.lang.Object
  extended by writeattributes.AddressEdit.AttributeRegion
Enclosing class:
AddressEdit

private class AddressEdit.AttributeRegion
extends java.lang.Object

Pair binding an attribute name to its position on the screen.

These objects are used to store attribute information in the priority queue.


Field Summary
private  java.lang.String name
          Attribute name.
private  com.wrq.vhi.script.api.RectangularTerminalRegion region
          Attribute position on terminal screen.
 
Constructor Summary
AddressEdit.AttributeRegion(java.lang.String name, com.wrq.vhi.script.api.RectangularTerminalRegion region)
          Constructor: bind attribute name to terminal region
 
Method Summary
 int getColumn()
          Get attribute column.
 java.lang.String getName()
          Get attribute name.
 int getRow()
          Get attribute row.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name

private final java.lang.String name
Attribute name.


region

private final com.wrq.vhi.script.api.RectangularTerminalRegion region
Attribute position on terminal screen.

Constructor Detail

AddressEdit.AttributeRegion

public AddressEdit.AttributeRegion(java.lang.String name,
                                   com.wrq.vhi.script.api.RectangularTerminalRegion region)
Constructor: bind attribute name to terminal region

Parameters:
name - attribute name
region - rectangular terminal region occupied by attribute
Method Detail

getName

public java.lang.String getName()
Get attribute name.

Returns:
attribute name

getRow

public int getRow()
Get attribute row.

Returns:
1-based row number of attribute on terminal screen

getColumn

public int getColumn()
Get attribute column.

Returns:
leftmost 1-based column of attribute on terminal screen