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 变量和类型 方法 描述 protected SegmentPlainView. getLineBuffer()提供对可用于从关联文档中提取文本的缓冲区的访问权限。protected SegmentWrappedPlainView. getLineBuffer()提供对可用于从关联文档中提取文本的缓冲区的访问权限。SegmentGlyphView. getText(int p0, int p1)获取对占用给定范围的文本的引用。Methods in javax.swing.text with parameters of type Segment 变量和类型 方法 描述 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)获取一系列字符并将其复制到Segment中。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)获取文档给定部分中包含的文本。
-