PageRenderTime 26ms CodeModel.GetById 12ms app.highlight 9ms RepoModel.GetById 2ms app.codeStats 0ms

/documentation/utils/widget/com/google/marvin/widget/GestureOverlay.html

http://eyes-free.googlecode.com/
HTML | 354 lines | 289 code | 42 blank | 23 comment | 0 complexity | 6dd891438b97f56a45752004947d627c 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.6.0_16) on Fri Feb 26 16:07:36 PST 2010 -->
  6<TITLE>
  7GestureOverlay
  8</TITLE>
  9
 10<META NAME="date" CONTENT="2010-02-26">
 11
 12<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style">
 13
 14<SCRIPT type="text/javascript">
 15function windowTitle()
 16{
 17    if (location.href.indexOf('is-external=true') == -1) {
 18        parent.document.title="GestureOverlay";
 19    }
 20}
 21</SCRIPT>
 22<NOSCRIPT>
 23</NOSCRIPT>
 24
 25</HEAD>
 26
 27<BODY BGCOLOR="white" onload="windowTitle();">
 28<HR>
 29
 30
 31<!-- ========= START OF TOP NAVBAR ======= -->
 32<A NAME="navbar_top"><!-- --></A>
 33<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
 34<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
 35<TR>
 36<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
 37<A NAME="navbar_top_firstrow"><!-- --></A>
 38<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
 39  <TR ALIGN="center" VALIGN="top">
 40  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../com/google/marvin/widget/package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
 41  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
 42  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
 43  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
 44  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
 45  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
 46  </TR>
 47</TABLE>
 48</TD>
 49<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
 50</EM>
 51</TD>
 52</TR>
 53
 54<TR>
 55<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
 56&nbsp;PREV CLASS&nbsp;
 57&nbsp;<A HREF="../../../../com/google/marvin/widget/GestureOverlay.Gesture.html" title="class in com.google.marvin.widget"><B>NEXT CLASS</B></A></FONT></TD>
 58<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
 59  <A HREF="../../../../index.html?com/google/marvin/widget/GestureOverlay.html" target="_top"><B>FRAMES</B></A>  &nbsp;
 60&nbsp;<A HREF="GestureOverlay.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
 61&nbsp;<SCRIPT type="text/javascript">
 62  <!--
 63  if(window==top) {
 64    document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
 65  }
 66  //-->
 67</SCRIPT>
 68<NOSCRIPT>
 69  <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
 70</NOSCRIPT>
 71
 72
 73</FONT></TD>
 74</TR>
 75<TR>
 76<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
 77  SUMMARY:&nbsp;<A HREF="#nested_class_summary">NESTED</A>&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
 78<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
 79DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
 80</TR>
 81</TABLE>
 82<A NAME="skip-navbar_top"></A>
 83<!-- ========= END OF TOP NAVBAR ========= -->
 84
 85<HR>
 86<!-- ======== START OF CLASS DATA ======== -->
 87<H2>
 88<FONT SIZE="-1">
 89com.google.marvin.widget</FONT>
 90<BR>
 91Class GestureOverlay</H2>
 92<PRE>
 93java.lang.Object
 94  <IMG SRC="../../../../resources/inherit.gif" ALT="extended by ">View
 95      <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><B>com.google.marvin.widget.GestureOverlay</B>
 96</PRE>
 97<HR>
 98<DL>
 99<DT><PRE>public class <B>GestureOverlay</B><DT>extends View</DL>
