Package org.eclipse.swt.custom
Class Bullet
java.lang.Object
org.eclipse.swt.custom.Bullet
Instances of this class represent bullets in the
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.
- Since:
- 3.2
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe bullet style.The bullet text.intThe bullet type. -
Constructor Summary
ConstructorsConstructorDescriptionBullet(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 typeST.BULLET_DOT. -
Method Summary
-
Field Details
-
type
public int typeThe bullet type. Possible values are:ST.BULLET_DOTST.BULLET_NUMBERST.BULLET_LETTER_LOWERST.BULLET_LETTER_UPPERST.BULLET_TEXTST.BULLET_CUSTOM
-
style
The bullet style. -
text
The bullet text.
-
-
Constructor Details
-
Bullet
Create a new bullet with the specified style, and typeST.BULLET_DOT. The style must have a glyph metrics set.- Parameters:
style- the style- Throws:
IllegalArgumentException-- ERROR_NULL_ARGUMENT when the style or the glyph metrics are null
-
Bullet
Create a new bullet the specified style and type. The style must have a glyph metrics set.- Parameters:
type- the bullet typestyle- the style- Throws:
IllegalArgumentException-- ERROR_NULL_ARGUMENT when the style or the glyph metrics are null
-
-
Method Details