软件包 | 描述 |
---|---|
javax.swing.text |
提供类和接口处理编辑和不可编辑的文本组件。
|
Modifier and Type | Class and Description |
---|---|
class |
FieldView
扩展多行纯文本视图以适合于单行编辑器视图。
|
class |
ParagraphView
查看一个简单的行包装段落,支持多种字体、颜色、组件、图标等。
|
class |
PasswordView
实现了一个适用于密码输入框UI实现视图。
|
class |
PlainView
实现一个简单的多行文本视图的视图接口,其中有一个字体和颜色的文本。
|
class |
WrappedPlainView
查看纯文本(文本只有一个字体和颜色),行包装。
|
Modifier and Type | Method and Description |
---|---|
TabExpander |
GlyphView.getTabExpander()
取tabexpander使用如果标签视图中呈现。
|
Modifier and Type | Method and Description |
---|---|
static int |
Utilities.drawTabbedText(Segment s, int x, int y, Graphics g, TabExpander e, int startOffset)
绘制给定的文本,扩大使用给定的制表符扩展技术所包含的任何制表符。
|
static int |
Utilities.getBreakLocation(Segment s, FontMetrics metrics, int x0, int x, TabExpander e, int startOffset)
确定在给定的范围内打破给定的文本以适应。
|
abstract float |
GlyphView.GlyphPainter.getSpan(GlyphView v, int p0, int p1, TabExpander e, float x)
确定跨了起始位置的符号(Tab扩展)。
|
float |
GlyphView.getTabbedSpan(float x, TabExpander e)
确定使用给定的标签扩展实现时所需的跨度。
|
float |
TabableView.getTabbedSpan(float x, TabExpander e)
确定使用给定的标签扩展实现时所需的跨度。
|
static int |
Utilities.getTabbedTextOffset(Segment s, FontMetrics metrics, int x0, int x, TabExpander e, int startOffset)
确定给定的文本的相对偏移量,最好表示视图坐标系中的给定跨度。
|
static int |
Utilities.getTabbedTextOffset(Segment s, FontMetrics metrics, int x0, int x, TabExpander e, int startOffset, boolean round) |
static int |
Utilities.getTabbedTextWidth(Segment s, FontMetrics metrics, int x, TabExpander e, int startOffset)
确定给定的文本段的宽度,考虑到标签。
|
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.