📄 sensoreventagent.html
字号:
<DD>Gets the <code>SensorButtonListener</code> implementations bound to the given sensor and button.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>sensor</CODE> - the sensor of interest<DD><CODE>button</CODE> - the button of interest<DT><B>Returns:</B><DD>array of <code>SensorButtonListener</code> implementations bound to the given sensor and button, or null</DL></DD></DL><HR><A NAME="removeSensorButtonListener(javax.media.j3d.Sensor, com.sun.j3d.utils.behaviors.sensor.SensorButtonListener)"><!-- --></A><H3>removeSensorButtonListener</H3><PRE>public void <B>removeSensorButtonListener</B>(<A HREF="../../../../../../javax/media/j3d/Sensor.html" title="class in javax.media.j3d">Sensor</A> sensor, <A HREF="../../../../../../com/sun/j3d/utils/behaviors/sensor/SensorButtonListener.html" title="interface in com.sun.j3d.utils.behaviors.sensor">SensorButtonListener</A> listener)</PRE><DL><DD>Remove the given <code>SensorButtonListener</code> binding from the specified sensor.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>sensor</CODE> - the sensor from which to remove the listener<DD><CODE>listener</CODE> - the listener to be removed</DL></DD></DL><HR><A NAME="removeSensorButtonListener(com.sun.j3d.utils.behaviors.sensor.SensorButtonListener)"><!-- --></A><H3>removeSensorButtonListener</H3><PRE>public void <B>removeSensorButtonListener</B>(<A HREF="../../../../../../com/sun/j3d/utils/behaviors/sensor/SensorButtonListener.html" title="interface in com.sun.j3d.utils.behaviors.sensor">SensorButtonListener</A> listener)</PRE><DL><DD>Remove the given <code>SensorButtonListener</code> from all sensors.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>listener</CODE> - the listener to remove</DL></DD></DL><HR><A NAME="addSensorReadListener(javax.media.j3d.Sensor, com.sun.j3d.utils.behaviors.sensor.SensorReadListener)"><!-- --></A><H3>addSensorReadListener</H3><PRE>public void <B>addSensorReadListener</B>(<A HREF="../../../../../../javax/media/j3d/Sensor.html" title="class in javax.media.j3d">Sensor</A> sensor, <A HREF="../../../../../../com/sun/j3d/utils/behaviors/sensor/SensorReadListener.html" title="interface in com.sun.j3d.utils.behaviors.sensor">SensorReadListener</A> readListener)</PRE><DL><DD>Creates a binding of the specified sensor to the given <code>SensorReadListener</code>. The read listener is invoked every time <code>dispatchEvents</code> is called and a button listener is <i>not</i> invoked.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>sensor</CODE> - the sensor to be bound<DD><CODE>readListener</CODE> - the <code>SensorReadListener</code> implementation</DL></DD></DL><HR><A NAME="getSensorReadListeners(javax.media.j3d.Sensor)"><!-- --></A><H3>getSensorReadListeners</H3><PRE>public <A HREF="../../../../../../com/sun/j3d/utils/behaviors/sensor/SensorReadListener.html" title="interface in com.sun.j3d.utils.behaviors.sensor">SensorReadListener</A>[] <B>getSensorReadListeners</B>(<A HREF="../../../../../../javax/media/j3d/Sensor.html" title="class in javax.media.j3d">Sensor</A> sensor)</PRE><DL><DD>Gets the <code>SensorReadListeners</code> bound to the specified sensor.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>sensor</CODE> - the sensor of interest<DT><B>Returns:</B><DD>array of <code>SensorReadListeners</code> bound to the given sensor, or null</DL></DD></DL><HR><A NAME="removeSensorReadListener(javax.media.j3d.Sensor, com.sun.j3d.utils.behaviors.sensor.SensorReadListener)"><!-- --></A><H3>removeSensorReadListener</H3><PRE>public void <B>removeSensorReadListener</B>(<A HREF="../../../../../../javax/media/j3d/Sensor.html" title="class in javax.media.j3d">Sensor</A> sensor, <A HREF="../../../../../../com/sun/j3d/utils/behaviors/sensor/SensorReadListener.html" title="interface in com.sun.j3d.utils.behaviors.sensor">SensorReadListener</A> listener)</PRE><DL><DD>Remove the given <code>SensorReadListener</code> binding from the specified sensor.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>sensor</CODE> - the sensor from which to remove the listener<DD><CODE>listener</CODE> - the listener to be removed</DL></DD></DL><HR><A NAME="removeSensorReadListener(com.sun.j3d.utils.behaviors.sensor.SensorReadListener)"><!-- --></A><H3>removeSensorReadListener</H3><PRE>public void <B>removeSensorReadListener</B>(<A HREF="../../../../../../com/sun/j3d/utils/behaviors/sensor/SensorReadListener.html" title="interface in com.sun.j3d.utils.behaviors.sensor">SensorReadListener</A> listener)</PRE><DL><DD>Remove the given <code>SensorReadListener</code> from all sensors.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>listener</CODE> - the listener to remove</DL></DD></DL><HR><A NAME="removeSensorBinding(javax.media.j3d.Sensor)"><!-- --></A><H3>removeSensorBinding</H3><PRE>public void <B>removeSensorBinding</B>(<A HREF="../../../../../../javax/media/j3d/Sensor.html" title="class in javax.media.j3d">Sensor</A> sensor)</PRE><DL><DD>Remove all sensor listeners bound to the given sensor.<P><DD><DL></DL></DD></DL><HR><A NAME="getSensors()"><!-- --></A><H3>getSensors</H3><PRE>public <A HREF="../../../../../../javax/media/j3d/Sensor.html" title="class in javax.media.j3d">Sensor</A>[] <B>getSensors</B>()</PRE><DL><DD>Returns an array of references to all sensors that have been bound to listeners.<P><DD><DL><DT><B>Returns:</B><DD>an array of sensors, or null if no sensors have been bound</DL></DD></DL><HR><A NAME="dispatchEvents()"><!-- --></A><H3>dispatchEvents</H3><PRE>public void <B>dispatchEvents</B>()</PRE><DL><DD>Reads all sensor button state and dispatches events to registered button and read listeners. This method is intended to be called from the <code>processStimulus</code> implementation of a <code>Behavior</code> or the <code>pollAndProcessInput</code> method of an event-driven implementation of <code>InputDevice</code>.<P><DD><DL></DL></DD></DL><HR><A NAME="toString()"><!-- --></A><H3>toString</H3><PRE>public java.lang.String <B>toString</B>()</PRE><DL><DD><DL><DT><B>Overrides:</B><DD><CODE>toString</CODE> in class <CODE>java.lang.Object</CODE></DL></DD><DD><DL></DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ======= START OF BOTTOM NAVBAR ====== --><A NAME="navbar_bottom"><!-- --></A><A HREF="#skip-navbar_bottom" title="Skip navigation links"></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../../../com/sun/j3d/utils/behaviors/sensor/SensorEvent.html" title="class in com.sun.j3d.utils.behaviors.sensor"><B>PREV CLASS</B></A> <A HREF="../../../../../../com/sun/j3d/utils/behaviors/sensor/SensorGnomonEcho.html" title="class in com.sun.j3d.utils.behaviors.sensor"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../../../index.html?com/sun/j3d/utils/behaviors/sensor/SensorEventAgent.html" target="_top"><B>FRAMES</B></A> <A HREF="SensorEventAgent.html" target="_top"><B>NO FRAMES</B></A> <SCRIPT type="text/javascript"> <!-- if(window==top) { document.writeln('<A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>'); } //--></SCRIPT><NOSCRIPT> <A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A></NOSCRIPT></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><A NAME="skip-navbar_bottom"></A><!-- ======== END OF BOTTOM NAVBAR ======= --><HR><font size="-1">Copyright (c) 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to <a href="../../../../../../LICENSE-SPEC.html">license terms</a>.</BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -