Uses of Class javax.swing.text.Segment

Uses in package javax.swing.text

Methods with parameter type javax.swing.text.Segment

int
Utilities.drawTabbedText(Segment s, int x, int y, Graphics g, TabExpander e, int startOffset)
Draws the given text segment.
void
AbstractDocument.Content.getChars(int where, int len, Segment txt)
void
GapContent.getChars(int where, int len, Segment txt)
Fetches a piece of content and stores it in a Segment object.
void
StringContent.getChars(int where, int len, Segment txt)
int
Utilities.getTabbedTextWidth(Segment s, FontMetrics metrics, int x, TabExpander e, int startOffset)
Determines the width, that the given text s would take if it was printed with the given FontMetrics on the specified screen position.
void
AbstractDocument.getText(int offset, int length, Segment segment)
Fetch the textual content starting at offset with a length of length and store it in txt.
void
Document.getText(int offset, int length, Segment txt)
Fetch the textual content starting at offset with a length of length and store it in txt.