Mercurial > projects > dwt-linux
comparison dwt/custom/Bullet.d @ 259:c0d810de7093
Update SWT 3.4M7 to 3.4
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Sun, 29 Jun 2008 14:33:38 +0200 |
parents | 380bad9f6852 |
children |
comparison
equal
deleted
inserted
replaced
257:cc1d3de0e80b | 259:c0d810de7093 |
---|---|
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 * |
32 * resources managed by each instance when those instances are no longer | 32 * resources managed by each instance when those instances are no longer |
33 * required, and thus no <code>dispose()</code> method is provided. | 33 * required, and thus no <code>dispose()</code> method is provided. |
34 * </p> | 34 * </p> |
35 * | 35 * |
36 * @see StyledText#setLineBullet(int, int, Bullet) | 36 * @see StyledText#setLineBullet(int, int, Bullet) |
37 * @see <a href="http://www.eclipse.org/swt/">Sample code and further information</a> | |
37 * | 38 * |
38 * @since 3.2 | 39 * @since 3.2 |
39 */ | 40 */ |
40 public class Bullet { | 41 public class Bullet { |
42 /** | |
43 * The bullet type. Possible values are: | |
44 * <ul> | |
45 * <li><code>ST.BULLET_DOT</code></li> | |
46 * <li><code>ST.BULLET_NUMBER</code></li> | |
47 * <li><code>ST.BULLET_LETTER_LOWER</code></li> | |
48 * <li><code>ST.BULLET_LETTER_UPPER</code></li> | |
49 * <li><code>ST.BULLET_TEXT</code></li> | |
50 * <li><code>ST.BULLET_CUSTOM</code></li> | |
51 * </ul> | |
52 */ | |
41 public int type; | 53 public int type; |
54 | |
55 /** | |
56 * The bullet style. | |
57 */ | |
42 public StyleRange style; | 58 public StyleRange style; |
59 | |
60 /** | |
61 * The bullet text. | |
62 */ | |
43 public String text; | 63 public String text; |
64 | |
44 int[] linesIndices; | 65 int[] linesIndices; |
45 int count; | 66 int count; |
46 | 67 |
47 /** | 68 /** |
48 * Create a new bullet the specified style, the type is set to ST.BULLET_DOT. | 69 * Create a new bullet with the specified style, and type <code>ST.BULLET_DOT</code>. |
49 * The style must have a glyph metrics set. | 70 * The style must have a glyph metrics set. |
50 * | 71 * |
51 * @param style the style | 72 * @param style the style |
52 * | 73 * |
53 * @exception IllegalArgumentException <ul> | 74 * @exception IllegalArgumentException <ul> |
59 } | 80 } |
60 /** | 81 /** |
61 * Create a new bullet the specified style and type. | 82 * Create a new bullet the specified style and type. |
62 * The style must have a glyph metrics set. | 83 * The style must have a glyph metrics set. |
63 * | 84 * |
85 * @param type the bullet type | |
64 * @param style the style | 86 * @param style the style |
65 * | 87 * |
66 * @exception IllegalArgumentException <ul> | 88 * @exception IllegalArgumentException <ul> |
67 * <li>ERROR_NULL_ARGUMENT when the style or the glyph metrics are null</li> | 89 * <li>ERROR_NULL_ARGUMENT when the style or the glyph metrics are null</li> |
68 * </ul> | 90 * </ul> |