|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectproyecto.editor.JavaTextPane.DocPosition
class JavaTextPane.DocPosition
A wrapper for a position in a document appropriate for storing in a collection.
Constructor Summary | |
---|---|
JavaTextPane.DocPosition(int position)
Construct a DocPosition from given offset into document. |
Method Summary | |
---|---|
JavaTextPane.DocPosition |
adjustPosition(int adjustment)
Adjust this position. |
boolean |
equals(Object obj)
Two DocPositions are equal iff they have same internal position. |
(package private) int |
getPosition()
Get position represented by this DocPosition. |
String |
toString()
A string representation useful for debugging. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public JavaTextPane.DocPosition(int position)
position
- position this DocObject will representMethod Detail |
---|
int getPosition()
public JavaTextPane.DocPosition adjustPosition(int adjustment)
adjustment
- amount (either positive or negative) to adjust this
position.
public boolean equals(Object obj)
equals
in class Object
obj
- obj
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |