| java.lang.Object bluej.editor.LineColumn
LineColumn | public class LineColumn (Code) | | A LineColumn object groups two pieces of information: the line number and the column number.
They represent a position in the editor's text.
A text location represents the gap to the left of the position identified, so
that (0, 0) is the start of the file, (0, 1) is between the first and
second characters in the file, and so on. There is a LineColumn position to
the right of the last character on a line.
version: $Id: LineColumn.java 2920 2004-08-20 08:02:09Z damiano $ |
Constructor Summary | |
public | LineColumn(int line, int column) |
Method Summary | |
public int | getColumn() | public int | getLine() | public void | setColumn(int column) Sets the column where this caret should be, leaves the line unchanged. | public void | setLine(int line) Sets the line of the text position, leaves the column unchanged. | public void | setLineColumn(int line, int column) | public String | toString() Returns a string representation of this object. |
LineColumn | public LineColumn(int line, int column)(Code) | | Create a LineColumn representing the text position at the specified line and column
Parameters: line - a line number starting from 0 Parameters: column - a column number starting from 0 |
getColumn | public int getColumn()(Code) | | Returns the column of this text location
the column number of this text location |
getLine | public int getLine()(Code) | | Returns the line of this text position
the line number of this text position |
setColumn | public void setColumn(int column)(Code) | | Sets the column where this caret should be, leaves the line unchanged.
Parameters: column - the column number starting from zero |
setLine | public void setLine(int line)(Code) | | Sets the line of the text position, leaves the column unchanged.
Parameters: line - the line number starting from zero |
setLineColumn | public void setLineColumn(int line, int column)(Code) | | Set both the line and column where of text location
Parameters: line - a line number starting from zero Parameters: column - a column number starting from zero |
toString | public String toString()(Code) | | Returns a string representation of this object.
a string that represents this object status |
|
|