Package | Description |
---|---|
javax.swing.text |
Provides classes and interfaces that deal with editable and noneditable text
components.
|
javax.swing.text.html |
Provides the class
HTMLEditorKit and supporting classes for creating
HTML text editors. |
Modifier and Type | Class | Description |
---|---|---|
class |
FieldView |
Extends the multi-line plain text view to be suitable
for a single-line editor view.
|
class |
ParagraphView |
View of a simple line-wrapping paragraph that supports
multiple fonts, colors, components, icons, etc.
|
class |
PasswordView |
Implements a View suitable for use in JPasswordField
UI implementations.
|
class |
PlainView |
Implements View interface for a simple multi-line text view
that has text in one font and color.
|
class |
WrappedPlainView |
View of plain text (text with only one font and color)
that does line-wrapping.
|
Modifier and Type | Method | Description |
---|---|---|
TabExpander |
GlyphView.getTabExpander() |
Fetch the TabExpander to use if tabs are present in this view.
|
Modifier and Type | Method | Description |
---|---|---|
static float |
Utilities.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 int |
Utilities.drawTabbedText(Segment s,
int x,
int y,
Graphics g,
TabExpander e,
int startOffset) |
Deprecated.
|
static int |
Utilities.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 int |
Utilities.getBreakLocation(Segment s,
FontMetrics metrics,
int x0,
int x,
TabExpander e,
int startOffset) |
Deprecated.
|
abstract float |
GlyphView.GlyphPainter.getSpan(GlyphView v,
int p0,
int p1,
TabExpander e,
float x) |
Determine the span the glyphs given a start location
(for tab expansion).
|
float |
GlyphView.getTabbedSpan(float x,
TabExpander e) |
Determines the desired span when using the given
tab expansion implementation.
|
float |
TabableView.getTabbedSpan(float x,
TabExpander e) |
Determines the desired span when using the given
tab expansion implementation.
|
static int |
Utilities.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 int |
Utilities.getTabbedTextOffset(Segment s,
FontMetrics metrics,
int x0,
int x,
TabExpander e,
int startOffset) |
Deprecated.
|
static int |
Utilities.getTabbedTextOffset(Segment s,
FontMetrics metrics,
int x0,
int x,
TabExpander e,
int startOffset,
boolean round) |
Deprecated.
|
static float |
Utilities.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 int |
Utilities.getTabbedTextWidth(Segment s,
FontMetrics metrics,
int x,
TabExpander e,
int startOffset) |
Deprecated.
|
Modifier and Type | Class | Description |
---|---|---|
class |
ParagraphView |
Displays the a paragraph, and uses css attributes for its
configuration.
|
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, 2017, Oracle and/or its affiliates. 500 Oracle Parkway
Redwood Shores, CA 94065 USA. All rights reserved.
DRAFT 9-internal+0-adhoc.mlchung.jdk9-jdeps