StyledText.
The hashCode() method in this class uses the values of the public fields to compute the hash value. When storing instances of the class in hashed collections, do not modify these fields after the object has been inserted.
Application code does not need to explicitly release the
resources managed by each instance when those instances are no longer
required, and thus no dispose() method is provided.
StyledText#setLineBullet(int, int, Bullet), Sample code and further information
| Modifier and Type | Field and Description |
|---|---|
| pack-priv int | |
| pack-priv int[] | |
| public StyleRange | style
The bullet style. |
| public String | text
The bullet text. |
| public int | type
The bullet type. |
| Access | Constructor and Description |
|---|---|
| public | Bullet(StyleRange
the style style)Create a new bullet with the specified style, and type |
| public | Bullet(int
the bullet type type, StyleRange the style style)Create a new bullet the specified style and type. |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv void | |
| public int | |
| pack-priv int | |
| pack-priv int[] | |
| pack-priv int |
| count | back to summary |
|---|---|
| pack-priv int count | |
| linesIndices | back to summary |
|---|---|
| pack-priv int[] linesIndices | |
| style | back to summary |
|---|---|
| public StyleRange style The bullet style. | |
| text | back to summary |
|---|---|
| public String text The bullet text. | |
| type | back to summary |
|---|---|
| public int type The bullet type. Possible values are:
| |
| Bullet | back to summary |
|---|---|
| public Bullet(StyleRange style) Create a new bullet with the specified style, and type
| |
| Bullet | back to summary |
|---|---|
| public Bullet(int type, StyleRange style) Create a new bullet the specified style and type. The style must have a glyph metrics set.
| |
| addIndices | back to summary |
|---|---|
| pack-priv void addIndices(int startLine, int lineCount) | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| indexOf | back to summary |
|---|---|
| pack-priv int indexOf(int lineIndex) | |
| removeIndices | back to summary |
|---|---|
| pack-priv int[] removeIndices(int startLine, int replaceLineCount, int newLineCount, boolean update) | |
| size | back to summary |
|---|---|
| pack-priv int size() | |