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