Eclipse Platform
Release 3.3

org.eclipse.swt.custom
Class Bullet

java.lang.Object
  extended byorg.eclipse.swt.custom.Bullet

public class Bullet
extends Object

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:
StyledText.setLineBullet(int, int, Bullet)

Field Summary
 StyleRange style
           
 String text
           
 int type
           
 
Constructor Summary
Bullet(int type, StyleRange style)
          Create a new bullet the specified style and type.
Bullet(StyleRange style)
          Create a new bullet the specified style, the type is set to ST.BULLET_DOT.
 
Method Summary
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

type

public int type

style

public StyleRange style

text

public String text
Constructor Detail

Bullet

public Bullet(StyleRange style)
Create a new bullet the specified style, the type is set to ST.BULLET_DOT. The style must have a glyph metrics set.

Parameters:
style - the style
Throws:
IllegalArgumentException -

Bullet

public Bullet(int type,
              StyleRange style)
Create a new bullet the specified style and type. The style must have a glyph metrics set.

Parameters:
style - the style
Throws:
IllegalArgumentException -
Method Detail

hashCode

public int hashCode()

Eclipse Platform
Release 3.3

Guidelines for using Eclipse APIs.

Copyright (c) IBM Corp. and others 2000, 2007. All rights reserved.