Spec-Zone .ru
спецификации, руководства, описания, API
|
|
JavaTM 2 Platform Standard Edition |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javax.swing.text.Segment
A segment of a character array representing a fragment of text. It should be treated as immutable even though the array is directly accessable. This gives fast access to fragments of text without the overhead of copying around characters. This is effectively an unprotected String.
Field Summary | |
char[] |
array
This is the array containing the text of interest. |
int |
count
This is the number of array elements that make up the text of interest. |
int |
offset
This is the offset into the array that the desired text begins. |
Constructor Summary | |
Segment()
Creates a new segment. |
|
Segment(char[] array,
int offset,
int count)
Creates a new segment referring to an existing array. |
Method Summary | |
String |
toString()
Converts a segment into a String. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Field Detail |
public char[] array
public int offset
public int count
Constructor Detail |
public Segment()
public Segment(char[] array, int offset, int count)
array
- the array to refer tooffset
- the offset into the arraycount
- the number of charactersMethod Detail |
public String toString()
|
JavaTM 2 Platform Standard Edition |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |