KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > swt > custom > StyledTextEvent


1 /*******************************************************************************
2  * Copyright (c) 2000, 2007 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

11 package org.eclipse.swt.custom;
12
13 import org.eclipse.swt.graphics.*;
14 import org.eclipse.swt.widgets.*;
15
16 /**
17  *
18  */

19 class StyledTextEvent extends Event {
20     // used by LineStyleEvent
21
int[] ranges;
22     StyleRange[] styles;
23     int alignment;
24     int indent;
25     boolean justify;
26     Bullet bullet;
27     int bulletIndex;
28     // used by LineBackgroundEvent
29
Color lineBackground;
30     // used by BidiSegmentEvent
31
int[] segments;
32     // used by TextChangedEvent
33
int replaceCharCount;
34     int newCharCount;
35     int replaceLineCount;
36     int newLineCount;
37     // used by PaintObjectEvent
38
int x;
39     int y;
40     int ascent;
41     int descent;
42     StyleRange style;
43
44 StyledTextEvent (StyledTextContent content) {
45     super();
46     data = content;
47 }
48 }
49
50
51
Popular Tags