java.io.Serializable, javax.swing.text.Positionpublic final class PositionRef
extends java.lang.Object
implements java.io.Serializable, javax.swing.text.Position
Position object.
There is also support for serialization of positions.| Modifier and Type | Method | Description |
|---|---|---|
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() |
|
javax.swing.text.Position |
getPosition() |
|
javax.swing.text.Position.Bias |
getPositionBias() |
|
java.lang.String |
toString() |
public CloneableEditorSupport getCloneableEditorSupport()
public javax.swing.text.Position.Bias getPositionBias()
public javax.swing.text.Position getPosition()
throws java.io.IOException
java.io.IOException - when an exception occured during reading the file.public int getOffset()
getOffset in interface javax.swing.text.Positionpublic int getLine()
throws java.io.IOException
java.io.IOException - if the document could not be opened to check the line numberpublic int getColumn()
throws java.io.IOException
java.io.IOException - if the document could not be opened to check the column numberpublic java.lang.String toString()
toString in class java.lang.ObjectBuilt on April 24 2018. | Portions Copyright 1997-2018 Oracle. All rights reserved.