PageRenderTime 76ms CodeModel.GetById 54ms app.highlight 16ms RepoModel.GetById 1ms app.codeStats 0ms

/www/tags/NOV_07_2009/htdocs/api/org/gjt/sp/jedit/syntax/Chunk.html

#
HTML | 631 lines | 550 code | 67 blank | 14 comment | 0 complexity | 3e11dfbec9e8f6fb168239c9e9f7794d MD5 | raw file
  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.5.0_14) on Tue Jul 22 07:14:13 GMT-08:00 2008 -->
  6<TITLE>
  7Chunk (jEdit API)
  8</TITLE>
  9
 10<META NAME="keywords" CONTENT="org.gjt.sp.jedit.syntax.Chunk class">
 11
 12<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../stylesheet.css" TITLE="Style">
 13
 14
 15<NOSCRIPT>
 16</NOSCRIPT>
 17
 18</HEAD>
 19
 20<BODY BGCOLOR="white" >
 21
 22
 23<!-- ========= START OF TOP NAVBAR ======= -->
 24<A NAME="navbar_top"><!-- --></A>
 25<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
 26<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
 27<TR>
 28<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
 29<A NAME="navbar_top_firstrow"><!-- --></A>
 30<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
 31  <TR ALIGN="center" VALIGN="top">
 32  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
 33  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
 34  <TD BGCOLOR="#00008B" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
 35  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/Chunk.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
 36  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
 37  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
 38  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
 39  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
 40  </TR>
 41</TABLE>
 42</TD>
 43<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
 44</EM>
 45</TD>
 46</TR>
 47
 48<TR>
 49<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
 50&nbsp;PREV CLASS&nbsp;
 51&nbsp;<A HREF="../../../../../org/gjt/sp/jedit/syntax/DefaultTokenHandler.html" title="class in org.gjt.sp.jedit.syntax"><B>NEXT CLASS</B></A></FONT></TD>
 52<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
 53  <A HREF="../../../../../index.html?org/gjt/sp/jedit/syntax/Chunk.html" target="_top"><B>FRAMES</B></A>  &nbsp;
 54&nbsp;<A HREF="Chunk.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
 55&nbsp;
 56<NOSCRIPT>
 57  <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>
 58</NOSCRIPT>
 59
 60
 61</FONT></TD>
 62</TR>
 63<TR>
 64<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
 65  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>
 66<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
 67DETAIL:&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>
 68</TR>
 69</TABLE>
 70<A NAME="skip-navbar_top"></A>
 71<!-- ========= END OF TOP NAVBAR ========= -->
 72
 73<HR>
 74<!-- ======== START OF CLASS DATA ======== -->
 75<H2>
 76<FONT SIZE="-1">
 77org.gjt.sp.jedit.syntax</FONT>
 78<BR>
 79Class Chunk</H2>
 80<PRE>
 81java.lang.Object
 82  <IMG SRC="../../../../../resources/inherit.gif" ALT="extended by "><A HREF="../../../../../org/gjt/sp/jedit/syntax/Token.html" title="class in org.gjt.sp.jedit.syntax">org.gjt.sp.jedit.syntax.Token</A>
 83      <IMG SRC="../../../../../resources/inherit.gif" ALT="extended by "><B>org.gjt.sp.jedit.syntax.Chunk</B>
 84</PRE>
 85<HR>
 86<DL>
 87<DT><PRE>public class <B>Chunk</B><DT>extends <A HREF="../../../../../org/gjt/sp/jedit/syntax/Token.html" title="class in org.gjt.sp.jedit.syntax">Token</A></DL>
 88</PRE>
 89
 90<P>
 91A syntax token with extra information required for painting it
 92 on screen.
 93<P>
 94
 95<P>
 96<DL>
 97<DT><B>Since:</B></DT>
 98  <DD>jEdit 4.1pre1</DD>
 99</DL>
