Statistics
| Revision:

svn-gvsig-desktop / trunk / libraries / libDwg / doc / javadoc / com / iver / cit / javacad / util / AcadColor.html @ 2896

History | View | Annotate | Download (13.7 KB)

1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2
<!--NewPage-->
3
<HTML>
4
<HEAD>
5
<!-- Generated by javadoc (build 1.4.2_08) on Wed Sep 07 16:36:36 CEST 2005 -->
6
<TITLE>
7
AcadColor
8
</TITLE>
9

    
10
<META NAME="keywords" CONTENT="com.iver.cit.javacad.util.AcadColor class">
11

    
12
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../stylesheet.css" TITLE="Style">
13

    
14
<SCRIPT type="text/javascript">
15
function windowTitle()
16
{
17
    parent.document.title="AcadColor";
18
}
19
</SCRIPT>
20

    
21
</HEAD>
22

    
23
<BODY BGCOLOR="white" onload="windowTitle();">
24

    
25

    
26
<!-- ========= START OF TOP NAVBAR ======= -->
27
<A NAME="navbar_top"><!-- --></A>
28
<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
29
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
30
<TR>
31
<TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
32
<A NAME="navbar_top_firstrow"><!-- --></A>
33
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
34
  <TR ALIGN="center" VALIGN="top">
35
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
36
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
37
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
38
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/AcadColor.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
39
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
40
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
41
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
42
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
43
  </TR>
44
</TABLE>
45
</TD>
46
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
47
</EM>
48
</TD>
49
</TR>
50

    
51
<TR>
52
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
53
&nbsp;PREV CLASS&nbsp;
54
&nbsp;<A HREF="../../../../../com/iver/cit/javacad/util/AcadExtrusionCalculator.html" title="class in com.iver.cit.javacad.util"><B>NEXT CLASS</B></A></FONT></TD>
55
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
56
  <A HREF="../../../../../index.html" target="_top"><B>FRAMES</B></A>  &nbsp;
57
&nbsp;<A HREF="AcadColor.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
58
&nbsp;<SCRIPT type="text/javascript">
59
  <!--
60
  if(window==top) {
61
    document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
62
  }
63
  //-->
64
</SCRIPT>
65
<NOSCRIPT>
66
  <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>
67
</NOSCRIPT>
68

    
69
</FONT></TD>
70
</TR>
71
<TR>
72
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
73
  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
74
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
75
DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
76
</TR>
77
</TABLE>
78
<A NAME="skip-navbar_top"></A>
79
<!-- ========= END OF TOP NAVBAR ========= -->
80

    
81
<HR>
82
<!-- ======== START OF CLASS DATA ======== -->
83
<H2>
84
<FONT SIZE="-1">
85
com.iver.cit.javacad.util</FONT>
86
<BR>
87
Class AcadColor</H2>
88
<PRE>
89
java.lang.Object
90
  <IMG SRC="../../../../../resources/inherit.gif" ALT="extended by"><B>com.iver.cit.javacad.util.AcadColor</B>
91
</PRE>
92
<HR>
93
<DL>
94
<DT>public class <B>AcadColor</B><DT>extends java.lang.Object</DL>
95

    
96
<P>
97
This class allows to convert Autocad colors in Java colors
98
<P>
99

    
100
<P>
101
<DL>
102
<DT><B>Author:</B></DT>
103
  <DD>jmorell</DD>
104
</DL>
105
<HR>
106

    
107
<P>
108
<!-- ======== NESTED CLASS SUMMARY ======== -->
109

    
110

    
111
<!-- =========== FIELD SUMMARY =========== -->
112

    
113
<A NAME="field_summary"><!-- --></A>
114
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
115
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
116
<TD COLSPAN=2><FONT SIZE="+2">
117
<B>Field Summary</B></FONT></TD>
118
</TR>
119
<TR BGCOLOR="white" CLASS="TableRowColor">
120
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
121
<CODE>static&nbsp;int</CODE></FONT></TD>
122
<TD><CODE><B><A HREF="../../../../../com/iver/cit/javacad/util/AcadColor.html#BYBLOCK">BYBLOCK</A></B></CODE>
123

    
124
<BR>
125
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;When Autocad color is 0, then the color of the object is the color of the
126
 block where it is placed</TD>
127
</TR>
128
<TR BGCOLOR="white" CLASS="TableRowColor">
129
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
130
<CODE>static&nbsp;int</CODE></FONT></TD>
131
<TD><CODE><B><A HREF="../../../../../com/iver/cit/javacad/util/AcadColor.html#BYLAYER">BYLAYER</A></B></CODE>
132

    
133
<BR>
134
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;When Autocad color is 256, then the color of the object is the color of it
135
 layer</TD>
