KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > ca > mcgill > sable > soot > attributes > PosColAttribute


1 /* Soot - a J*va Optimization Framework
2  * Copyright (C) 2003 Jennifer Lhotak
3  *
4  * This library is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Lesser General Public
6  * License as published by the Free Software Foundation; either
7  * version 2.1 of the License, or (at your option) any later version.
8  *
9  * This library is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  * Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public
15  * License along with this library; if not, write to the
16  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
17  * Boston, MA 02111-1307, USA.
18  */

19
20
21 package ca.mcgill.sable.soot.attributes;
22
23 import org.eclipse.swt.graphics.RGB;
24
25
26 public class PosColAttribute {
27
28     private int startOffset;
29     private int endOffset;
30     private int sourceStartOffset;
31     private int sourceEndOffset;
32     
33     private int red;
34     private int green;
35     private int blue;
36     private int fg;
37     
38     public RGB getRGBColor(){
39         return new RGB(getRed(), getGreen(), getBlue());
40     }
41     
42     /**
43      * @return
44      */

45     public int getBlue() {
46         return blue;
47     }
48
49     /**
50      * @return
51      */

52     public int getEndOffset() {
53         return endOffset;
54     }
55
56     /**
57      * @return
58      */

59     public int getGreen() {
60         return green;
61     }
62
63     /**
64      * @return
65      */

66     public int getRed() {
67         return red;
68     }
69
70     /**
71      * @return
72      */

73     public int getStartOffset() {
74         return startOffset;
75     }
76
77     /**
78      * @param i
79      */

80     public void setBlue(int i) {
81         blue = i;
82     }
83
84     /**
85      * @param i
86      */

87     public void setEndOffset(int i) {
88         endOffset = i;
89     }
90
91     /**
92      * @param i
93      */

94     public void setGreen(int i) {
95         green = i;
96     }
97
98     /**
99      * @param i
100      */

101     public void setRed(int i) {
102         red = i;
103     }
104
105     /**
106      * @param i
107      */

108     public void setStartOffset(int i) {
109         startOffset = i;
110     }
111
112     /**
113      * @return
114      */

115     public int getSourceEndOffset() {
116         return sourceEndOffset;
117     }
118
119     /**
120      * @return
121      */

122     public int getSourceStartOffset() {
123         return sourceStartOffset;
124     }
125
126     /**
127      * @param i
128      */

129     public void setSourceEndOffset(int i) {
130         sourceEndOffset = i;
131     }
132
133     /**
134      * @param i
135      */

136     public void setSourceStartOffset(int i) {
137         sourceStartOffset = i;
138     }
139
140     /**
141      * @return
142      */

143     public int getFg() {
144         return fg;
145     }
146
147     /**
148      * @param i
149      */

150     public void setFg(int i) {
151         fg = i;
152     }
153
154 }
155
Popular Tags