Uses of Class
javax.swing.text.Segment
-
Packages that use Segment 软件包 描述 javax.swing.text 提供处理可编辑和不可编辑文本组件的类和接口。 -
-
Uses of Segment in javax.swing.text
Methods in javax.swing.text that return Segment Modifier and Type 方法 描述 protected SegmentPlainView. getLineBuffer()可以访问可用于从相关文档中获取文本的缓冲区。protected SegmentWrappedPlainView. getLineBuffer()可以访问可用于从相关文档中获取文本的缓冲区。SegmentGlyphView. getText(int p0, int p1)获取对占用给定范围的文本的引用。Methods in javax.swing.text with parameters of type Segment Modifier and Type 方法 描述 static floatUtilities. drawTabbedText(Segment s, float x, float y, Graphics2D g, TabExpander e, int startOffset)绘制给定的文本,使用给定的选项卡扩展技术扩展包含的所有选项卡。static intUtilities. drawTabbedText(Segment s, int x, int y, Graphics g, TabExpander e, int startOffset)static intUtilities. getBreakLocation(Segment s, FontMetrics metrics, float x0, float x, TabExpander e, int startOffset)确定在给定的范围内打破给定文本的位置。static intUtilities. getBreakLocation(Segment s, FontMetrics metrics, int x0, int x, TabExpander e, int startOffset)voidAbstractDocument.Content. getChars(int where, int len, Segment txt)获取一系列字符并将其复制到段中。voidGapContent. getChars(int where, int len, Segment chars)检索一部分内容。voidStringContent. getChars(int where, int len, Segment chars)检索一部分内容。static intUtilities. getTabbedTextOffset(Segment s, FontMetrics metrics, float x0, float x, TabExpander e, int startOffset, boolean round)确定最佳表示视图坐标系中给定跨度的给定文本的相对偏移量。static intUtilities. getTabbedTextOffset(Segment s, FontMetrics metrics, int x0, int x, TabExpander e, int startOffset)static intUtilities. getTabbedTextOffset(Segment s, FontMetrics metrics, int x0, int x, TabExpander e, int startOffset, boolean round)static floatUtilities. getTabbedTextWidth(Segment s, FontMetrics metrics, float x, TabExpander e, int startOffset)确定考虑到选项卡的给定段文本的宽度。static intUtilities. getTabbedTextWidth(Segment s, FontMetrics metrics, int x, TabExpander e, int startOffset)voidAbstractDocument. getText(int offset, int length, Segment txt)获取文档给定部分中包含的文本。voidDocument. getText(int offset, int length, Segment txt)获取文档给定部分中包含的文本。
-