136
</TR>
137
</TABLE>
138
&nbsp;
139
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
140

    
141
<A NAME="constructor_summary"><!-- --></A>
142
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
143
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
144
<TD COLSPAN=2><FONT SIZE="+2">
145
<B>Constructor Summary</B></FONT></TD>
146
</TR>
147
<TR BGCOLOR="white" CLASS="TableRowColor">
148
<TD><CODE><B><A HREF="../../../../../com/iver/cit/javacad/util/AcadColor.html#AcadColor(int, double, double, double, double, double, double)">AcadColor</A></B>(int&nbsp;code,
149
          double&nbsp;r0,
150
          double&nbsp;g0,
151
          double&nbsp;b0,
152
          double&nbsp;r,
153
          double&nbsp;g,
154
          double&nbsp;b)</CODE>
155

    
156
<BR>
157
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This method is used to build the Autocad color table</TD>
158
</TR>
159
</TABLE>
160
&nbsp;
161
<!-- ========== METHOD SUMMARY =========== -->
162

    
163
<A NAME="method_summary"><!-- --></A>
164
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
165
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
166
<TD COLSPAN=2><FONT SIZE="+2">
167
<B>Method Summary</B></FONT></TD>
168
</TR>
169
<TR BGCOLOR="white" CLASS="TableRowColor">
170
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
171
<CODE>static&nbsp;java.awt.Color</CODE></FONT></TD>
172
<TD><CODE><B><A HREF="../../../../../com/iver/cit/javacad/util/AcadColor.html#getColor(int)">getColor</A></B>(int&nbsp;code)</CODE>
173

    
174
<BR>
175
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This method uses Autocad color table for convert a color in the Autocad color
176
 code in a java Color</TD>
177
</TR>
178
<TR BGCOLOR="white" CLASS="TableRowColor">
179
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
180
<CODE>static&nbsp;<A HREF="../../../../../com/iver/cit/javacad/util/AcadColor.html" title="class in com.iver.cit.javacad.util">AcadColor</A>[]</CODE></FONT></TD>
181
<TD><CODE><B><A HREF="../../../../../com/iver/cit/javacad/util/AcadColor.html#initTable()">initTable</A></B>()</CODE>
182

    
183
<BR>
184
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Initialize an Autocad color table</TD>
185
</TR>
186
</TABLE>
187
&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
188
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
189
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
190
<TD><B>Methods inherited from class java.lang.Object</B></TD>
191
</TR>
192
<TR BGCOLOR="white" CLASS="TableRowColor">
193
<TD><CODE>equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
194
</TR>
195
</TABLE>
196
&nbsp;
197
<P>
198

    
199
<!-- ============ FIELD DETAIL =========== -->
200

    
201
<A NAME="field_detail"><!-- --></A>
202
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
203
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
204
<TD COLSPAN=1><FONT SIZE="+2">
205
<B>Field Detail</B></FONT></TD>
206
</TR>
207
</TABLE>
208

    
209
<A NAME="BYLAYER"><!-- --></A><H3>
210
BYLAYER</H3>
211
<PRE>
212
public static final int <B>BYLAYER</B></PRE>
213
<DL>
214
<DD>When Autocad color is 256, then the color of the object is the color of it
215
 layer
216
<P>
217
<DL>
218
<DT><B>See Also:</B><DD><A HREF="../../../../../constant-values.html#com.iver.cit.javacad.util.AcadColor.BYLAYER">Constant Field Values</A></DL>
219
</DL>
220
<HR>
221

    
222
<A NAME="BYBLOCK"><!-- --></A><H3>
223
BYBLOCK</H3>
224
<PRE>
225
public static final int <B>BYBLOCK</B></PRE>
226
<DL>
227
<DD>When Autocad color is 0, then the color of the object is the color of the
228
 block where it is placed
