Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 


Eclipse Platform
Release 3.5

org.eclipse.swt.custom
Class Bullet

java.lang.Object
  extended by 
org.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), Sample code and further information

Field Summary
  StyleRange style
          The bullet style.
  String text
          The bullet text.
 int type
          The bullet type.
 
Constructor Summary
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.
 
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
The bullet type. Possible values are:
  • ST.BULLET_DOT
  • ST.BULLET_NUMBER
  • ST.BULLET_LETTER_LOWER
  • ST.BULLET_LETTER_UPPER
  • ST.BULLET_TEXT
  • ST.BULLET_CUSTOM


style

public 
StyleRange style
The bullet style.


text

public 
String text
The bullet text.

Constructor Detail

Bullet

public Bullet(
StyleRange style)
Create a new bullet with the specified style, and type ST.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

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

Parameters:
type - the bullet type
style - the style
Throws:
IllegalArgumentException -
  • ERROR_NULL_ARGUMENT when the style or the glyph metrics are null
Method Detail

hashCode

public int hashCode()
Overrides:
hashCode in class Object

Eclipse Platform
Release 3.5

Guidelines for using Eclipse APIs.

Copyright (c) Eclipse contributors and others 2000, 2008. All rights reserved.


 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire