Uses of Class
javax.swing.text.Segment
Packages that use Segment
Package
Description
Provides classes and interfaces that deal with editable and noneditable text
components.
-
Uses of Segment in javax.swing.text
Methods in javax.swing.text that return SegmentModifier and TypeMethodDescriptionprotected final SegmentPlainView.getLineBuffer()Gives access to a buffer that can be used to fetch text from the associated document.protected final SegmentWrappedPlainView.getLineBuffer()Gives access to a buffer that can be used to fetch text from the associated document.GlyphView.getText(int p0, int p1) Fetch a reference to the text that occupies the given range.Methods in javax.swing.text with parameters of type SegmentModifier and TypeMethodDescriptionstatic final floatUtilities.drawTabbedText(Segment s, float x, float y, Graphics2D g, TabExpander e, int startOffset) Draws the given text, expanding any tabs that are contained using the given tab expansion technique.static final intUtilities.drawTabbedText(Segment s, int x, int y, Graphics g, TabExpander e, int startOffset) Deprecated.static final intUtilities.getBreakLocation(Segment s, FontMetrics metrics, float x0, float x, TabExpander e, int startOffset) Determine where to break the given text to fit within the given span.static final intUtilities.getBreakLocation(Segment s, FontMetrics metrics, int x0, int x, TabExpander e, int startOffset) Deprecated.voidGets a sequence of characters and copies them into a Segment.voidRetrieves a portion of the content.voidRetrieves a portion of the content.static final intUtilities.getTabbedTextOffset(Segment s, FontMetrics metrics, float x0, float x, TabExpander e, int startOffset, boolean round) Determines the relative offset into the given text that best represents the given span in the view coordinate system.static final intUtilities.getTabbedTextOffset(Segment s, FontMetrics metrics, int x0, int x, TabExpander e, int startOffset) Deprecated.static final intUtilities.getTabbedTextOffset(Segment s, FontMetrics metrics, int x0, int x, TabExpander e, int startOffset, boolean round) Deprecated.static final floatUtilities.getTabbedTextWidth(Segment s, FontMetrics metrics, float x, TabExpander e, int startOffset) Determines the width of the given segment of text taking tabs into consideration.static final intUtilities.getTabbedTextWidth(Segment s, FontMetrics metrics, int x, TabExpander e, int startOffset) Deprecated.voidFetches the text contained within the given portion of the document.voidFetches the text contained within the given portion of the document.
Utilities.drawTabbedText(Segment, float, float, Graphics2D, TabExpander, int)