|
org.openide.text 6.9.22 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openide.text.PositionRef
public final class PositionRef
Reference to one position in a document.
This position is held as an integer offset, or as a Position object.
There is also support for serialization of positions.
| Method Summary | |
|---|---|
CloneableEditorSupport |
getCloneableEditorSupport()
|
int |
getColumn()
Get the column number where this position points to. |
int |
getLine()
Get the line number where this position points to. |
int |
getOffset()
|
Position |
getPosition()
|
Position.Bias |
getPositionBias()
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public CloneableEditorSupport getCloneableEditorSupport()
public Position.Bias getPositionBias()
public Position getPosition() throws IOException
IOException - when an exception occured during reading the file.public int getOffset()
public int getLine()
throws IOException
IOException - if the document could not be opened to check the line number
public int getColumn()
throws IOException
IOException - if the document could not be opened to check the column numberpublic String toString()
|
org.openide.text 6.9.22 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||