100<HR>
101
102<P>
103<!-- =========== FIELD SUMMARY =========== -->
104
105<A NAME="field_summary"><!-- --></A>
106<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
107<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
108<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
109<B>Field Summary</B></FONT></TH>
110</TR>
111<TR BGCOLOR="white" CLASS="TableRowColor">
112<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
113<CODE>&nbsp;boolean</CODE></FONT></TD>
114<TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/syntax/Chunk.html#accessable">accessable</A></B></CODE>
115
116<BR>
117&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
118</TR>
119<TR BGCOLOR="white" CLASS="TableRowColor">
120<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
121<CODE>&nbsp;java.awt.Color</CODE></FONT></TD>
122<TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/syntax/Chunk.html#background">background</A></B></CODE>
123
124<BR>
125&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
126</TR>
127<TR BGCOLOR="white" CLASS="TableRowColor">
128<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
129<CODE>&nbsp;java.awt.font.GlyphVector</CODE></FONT></TD>
130<TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/syntax/Chunk.html#gv">gv</A></B></CODE>
131
132<BR>
133&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
134</TR>
135<TR BGCOLOR="white" CLASS="TableRowColor">
136<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
137<CODE>&nbsp;boolean</CODE></FONT></TD>
138<TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/syntax/Chunk.html#initialized">initialized</A></B></CODE>
139
140<BR>
141&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
142</TR>
143<TR BGCOLOR="white" CLASS="TableRowColor">
144<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
145<CODE>&nbsp;java.lang.String</CODE></FONT></TD>
146<TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/syntax/Chunk.html#str">str</A></B></CODE>
147
148<BR>
149&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
150</TR>
151<TR BGCOLOR="white" CLASS="TableRowColor">
152<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
153<CODE>&nbsp;<A HREF="../../../../../org/gjt/sp/jedit/syntax/SyntaxStyle.html" title="class in org.gjt.sp.jedit.syntax">SyntaxStyle</A></CODE></FONT></TD>
154<TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/syntax/Chunk.html#style">style</A></B></CODE>
155
156<BR>
157&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
158</TR>
159<TR BGCOLOR="white" CLASS="TableRowColor">
160<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
161<CODE>&nbsp;boolean</CODE></FONT></TD>
162<TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/syntax/Chunk.html#visible">visible</A></B></CODE>
163
164<BR>
165&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
166</TR>
167<TR BGCOLOR="white" CLASS="TableRowColor">
168<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
169<CODE>&nbsp;float</CODE></FONT></TD>
170<TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/syntax/Chunk.html#width">width</A></B></CODE>
171
172<BR>
173&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
174</TR>
175</TABLE>
176&nbsp;<A NAME="fields_inherited_from_class_org.gjt.sp.jedit.syntax.Token"><!-- --></A>
177<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
178<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
179<TH ALIGN="left"><B>Fields inherited from class org.gjt.sp.jedit.syntax.<A HREF="../../../../../org/gjt/sp/jedit/syntax/Token.html" title="class in org.gjt.sp.jedit.syntax">Token</A></B></TH>
180</TR>
181<TR BGCOLOR="white" CLASS="TableRowColor">
182<TD><CODE><A HREF="../../../../../org/gjt/sp/jedit/syntax/Token.html#COMMENT1">COMMENT1</A>, <A HREF="../../../../../org/gjt/sp/jedit/syntax/Token.html#COMMENT2">COMMENT2</A>, <A HREF="../../../../../org/gjt/sp/jedit/syntax/Token.html#COMMENT3">COMMENT3</A>, <A HREF="../../../../../org/gjt/sp/jedit/syntax/Token.html#COMMENT4">COMMENT4</A>, <A HREF="../../../../../org/gjt/sp/jedit/syntax/Token.html#DIGIT">DIGIT</A>, <A HREF="../../../../../org/gjt/sp/jedit/syntax/Token.html#END">END</A>, <A HREF="../../../../../org/gjt/sp/jedit/syntax/Token.html#FUNCTION">FUNCTION</A>, <A HREF="../../../../../org/gjt/sp/jedit/syntax/Token.html#id">id</A>, <A HREF="../../../../../org/gjt/sp/jedit/syntax/Token.html#ID_COUNT">ID_COUNT</A>, <A HREF="../../../../../org/gjt/sp/jedit/syntax/Token.html#INVALID">INVALID</A>, <A HREF="../../../../../org/gjt/sp/jedit/syntax/Token.html#KEYWORD1">KEYWORD1</A>, <A HREF="../../../../../org/gjt/sp/jedit/syntax/Token.html#KEYWORD2">KEYWORD2</A>, <A HREF="../../../../../org/gjt/sp/jedit/syntax/Token.html#KEYWORD3">KEYWORD3</A>, <A HREF="../../../../../org/gjt/sp/jedit/syntax/Token.html#KEYWORD4">KEYWORD4</A>, <A HREF="../../../../../org/gjt/sp/jedit/syntax/Token.html#LABEL">LABEL</A>, <A HREF="../../../../../org/gjt/sp/jedit/syntax/Token.html#length">length</A>, <A HREF="../../../../../org/gjt/sp/jedit/syntax/Token.html#LITERAL1">LITERAL1</A>, <A HREF="../../../../../org/gjt/sp/jedit/syntax/Token.html#LITERAL2">LITERAL2</A>, <A HREF="../../../../../org/gjt/sp/jedit/syntax/Token.html#LITERAL3">LITERAL3</A>, <A HREF="../../../../../org/gjt/sp/jedit/syntax/Token.html#LITERAL4">LITERAL4</A>, <A HREF="../../../../../org/gjt/sp/jedit/syntax/Token.html#MARKUP">MARKUP</A>, <A HREF="../../../../../org/gjt/sp/jedit/syntax/Token.html#next">next</A>, <A HREF="../../../../../org/gjt/sp/jedit/syntax/Token.html#NULL">NULL</A>, <A HREF="../../../../../org/gjt/sp/jedit/syntax/Token.html#offset">offset</A>, <A HREF="../../../../../org/gjt/sp/jedit/syntax/Token.html#OPERATOR">OPERATOR</A>, <A HREF="../../../../../org/gjt/sp/jedit/syntax/Token.html#rules">rules</A>, <A HREF="../../../../../org/gjt/sp/jedit/syntax/Token.html#TOKEN_TYPES">TOKEN_TYPES</A></CODE></TD>
183</TR>
184</TABLE>
185&nbsp;
186<!-- ======== CONSTRUCTOR SUMMARY ======== -->
187
188<A NAME="constructor_summary"><!-- --></A>
189<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
190<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
191<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
192<B>Constructor Summary</B></FONT></TH>
193</TR>
194<TR BGCOLOR="white" CLASS="TableRowColor">
195<TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/syntax/Chunk.html#Chunk(byte, int, int, org.gjt.sp.jedit.syntax.ParserRuleSet, org.gjt.sp.jedit.syntax.SyntaxStyle[], byte)">Chunk</A></B>(byte&nbsp;id,
196      int&nbsp;offset,
197      int&nbsp;length,
198      <A HREF="../../../../../org/gjt/sp/jedit/syntax/ParserRuleSet.html" title="class in org.gjt.sp.jedit.syntax">ParserRuleSet</A>&nbsp;rules,
199      <A HREF="../../../../../org/gjt/sp/jedit/syntax/SyntaxStyle.html" title="class in org.gjt.sp.jedit.syntax">SyntaxStyle</A>[]&nbsp;styles,
200      byte&nbsp;defaultID)</CODE>
201
202<BR>
203&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
204</TR>
205<TR BGCOLOR="white" CLASS="TableRowColor">
206<TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/syntax/Chunk.html#Chunk(float, int, org.gjt.sp.jedit.syntax.ParserRuleSet)">Chunk</A></B>(float&nbsp;width,
207      int&nbsp;offset,
208      <A HREF="../../../../../org/gjt/sp/jedit/syntax/ParserRuleSet.html" title="class in org.gjt.sp.jedit.syntax">ParserRuleSet</A>&nbsp;rules)</CODE>
209
210<BR>
211&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
212</TR>
213</TABLE>
214&nbsp;
215<!-- ========== METHOD SUMMARY =========== -->
216
217<A NAME="method_summary"><!-- --></A>
218<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
219<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
220<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
221<B>Method Summary</B></FONT></TH>
222</TR>
223<TR BGCOLOR="white" CLASS="TableRowColor">
224<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
225<CODE>&nbsp;float[]</CODE></FONT></TD>
226<TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/syntax/Chunk.html#getPositions()">getPositions</A></B>()</CODE>
227
228<BR>
229&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
230</TR>
231<TR BGCOLOR="white" CLASS="TableRowColor">
232<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
233<CODE>&nbsp;void</CODE></FONT></TD>
234<TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/syntax/Chunk.html#init(javax.swing.text.Segment, javax.swing.text.TabExpander, float, java.awt.font.FontRenderContext)">init</A></B>(javax.swing.text.Segment&nbsp;seg,
235     javax.swing.text.TabExpander&nbsp;expander,
236     float&nbsp;x,
237     java.awt.font.FontRenderContext&nbsp;fontRenderContext)</CODE>
238
239<BR>
240&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
241</TR>
242<TR BGCOLOR="white" CLASS="TableRowColor">
243<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
244<CODE>static&nbsp;float</CODE></FONT></TD>
245<TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/syntax/Chunk.html#offsetToX(org.gjt.sp.jedit.syntax.Chunk, int)">offsetToX</A></B>(<A HREF="../../../../../org/gjt/sp/jedit/syntax/Chunk.html" title="class in org.gjt.sp.jedit.syntax">Chunk</A>&nbsp;chunks,
246          int&nbsp;offset)</CODE>
247
248<BR>
249&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Converts an offset in a chunk list into an x co-ordinate.</TD>
250</TR>
251<TR BGCOLOR="white" CLASS="TableRowColor">
252<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
253<CODE>&nbsp;float</CODE></FONT></TD>
254<TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/syntax/Chunk.html#offsetToX(int)">offsetToX</A></B>(int&nbsp;offset)</CODE>
255
256<BR>
257&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
258</TR>
259<TR BGCOLOR="white" CLASS="TableRowColor">
260<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
261<CODE>static&nbsp;float</CODE></FONT></TD>
262<TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/syntax/Chunk.html#paintChunkBackgrounds(org.gjt.sp.jedit.syntax.Chunk, java.awt.Graphics2D, float, float)">paintChunkBackgrounds</A></B>(<A HREF="../../../../../org/gjt/sp/jedit/syntax/Chunk.html" title="class in org.gjt.sp.jedit.syntax">Chunk</A>&nbsp;chunks,
263                      java.awt.Graphics2D&nbsp;gfx,
264                      float&nbsp;x,
265                      float&nbsp;y)</CODE>
266
267<BR>
268&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Paints the background highlights of a chunk list.</TD>
269</TR>
270<TR BGCOLOR="white" CLASS="TableRowColor">
271<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
272<CODE>static&nbsp;float</CODE></FONT></TD>
273<TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/syntax/Chunk.html#paintChunkList(org.gjt.sp.jedit.syntax.Chunk, java.awt.Graphics2D, float, float, boolean)">paintChunkList</A></B>(<A HREF="../../../../../org/gjt/sp/jedit/syntax/Chunk.html" title="class in org.gjt.sp.jedit.syntax">Chunk</A>&nbsp;chunks,
274               java.awt.Graphics2D&nbsp;gfx,
275               float&nbsp;x,
276               float&nbsp;y,
277               boolean&nbsp;glyphVector)</CODE>
278
279<BR>
280&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Paints a chunk list.</TD>
281</TR>
282<TR BGCOLOR="white" CLASS="TableRowColor">
283<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
284<CODE>static&nbsp;int</CODE></FONT></TD>
285<TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/syntax/Chunk.html#xToOffset(org.gjt.sp.jedit.syntax.Chunk, float, boolean)">xToOffset</A></B>(<A HREF="../../../../../org/gjt/sp/jedit/syntax/Chunk.html" title="class in org.gjt.sp.jedit.syntax">Chunk</A>&nbsp;chunks,
286          float&nbsp;x,
287          boolean&nbsp;round)</CODE>
288
289<BR>
290&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Converts an x co-ordinate in a chunk list into an offset.</TD>
291</TR>
292<TR BGCOLOR="white" CLASS="TableRowColor">
293<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
294<CODE>&nbsp;int</CODE></FONT></TD>
295<TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/syntax/Chunk.html#xToOffset(float, boolean)">xToOffset</A></B>(float&nbsp;x,
296          boolean&nbsp;round)</CODE>
297
298<BR>
299&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
300</TR>
301</TABLE>
302&nbsp;<A NAME="methods_inherited_from_class_org.gjt.sp.jedit.syntax.Token"><!-- --></A>
303<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
304<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
305<TH ALIGN="left"><B>Methods inherited from class org.gjt.sp.jedit.syntax.<A HREF="../../../../../org/gjt/sp/jedit/syntax/Token.html" title="class in org.gjt.sp.jedit.syntax">Token</A></B></TH>
306</TR>
307<TR BGCOLOR="white" CLASS="TableRowColor">
308<TD><CODE><A HREF="../../../../../org/gjt/sp/jedit/syntax/Token.html#stringToToken(java.lang.String)">stringToToken</A>, <A HREF="../../../../../org/gjt/sp/jedit/syntax/Token.html#tokenToString(byte)">tokenToString</A>, <A HREF="../../../../../org/gjt/sp/jedit/syntax/Token.html#toString()">toString</A></CODE></TD>
309</TR>
310</TABLE>
311&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
312<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
313<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
314<TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
315</TR>
316<TR BGCOLOR="white" CLASS="TableRowColor">
317<TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait</CODE></TD>
318</TR>
319</TABLE>
320&nbsp;
321<P>
322
323<!-- ============ FIELD DETAIL =========== -->
324
325<A NAME="field_detail"><!-- --></A>
326<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
327<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
328<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
329<B>Field Detail</B></FONT></TH>
330</TR>
331</TABLE>
332
333<A NAME="accessable"><!-- --></A><H3>
334accessable</H3>
335<PRE>
336public boolean <B>accessable</B></PRE>
337<DL>
338<DL>
339</DL>
340</DL>
341<HR>
342
343<A NAME="visible"><!-- --></A><H3>
344visible</H3>
345<PRE>
346public boolean <B>visible</B></PRE>
347<DL>
348<DL>
349</DL>
350</DL>
351<HR>
352
353<A NAME="initialized"><!-- --></A><H3>
354initialized</H3>
355<PRE>
356public boolean <B>initialized</B></PRE>
357<DL>
358<DL>
359</DL>
360</DL>
361<HR>
362
363<A NAME="style"><!-- --></A><H3>
364style</H3>
365<PRE>
366public <A HREF="../../../../../org/gjt/sp/jedit/syntax/SyntaxStyle.html" title="class in org.gjt.sp.jedit.syntax">SyntaxStyle</A> <B>style</B></PRE>
367<DL>
368<DL>
369</DL>
370</DL>
371<HR>
372
373<A NAME="background"><!-- --></A><H3>
374background</H3>
375<PRE>
376public java.awt.Color <B>background</B></PRE>
377<DL>
378<DL>
379</DL>
380</DL>
381<HR>
382
383<A NAME="width"><!-- --></A><H3>
384width</H3>
385<PRE>
386public float <B>width</B></PRE>
387<DL>
388<DL>
389</DL>
390</DL>
391<HR>
392
393<A NAME="gv"><!-- --></A><H3>
394gv</H3>
395<PRE>
396public java.awt.font.GlyphVector <B>gv</B></PRE>
397<DL>
398<DL>
399</DL>
400</DL>
401<HR>
402
403<A NAME="str"><!-- --></A><H3>
404str</H3>
405<PRE>
406public java.lang.String <B>str</B></PRE>
407<DL>
408<DL>
409</DL>
410</DL>
411
412<!-- ========= CONSTRUCTOR DETAIL ======== -->
413
414<A NAME="constructor_detail"><!-- --></A>
415<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
416<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
417<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
418<B>Constructor Detail</B></FONT></TH>
419</TR>
420</TABLE>
421
422<A NAME="Chunk(float, int, org.gjt.sp.jedit.syntax.ParserRuleSet)"><!-- --></A><H3>
423Chunk</H3>
424<PRE>
425public <B>Chunk</B>(float&nbsp;width,
426             int&nbsp;offset,
427             <A HREF="../../../../../org/gjt/sp/jedit/syntax/ParserRuleSet.html" title="class in org.gjt.sp.jedit.syntax">ParserRuleSet</A>&nbsp;rules)</PRE>
428<DL>
429</DL>
430<HR>
431
432<A NAME="Chunk(byte, int, int, org.gjt.sp.jedit.syntax.ParserRuleSet, org.gjt.sp.jedit.syntax.SyntaxStyle[], byte)"><!-- --></A><H3>
433Chunk</H3>
434<PRE>
435public <B>Chunk</B>(byte&nbsp;id,
436             int&nbsp;offset,
437             int&nbsp;length,
438             <A HREF="../../../../../org/gjt/sp/jedit/syntax/ParserRuleSet.html" title="class in org.gjt.sp.jedit.syntax">ParserRuleSet</A>&nbsp;rules,
439             <A HREF="../../../../../org/gjt/sp/jedit/syntax/SyntaxStyle.html" title="class in org.gjt.sp.jedit.syntax">SyntaxStyle</A>[]&nbsp;styles,
440             byte&nbsp;defaultID)</PRE>
441<DL>
442</DL>
443
444<!-- ============ METHOD DETAIL ========== -->
445
446<A NAME="method_detail"><!-- --></A>
447<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
448<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
449<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
450<B>Method Detail</B></FONT></TH>
451</TR>
452</TABLE>
453
454<A NAME="paintChunkList(org.gjt.sp.jedit.syntax.Chunk, java.awt.Graphics2D, float, float, boolean)"><!-- --></A><H3>
455paintChunkList</H3>
456<PRE>
457public static float <B>paintChunkList</B>(<A HREF="../../../../../org/gjt/sp/jedit/syntax/Chunk.html" title="class in org.gjt.sp.jedit.syntax">Chunk</A>&nbsp;chunks,
458                                   java.awt.Graphics2D&nbsp;gfx,
459                                   float&nbsp;x,
460                                   float&nbsp;y,
461                                   boolean&nbsp;glyphVector)</PRE>
462<DL>
463<DD>Paints a chunk list.
464<P>
465<DD><DL>
466<DT><B>Parameters:</B><DD><CODE>chunks</CODE> - The chunk list<DD><CODE>gfx</CODE> - The graphics context<DD><CODE>x</CODE> - The x co-ordinate<DD><CODE>y</CODE> - The y co-ordinate
467<DT><B>Returns:</B><DD>The width of the painted text<DT><B>Since:</B></DT>
468  <DD>jEdit 4.2pre1</DD>
469</DL>
470</DD>
471</DL>
472<HR>
473
474<A NAME="paintChunkBackgrounds(org.gjt.sp.jedit.syntax.Chunk, java.awt.Graphics2D, float, float)"><!-- --></A><H3>
475paintChunkBackgrounds</H3>
476<PRE>
477public static float <B>paintChunkBackgrounds</B>(<A HREF="../../../../../org/gjt/sp/jedit/syntax/Chunk.html" title="class in org.gjt.sp.jedit.syntax">Chunk</A>&nbsp;chunks,
478                                          java.awt.Graphics2D&nbsp;gfx,
479                                          float&nbsp;x,
480                                          float&nbsp;y)</PRE>
481<DL>
482<DD>Paints the background highlights of a chunk list.
483<P>
484<DD><DL>
485<DT><B>Parameters:</B><DD><CODE>chunks</CODE> - The chunk list<DD><CODE>gfx</CODE> - The graphics context<DD><CODE>x</CODE> - The x co-ordinate<DD><CODE>y</CODE> - The y co-ordinate
486<DT><B>Returns:</B><DD>The width of the painted backgrounds<DT><B>Since:</B></DT>
487  <DD>jEdit 4.2pre1</DD>
488</DL>
489</DD>
490</DL>
491<HR>
492
493<A NAME="offsetToX(org.gjt.sp.jedit.syntax.Chunk, int)"><!-- --></A><H3>
494offsetToX</H3>
495<PRE>
496public static float <B>offsetToX</B>(<A HREF="../../../../../org/gjt/sp/jedit/syntax/Chunk.html" title="class in org.gjt.sp.jedit.syntax">Chunk</A>&nbsp;chunks,
497                              int&nbsp;offset)</PRE>
498<DL>
499<DD>Converts an offset in a chunk list into an x co-ordinate.
500<P>
501<DD><DL>
502<DT><B>Parameters:</B><DD><CODE>chunks</CODE> - The chunk list<DD><CODE>offset</CODE> - The offset<DT><B>Since:</B></DT>
503  <DD>jEdit 4.1pre1</DD>
504</DL>
505</DD>
506</DL>
507<HR>
508
509<A NAME="xToOffset(org.gjt.sp.jedit.syntax.Chunk, float, boolean)"><!-- --></A><H3>
510xToOffset</H3>
511<PRE>
512public static int <B>xToOffset</B>(<A HREF="../../../../../org/gjt/sp/jedit/syntax/Chunk.html" title="class in org.gjt.sp.jedit.syntax">Chunk</A>&nbsp;chunks,
513                            float&nbsp;x,
514                            boolean&nbsp;round)</PRE>
515<DL>
516<DD>Converts an x co-ordinate in a chunk list into an offset.
517<P>
518<DD><DL>
519<DT><B>Parameters:</B><DD><CODE>chunks</CODE> - The chunk list<DD><CODE>x</CODE> - The x co-ordinate<DD><CODE>round</CODE> - Round up to next letter if past the middle of a letter?
520<DT><B>Returns:</B><DD>The offset within the line, or -1 if the x co-ordinate is too
521 far to the right<DT><B>Since:</B></DT>
522  <DD>jEdit 4.1pre1</DD>
523</DL>
524</DD>
525</DL>
526<HR>
527
528<A NAME="getPositions()"><!-- --></A><H3>
529getPositions</H3>
530<PRE>
531public final float[] <B>getPositions</B>()</PRE>
532<DL>
533<DD><DL>
534</DL>
535</DD>
536</DL>
537<HR>
538
539<A NAME="offsetToX(int)"><!-- --></A><H3>
540offsetToX</H3>
541<PRE>
542public final float <B>offsetToX</B>(int&nbsp;offset)</PRE>
543<DL>
544<DD><DL>
545</DL>
546</DD>
547</DL>
548<HR>
549
550<A NAME="xToOffset(float, boolean)"><!-- --></A><H3>
551xToOffset</H3>
552<PRE>
553public final int <B>xToOffset</B>(float&nbsp;x,
554                           boolean&nbsp;round)</PRE>
555<DL>
556<DD><DL>
557</DL>
558</DD>
559</DL>
560<HR>
561
562<A NAME="init(javax.swing.text.Segment, javax.swing.text.TabExpander, float, java.awt.font.FontRenderContext)"><!-- --></A><H3>
563init</H3>
564<PRE>
565public void <B>init</B>(javax.swing.text.Segment&nbsp;seg,
566                 javax.swing.text.TabExpander&nbsp;expander,
567                 float&nbsp;x,
568                 java.awt.font.FontRenderContext&nbsp;fontRenderContext)</PRE>
569<DL>
570<DD><DL>
571</DL>
572</DD>
573</DL>
574<!-- ========= END OF CLASS DATA ========= -->
575<HR>
576
577
578<!-- ======= START OF BOTTOM NAVBAR ====== -->
579<A NAME="navbar_bottom"><!-- --></A>
580<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
581<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
582<TR>
583<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
584<A NAME="navbar_bottom_firstrow"><!-- --></A>
585<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
586  <TR ALIGN="center" VALIGN="top">
587  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
588  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
589  <TD BGCOLOR="#00008B" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
590  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/Chunk.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
591  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
592  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
593  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
594  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
595  </TR>
596</TABLE>
597</TD>
598<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
599</EM>
600</TD>
601</TR>
602
603<TR>
604<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
605&nbsp;PREV CLASS&nbsp;
606&nbsp;<A HREF="../../../../../org/gjt/sp/jedit/syntax/DefaultTokenHandler.html" title="class in org.gjt.sp.jedit.syntax"><B>NEXT CLASS</B></A></FONT></TD>
607<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
608  <A HREF="../../../../../index.html?org/gjt/sp/jedit/syntax/Chunk.html" target="_top"><B>FRAMES</B></A>  &nbsp;
609&nbsp;<A HREF="Chunk.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
610&nbsp;
611<NOSCRIPT>
612  <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>
613</NOSCRIPT>
614
615
616</FONT></TD>
617</TR>
618<TR>
619<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
620  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>
621<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
622DETAIL:&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>
623</TR>
624</TABLE>
625<A NAME="skip-navbar_bottom"></A>
626<!-- ======== END OF BOTTOM NAVBAR ======= -->
627
628<HR>
629
630</BODY>
631</HTML>