Java Platform 1.2
Beta 4

Uses of Class
com.sun.java.swing.text.Segment

Packages that use Segment
com.sun.java.swing.text Provides classes and interfaces that deal with editable and noneditable text components.  
 

Uses of Segment in com.sun.java.swing.text
 

Methods in com.sun.java.swing.text that return Segment
protected  Segment PlainView.getLineBuffer()
          Gives access to a buffer that can be used to fetch text from the associated document.
protected  Segment WrappedPlainView.getLineBuffer()
          Gives access to a buffer that can be used to fetch text from the associated document.
 

Methods in com.sun.java.swing.text with parameters of type Segment
 void Document.getText(int offset, int length, Segment txt)
          Fetches the text contained within the given portion of the document.
 void AbstractDocument.getText(int offset, int length, Segment txt)
          Gets some text from the document potentially without making a copy.
 void StringContent.getChars(int where, int len, Segment chars)
          Retrieves a portion of the content. where + len must be <= length()
 void GapContent.getChars(int where, int len, Segment chars)
          Retrieves a portion of the content.
static int Utilities.drawTabbedText(Segment s, int x, int y, Graphics g, TabExpander e, int startOffset)
          Draws the given text, expanding any tabs that are contained using the given tab expansion technique.
static int Utilities.getTabbedTextWidth(Segment s, FontMetrics metrics, int x, TabExpander e, int startOffset)
          Determines the width of the given segment of text taking tabs into consideration.
static int Utilities.getTabbedTextOffset(Segment s, FontMetrics metrics, int x0, int x, TabExpander e, int startOffset)
          Determines the relative offset into the given text that best represents the given span in the view coordinate system.
static int Utilities.getBreakLocation(Segment s, FontMetrics metrics, int x0, int x, TabExpander e, int startOffset)
          Determine where to break the given text to fit within the the given span.
 void AbstractDocument.Content.getChars(int where, int len, Segment txt)
          Gets a sequence of characters and copies them into a Segment.
 


Java Platform 1.2
Beta 4

Submit a bug or feature
Submit comments/suggestions about new javadoc look
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries.
Copyright 1993-1998 Sun Microsystems, Inc. 901 San Antonio Road,
Palo Alto, California, 94303, U.S.A. All Rights Reserved.
This documentation was generated with a post-Beta4 version of Javadoc.