| java.lang.Object org.netbeans.lib.terminalemulator.BCoord
BCoord | class BCoord implements Comparable(Code) | | A cartesian coordinate class, similar to Point.
The equivalent of 'offset' in swing.text.Document.
Rows are 0-origin, columns are 0-origin.
Why not the regular Java Point? Because ...
- Point with 'x' and 'y' is not as clear.
- Point doesn't implement Comparable, which we depend on a lot.
|
Field Summary | |
public int | col | public int | row |
BCoord | public BCoord()(Code) | | Create a BCoord at the origin (top-left)
|
BCoord | public BCoord(int row, int col)(Code) | | |
clip | public void clip(int rows, int cols)(Code) | | |
compareTo | public int compareTo(Object o) throws ClassCastException(Code) | | Examples:
To satisfy Comparable.
a < b === a.compareTo(b) < 0
a >= b === a.compareTo(b) >= 0
|
|
|