229
<P>
230
<DL>
231
<DT><B>See Also:</B><DD><A HREF="../../../../../constant-values.html#com.iver.cit.javacad.util.AcadColor.BYBLOCK">Constant Field Values</A></DL>
232
</DL>
233

    
234
<!-- ========= CONSTRUCTOR DETAIL ======== -->
235

    
236
<A NAME="constructor_detail"><!-- --></A>
237
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
238
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
239
<TD COLSPAN=1><FONT SIZE="+2">
240
<B>Constructor Detail</B></FONT></TD>
241
</TR>
242
</TABLE>
243

    
244
<A NAME="AcadColor(int, double, double, double, double, double, double)"><!-- --></A><H3>
245
AcadColor</H3>
246
<PRE>
247
public <B>AcadColor</B>(int&nbsp;code,
248
                 double&nbsp;r0,
249
                 double&nbsp;g0,
250
                 double&nbsp;b0,
251
                 double&nbsp;r,
252
                 double&nbsp;g,
253
                 double&nbsp;b)</PRE>
254
<DL>
255
<DD>This method is used to build the Autocad color table
256
<P>
257
<DT><B>Parameters:</B><DD><CODE>code</CODE> - Code is the Autocad color number<DD><CODE>r0</CODE> - r0 is the red component (0-1)<DD><CODE>g0</CODE> - g0 is the green component (0-1)<DD><CODE>b0</CODE> - b0 is the blue component (0-1)<DD><CODE>r</CODE> - r0 is the red component (0-255)<DD><CODE>g</CODE> - g0 is the green component (0-255)<DD><CODE>b</CODE> - b0 is the blue component (0-255)</DL>
258

    
259
<!-- ============ METHOD DETAIL ========== -->
260

    
261
<A NAME="method_detail"><!-- --></A>
262
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
263
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
264
<TD COLSPAN=1><FONT SIZE="+2">
265
<B>Method Detail</B></FONT></TD>
266
</TR>
267
</TABLE>
268

    
269
<A NAME="getColor(int)"><!-- --></A><H3>
270
getColor</H3>
271
<PRE>
272
public static java.awt.Color <B>getColor</B>(int&nbsp;code)</PRE>
273
<DL>
274
<DD>This method uses Autocad color table for convert a color in the Autocad color
275
 code in a java Color
276
<P>
277
<DD><DL>
278
<DT><B>Parameters:</B><DD><CODE>code</CODE> - This int is the Autocad color number
279
<DT><B>Returns:</B><DD>Color Java Color corresponding to the Autocad color number argument</DL>
280
</DD>
281
</DL>
282
<HR>
283

    
284
<A NAME="initTable()"><!-- --></A><H3>
285
initTable</H3>
286
<PRE>
287
public static <A HREF="../../../../../com/iver/cit/javacad/util/AcadColor.html" title="class in com.iver.cit.javacad.util">AcadColor</A>[] <B>initTable</B>()</PRE>
288
<DL>
289
<DD>Initialize an Autocad color table
290
<P>
291
<DD><DL>
292

    
293
<DT><B>Returns:</B><DD>AcadColor[] Object of this class that represents Acad color to Java color
294
                    conversion</DL>
295
</DD>
296
</DL>
297
<!-- ========= END OF CLASS DATA ========= -->
298
<HR>
299

    
300

    
301
<!-- ======= START OF BOTTOM NAVBAR ====== -->
302
<A NAME="navbar_bottom"><!-- --></A>
303
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
304
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
305
<TR>
306
<TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
307
<A NAME="navbar_bottom_firstrow"><!-- --></A>
308
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
309
  <TR ALIGN="center" VALIGN="top">
310
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
311
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
312
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
313
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/AcadColor.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
314
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
315
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
316
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
317
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
318
  </TR>
319
</TABLE>
320
</TD>
321
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
322
</EM>
323
</TD>
324
</TR>
325

    
326
<TR>
327
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
328
&nbsp;PREV CLASS&nbsp;
329
&nbsp;<A HREF="../../../../../com/iver/cit/javacad/util/AcadExtrusionCalculator.html" title="class in com.iver.cit.javacad.util"><B>NEXT CLASS</B></A></FONT></TD>
330
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
331
  <A HREF="../../../../../index.html" target="_top"><B>FRAMES</B></A>  &nbsp;
332
&nbsp;<A HREF="AcadColor.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
333
&nbsp;<SCRIPT type="text/javascript">
334
  <!--
335
  if(window==top) {
336
    document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
337
  }
338
  //-->
339
</SCRIPT>
340
<NOSCRIPT>
341
  <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>
342
</NOSCRIPT>
343

    
344
</FONT></TD>
345
</TR>
346
<TR>
347
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
348
  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
349
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
350
DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
351
</TR>
352
</TABLE>
353
<A NAME="skip-navbar_bottom"></A>
354
<!-- ======== END OF BOTTOM NAVBAR ======= -->
355

    
356
<HR>
357

    
358
</BODY>
359
</HTML>