@OpenApiAll
public interface StyledDocument
Modifier and Type | Field and Description |
---|---|
static int |
CHARACTER
The type signature that is expected to be present on any attribute key that contributes to character level
presentation.
|
static int |
COLOR
The type signature that is expected to be present on any attribute key that contributes to presentation of
color.
|
static int |
FONT
The type signature that is expected to be present on any attribute key that contributes to the determination
of what font to use to render some text.
|
static int |
PARAGRAPH
The type signature that is expected to be present on any attribute key that contributes to the paragraph
level presentation.
|
static int |
TABLE
The type signature that is expected to be present on any attribute key that contributes to the table
presentation.
|
Modifier and Type | Method and Description |
---|---|
int |
addColor(java.awt.Color color)
Appends the specified color to the document's color table.
|
int |
addFont(java.awt.Font font)
Appends the specified font to the document's font table.
|
int |
addList(List list)
Appends the specified list item to the document's style table.
|
int |
addObject(java.lang.Object object)
Appends object content into the document.
|
int |
addStyle(javax.swing.text.Style style)
Appends the specified style to the document's style table.
|
static final int CHARACTER
static final int COLOR
static final int FONT
static final int PARAGRAPH
static final int TABLE
int addColor(java.awt.Color color)
color
- specified color.int addFont(java.awt.Font font)
font
- specified font.int addList(List list)
list
- specified list.int addStyle(javax.swing.text.Style style)
style
- a style. Reproduce from StyleContext.NamedStyleint addObject(java.lang.Object object)
object
- adding objectCopyright © 2010 - No Magic Asia