public class Bullet
extends java.lang.Object
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 informationModifier and Type | Field and Description |
---|---|
(package private) int |
count |
(package private) int[] |
linesIndices |
StyleRange |
style
The bullet style.
|
java.lang.String |
text
The bullet text.
|
int |
type
The bullet type.
|
Constructor and Description |
---|
Bullet(int type,
StyleRange style)
Create a new bullet the specified style and type.
|
Bullet(StyleRange style)
Create a new bullet with the specified style, and type
ST.BULLET_DOT . |
Modifier and Type | Method and Description |
---|---|
(package private) void |
addIndices(int startLine,
int lineCount) |
int |
hashCode() |
(package private) int |
indexOf(int lineIndex) |
(package private) int[] |
removeIndices(int startLine,
int replaceLineCount,
int newLineCount,
boolean update) |
(package private) int |
size() |
public int type
ST.BULLET_DOT
ST.BULLET_NUMBER
ST.BULLET_LETTER_LOWER
ST.BULLET_LETTER_UPPER
ST.BULLET_TEXT
ST.BULLET_CUSTOM
public StyleRange style
public java.lang.String text
int[] linesIndices
int count
public Bullet(StyleRange style)
ST.BULLET_DOT
.
The style must have a glyph metrics set.style
- the stylejava.lang.IllegalArgumentException
- public Bullet(int type, StyleRange style)
type
- the bullet typestyle
- the stylejava.lang.IllegalArgumentException
- void addIndices(int startLine, int lineCount)
int indexOf(int lineIndex)
public int hashCode()
hashCode
in class java.lang.Object
int[] removeIndices(int startLine, int replaceLineCount, int newLineCount, boolean update)
int size()