100</PRE>
101
102<P>
103A transparent overlay which catches all touch events and uses a call back to
104 return the gesture that the user performed.
105<P>
106
107<P>
108<HR>
109
110<P>
111<!-- ======== NESTED CLASS SUMMARY ======== -->
112
113<A NAME="nested_class_summary"><!-- --></A>
114<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
115<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
116<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
117<B>Nested Class Summary</B></FONT></TH>
118</TR>
119<TR BGCOLOR="white" CLASS="TableRowColor">
120<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
121<CODE>static&nbsp;class</CODE></FONT></TD>
122<TD><CODE><B><A HREF="../../../../com/google/marvin/widget/GestureOverlay.Gesture.html" title="class in com.google.marvin.widget">GestureOverlay.Gesture</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>static&nbsp;interface</CODE></FONT></TD>
130<TD><CODE><B><A HREF="../../../../com/google/marvin/widget/GestureOverlay.GestureListener.html" title="interface in com.google.marvin.widget">GestureOverlay.GestureListener</A></B></CODE>
131
132<BR>
133&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The callback interface to be used when a gesture is detected.</TD>
134</TR>
135</TABLE>
136&nbsp;
137<!-- ======== CONSTRUCTOR SUMMARY ======== -->
138
139<A NAME="constructor_summary"><!-- --></A>
140<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
141<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
142<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
143<B>Constructor Summary</B></FONT></TH>
144</TR>
145<TR BGCOLOR="white" CLASS="TableRowColor">
146<TD><CODE><B><A HREF="../../../../com/google/marvin/widget/GestureOverlay.html#GestureOverlay(Context)">GestureOverlay</A></B>(Context&nbsp;context)</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><CODE><B><A HREF="../../../../com/google/marvin/widget/GestureOverlay.html#GestureOverlay(Context, com.google.marvin.widget.GestureOverlay.GestureListener)">GestureOverlay</A></B>(Context&nbsp;context,
153               <A HREF="../../../../com/google/marvin/widget/GestureOverlay.GestureListener.html" title="interface in com.google.marvin.widget">GestureOverlay.GestureListener</A>&nbsp;callback)</CODE>
154
155<BR>
156&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
157</TR>
158</TABLE>
159&nbsp;
160<!-- ========== METHOD SUMMARY =========== -->
161
162<A NAME="method_summary"><!-- --></A>
163<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
164<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
165<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
166<B>Method Summary</B></FONT></TH>
167</TR>
168<TR BGCOLOR="white" CLASS="TableRowColor">
169<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
170<CODE>&nbsp;int</CODE></FONT></TD>
171<TD><CODE><B><A HREF="../../../../com/google/marvin/widget/GestureOverlay.html#evalMotion(double, double)">evalMotion</A></B>(double&nbsp;x,
172           double&nbsp;y)</CODE>
173
174<BR>
175&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
176</TR>
177<TR BGCOLOR="white" CLASS="TableRowColor">
178<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
179<CODE>&nbsp;boolean</CODE></FONT></TD>
180<TD><CODE><B><A HREF="../../../../com/google/marvin/widget/GestureOverlay.html#onTouchEvent(MotionEvent)">onTouchEvent</A></B>(MotionEvent&nbsp;event)</CODE>
181
182<BR>
183&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
184</TR>
185<TR BGCOLOR="white" CLASS="TableRowColor">
186<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
187<CODE>&nbsp;void</CODE></FONT></TD>
188<TD><CODE><B><A HREF="../../../../com/google/marvin/widget/GestureOverlay.html#setGestureListener(com.google.marvin.widget.GestureOverlay.GestureListener)">setGestureListener</A></B>(<A HREF="../../../../com/google/marvin/widget/GestureOverlay.GestureListener.html" title="interface in com.google.marvin.widget">GestureOverlay.GestureListener</A>&nbsp;callback)</CODE>
189
190<BR>
191&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
192</TR>
193<TR BGCOLOR="white" CLASS="TableRowColor">
194<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
195<CODE>&nbsp;void</CODE></FONT></TD>
196<TD><CODE><B><A HREF="../../../../com/google/marvin/widget/GestureOverlay.html#setMinimumRadius(int)">setMinimumRadius</A></B>(int&nbsp;minRadius)</CODE>
197
198<BR>
199&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
200</TR>
201</TABLE>
202&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
203<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
204<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
205<TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
206</TR>
207<TR BGCOLOR="white" CLASS="TableRowColor">
208<TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
209</TR>
210</TABLE>
211&nbsp;
212<P>
213
214<!-- ========= CONSTRUCTOR DETAIL ======== -->
215
216<A NAME="constructor_detail"><!-- --></A>
217<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
218<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
219<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
220<B>Constructor Detail</B></FONT></TH>
221</TR>
222</TABLE>
223
224<A NAME="GestureOverlay(Context, com.google.marvin.widget.GestureOverlay.GestureListener)"><!-- --></A><H3>
225GestureOverlay</H3>
226<PRE>
227public <B>GestureOverlay</B>(Context&nbsp;context,
228                      <A HREF="../../../../com/google/marvin/widget/GestureOverlay.GestureListener.html" title="interface in com.google.marvin.widget">GestureOverlay.GestureListener</A>&nbsp;callback)</PRE>
229<DL>
230</DL>
231<HR>
232
233<A NAME="GestureOverlay(Context)"><!-- --></A><H3>
234GestureOverlay</H3>
235<PRE>
236public <B>GestureOverlay</B>(Context&nbsp;context)</PRE>
237<DL>
238</DL>
239
240<!-- ============ METHOD DETAIL ========== -->
241
242<A NAME="method_detail"><!-- --></A>
243<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
244<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
245<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
246<B>Method Detail</B></FONT></TH>
247</TR>
248</TABLE>
249
250<A NAME="setGestureListener(com.google.marvin.widget.GestureOverlay.GestureListener)"><!-- --></A><H3>
251setGestureListener</H3>
252<PRE>
253public void <B>setGestureListener</B>(<A HREF="../../../../com/google/marvin/widget/GestureOverlay.GestureListener.html" title="interface in com.google.marvin.widget">GestureOverlay.GestureListener</A>&nbsp;callback)</PRE>
254<DL>
255<DD><DL>
256</DL>
257</DD>
258</DL>
259<HR>
260
261<A NAME="setMinimumRadius(int)"><!-- --></A><H3>
262setMinimumRadius</H3>
263<PRE>
264public void <B>setMinimumRadius</B>(int&nbsp;minRadius)</PRE>
265<DL>
266<DD><DL>
267</DL>
268</DD>
269</DL>
270<HR>
271
272<A NAME="onTouchEvent(MotionEvent)"><!-- --></A><H3>
273onTouchEvent</H3>
274<PRE>
275public boolean <B>onTouchEvent</B>(MotionEvent&nbsp;event)</PRE>
276<DL>
277<DD><DL>
278</DL>
279</DD>
280</DL>
281<HR>
282
283<A NAME="evalMotion(double, double)"><!-- --></A><H3>
284evalMotion</H3>
285<PRE>
286public int <B>evalMotion</B>(double&nbsp;x,
287                      double&nbsp;y)</PRE>
288<DL>
289<DD><DL>
290</DL>
291</DD>
292</DL>
293<!-- ========= END OF CLASS DATA ========= -->
294<HR>
295
296
297<!-- ======= START OF BOTTOM NAVBAR ====== -->
298<A NAME="navbar_bottom"><!-- --></A>
299<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
300<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
301<TR>
302<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
303<A NAME="navbar_bottom_firstrow"><!-- --></A>
304<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
305  <TR ALIGN="center" VALIGN="top">
306  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../com/google/marvin/widget/package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
307  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
308  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
309  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
310  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
311  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
312  </TR>
313</TABLE>
314</TD>
315<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
316</EM>
317</TD>
318</TR>
319
320<TR>
321<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
322&nbsp;PREV CLASS&nbsp;
323&nbsp;<A HREF="../../../../com/google/marvin/widget/GestureOverlay.Gesture.html" title="class in com.google.marvin.widget"><B>NEXT CLASS</B></A></FONT></TD>
324<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
325  <A HREF="../../../../index.html?com/google/marvin/widget/GestureOverlay.html" target="_top"><B>FRAMES</B></A>  &nbsp;
326&nbsp;<A HREF="GestureOverlay.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
327&nbsp;<SCRIPT type="text/javascript">
328  <!--
329  if(window==top) {
330    document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
331  }
332  //-->
333</SCRIPT>
334<NOSCRIPT>
335  <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
336</NOSCRIPT>
337
338
339</FONT></TD>
340</TR>
341<TR>
342<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
343  SUMMARY:&nbsp;<A HREF="#nested_class_summary">NESTED</A>&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
344<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
345DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
346</TR>
347</TABLE>
348<A NAME="skip-navbar_bottom"></A>
349<!-- ======== END OF BOTTOM NAVBAR ======= -->
350
351<HR>
352
353</BODY>
354</HTML>