comparison dwt/custom/Bullet.d @ 246:fd9c62a2998e

Updater SWT 3.4M7 to 3.4
author Frank Benoit <benoit@tionex.de>
date Tue, 01 Jul 2008 10:15:59 +0200
parents ab60f3309436
children 349b8c12e243
comparison
equal deleted inserted replaced
245:d8c3d4a4f2b0 246:fd9c62a2998e
1 /******************************************************************************* 1 /*******************************************************************************
2 * Copyright (c) 2000, 2006 IBM Corporation and others. 2 * Copyright (c) 2000, 2008 IBM Corporation and others.
3 * All rights reserved. This program and the accompanying materials 3 * All rights reserved. This program and the accompanying materials
4 * are made available under the terms of the Eclipse Public License v1.0 4 * are made available under the terms of the Eclipse Public License v1.0
5 * which accompanies this distribution, and is available at 5 * which accompanies this distribution, and is available at
6 * http://www.eclipse.org/legal/epl-v10.html 6 * http://www.eclipse.org/legal/epl-v10.html
7 * 7 *
31 * resources managed by each instance when those instances are no longer 31 * resources managed by each instance when those instances are no longer
32 * required, and thus no <code>dispose()</code> method is provided. 32 * required, and thus no <code>dispose()</code> method is provided.
33 * </p> 33 * </p>
34 * 34 *
35 * @see StyledText#setLineBullet(int, int, Bullet) 35 * @see StyledText#setLineBullet(int, int, Bullet)
36 * @see <a href="http://www.eclipse.org/swt/">Sample code and further information</a>
36 * 37 *
37 * @since 3.2 38 * @since 3.2
38 */ 39 */
39 public class Bullet { 40 public class Bullet {
41 /**
42 * The bullet type. Possible values are:
43 * <ul>
44 * <li><code>ST.BULLET_DOT</code></li>
45 * <li><code>ST.BULLET_NUMBER</code></li>
46 * <li><code>ST.BULLET_LETTER_LOWER</code></li>
47 * <li><code>ST.BULLET_LETTER_UPPER</code></li>
48 * <li><code>ST.BULLET_TEXT</code></li>
49 * <li><code>ST.BULLET_CUSTOM</code></li>
50 * </ul>
51 */
40 public int type; 52 public int type;
53
54 /**
55 * The bullet style.
56 */
41 public StyleRange style; 57 public StyleRange style;
58
59 /**
60 * The bullet text.
61 */
42 public String text; 62 public String text;
63
43 int[] linesIndices; 64 int[] linesIndices;
44 int count; 65 int count;
45 66
46 /** 67 /**
47 * Create a new bullet the specified style, the type is set to ST.BULLET_DOT. 68 * Create a new bullet with the specified style, and type <code>ST.BULLET_DOT</code>.
48 * The style must have a glyph metrics set. 69 * The style must have a glyph metrics set.
49 * 70 *
50 * @param style the style 71 * @param style the style
51 * 72 *
52 * @exception IllegalArgumentException <ul> 73 * @exception IllegalArgumentException <ul>
58 } 79 }
59 /** 80 /**
60 * Create a new bullet the specified style and type. 81 * Create a new bullet the specified style and type.
61 * The style must have a glyph metrics set. 82 * The style must have a glyph metrics set.
62 * 83 *
84 * @param type the bullet type
63 * @param style the style 85 * @param style the style
64 * 86 *
65 * @exception IllegalArgumentException <ul> 87 * @exception IllegalArgumentException <ul>
66 * <li>ERROR_NULL_ARGUMENT when the style or the glyph metrics are null</li> 88 * <li>ERROR_NULL_ARGUMENT when the style or the glyph metrics are null</li>
67 * </ul> 89 * </ul>