projects
/
sixth-3d.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Improved code readability
[sixth-3d.git]
/
src
/
main
/
java
/
eu
/
svjatoslav
/
sixth
/
e3d
/
gui
/
TextPointer.java
diff --git
a/src/main/java/eu/svjatoslav/sixth/e3d/gui/TextPointer.java
b/src/main/java/eu/svjatoslav/sixth/e3d/gui/TextPointer.java
index
701ec50
..
67291f5
100755
(executable)
--- a/
src/main/java/eu/svjatoslav/sixth/e3d/gui/TextPointer.java
+++ b/
src/main/java/eu/svjatoslav/sixth/e3d/gui/TextPointer.java
@@
-5,11
+5,21
@@
package eu.svjatoslav.sixth.e3d.gui;
/**
package eu.svjatoslav.sixth.e3d.gui;
/**
- * A pointer to a character in a text.
+ * A pointer to a character in a text using row and column.
+ * <p>
+ * It can be used to represent a cursor position in a text.
+ * Also, it can be used to represent beginning and end of a selection.
*/
public class TextPointer implements Comparable<TextPointer> {
*/
public class TextPointer implements Comparable<TextPointer> {
+ /**
+ * The row of the character. Starts from 0.
+ */
public int row;
public int row;
+
+ /**
+ * The column of the character. Starts from 0.
+ */
public int column;
public TextPointer() {
public int column;
public TextPointer() {