⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mousebehavior.html

📁 这是一个JAVA的代码
💻 HTML
📖 第 1 页 / 共 3 页
字号:
<A NAME="MouseBehavior(int)"><!-- --></A><H3>MouseBehavior</H3><PRE>public <B>MouseBehavior</B>(int&nbsp;format)</PRE><DL><DD>Initializes standard fields. Note that this behavior still needs a transform group to work on (use setTransformGroup(tg)) and the transform group must add this behavior.<P><DT><B>Parameters:</B><DD><CODE>format</CODE> - flags</DL><HR><A NAME="MouseBehavior(java.awt.Component, javax.media.j3d.TransformGroup)"><!-- --></A><H3>MouseBehavior</H3><PRE>public <B>MouseBehavior</B>(java.awt.Component&nbsp;c,                     <A HREF="../../../../../../javax/media/j3d/TransformGroup.html">TransformGroup</A>&nbsp;transformGroup)</PRE><DL><DD>Creates a mouse behavior that uses AWT listeners and behavior posts rather than WakeupOnAWTEvent.  The behaviors is added to the specified Component and works on the given TransformGroup. A null component can be passed to specify the behaviors should use listeners.  Components can then be added to the behavior with the addListener(Component c) method.<P><DT><B>Parameters:</B><DD><CODE>c</CODE> - The Component to add the MouseListener and MouseMotionListener to.<DD><CODE>transformGroup</CODE> - The TransformGroup to operate on.<DT><B>Since:</B><DD>Java 3D 1.2.1</DD></DD></DL><HR><A NAME="MouseBehavior(java.awt.Component, int)"><!-- --></A><H3>MouseBehavior</H3><PRE>public <B>MouseBehavior</B>(java.awt.Component&nbsp;c,                     int&nbsp;format)</PRE><DL><DD>Creates a mouse behavior that uses AWT listeners and behavior posts rather than WakeupOnAWTEvent.  The behavior is added to the specified Component.  A null component can be passed to specify the behavior should use listeners.  Components can then be added to the behavior with the addListener(Component c) method. Note that this behavior still needs a transform group to work on (use setTransformGroup(tg)) and the transform group must add this behavior.<P><DT><B>Since:</B><DD>Java 3D 1.2.1</DD></DD></DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Method Detail</B></FONT></TD></TR></TABLE><A NAME="setTransformGroup(javax.media.j3d.TransformGroup)"><!-- --></A><H3>setTransformGroup</H3><PRE>public void <B>setTransformGroup</B>(<A HREF="../../../../../../javax/media/j3d/TransformGroup.html">TransformGroup</A>&nbsp;transformGroup)</PRE><DL><DD>Swap a new transformGroup replacing the old one. This allows  manipulators to operate on different nodes.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>transformGroup</CODE> - The *new* transform group to be manipulated.</DL></DD></DL><HR><A NAME="getTransformGroup()"><!-- --></A><H3>getTransformGroup</H3><PRE>public <A HREF="../../../../../../javax/media/j3d/TransformGroup.html">TransformGroup</A> <B>getTransformGroup</B>()</PRE><DL><DD>Return the transformGroup on which this node is operating<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="initialize()"><!-- --></A><H3>initialize</H3><PRE>public void <B>initialize</B>()</PRE><DL><DD>Initializes the behavior.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../../javax/media/j3d/Behavior.html#initialize()">initialize</A></CODE> in class <CODE><A HREF="../../../../../../javax/media/j3d/Behavior.html">Behavior</A></CODE></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="wakeup()"><!-- --></A><H3>wakeup</H3><PRE>public void <B>wakeup</B>()</PRE><DL><DD>Manually wake up the behavior. If MANUAL_WAKEUP flag was set upon  creation, you must wake up this behavior each time it is handled.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="processMouseEvent(java.awt.event.MouseEvent)"><!-- --></A><H3>processMouseEvent</H3><PRE>public void <B>processMouseEvent</B>(java.awt.event.MouseEvent&nbsp;evt)</PRE><DL><DD>Handles mouse events<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="processStimulus(java.util.Enumeration)"><!-- --></A><H3>processStimulus</H3><PRE>public abstract void <B>processStimulus</B>(java.util.Enumeration&nbsp;criteria)</PRE><DL><DD>All mouse manipulators must implement this.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../../javax/media/j3d/Behavior.html#processStimulus(java.util.Enumeration)">processStimulus</A></CODE> in class <CODE><A HREF="../../../../../../javax/media/j3d/Behavior.html">Behavior</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>criteria</CODE> - an enumeration of triggered wakeup criteria for this behavior</DL></DD></DL><HR><A NAME="addListener(java.awt.Component)"><!-- --></A><H3>addListener</H3><PRE>public void <B>addListener</B>(java.awt.Component&nbsp;c)</PRE><DL><DD>Adds this behavior as a MouseListener and MouseMotionListener to the specified component.  This method can only be called if the behavior was created with one of the constructors that takes a Component as a parameter.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>c</CODE> - The component to add the MouseListener and MouseMotionListener to.<DT><B>Throws:</B><DD><CODE>java.lang.IllegalStateException</CODE> - if the behavior was not created as a listener<DT><B>Since:</B><DD>Java 3D 1.2.1</DD></DD></DL></DD></DL><HR><A NAME="mouseClicked(java.awt.event.MouseEvent)"><!-- --></A><H3>mouseClicked</H3><PRE>public void <B>mouseClicked</B>(java.awt.event.MouseEvent&nbsp;e)</PRE><DL><DD><DL><DT><B>Specified by:</B><DD><CODE>mouseClicked</CODE> in interface <CODE>java.awt.event.MouseListener</CODE></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="mouseEntered(java.awt.event.MouseEvent)"><!-- --></A><H3>mouseEntered</H3><PRE>public void <B>mouseEntered</B>(java.awt.event.MouseEvent&nbsp;e)</PRE><DL><DD><DL><DT><B>Specified by:</B><DD><CODE>mouseEntered</CODE> in interface <CODE>java.awt.event.MouseListener</CODE></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="mouseExited(java.awt.event.MouseEvent)"><!-- --></A><H3>mouseExited</H3><PRE>public void <B>mouseExited</B>(java.awt.event.MouseEvent&nbsp;e)</PRE><DL><DD><DL><DT><B>Specified by:</B><DD><CODE>mouseExited</CODE> in interface <CODE>java.awt.event.MouseListener</CODE></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="mousePressed(java.awt.event.MouseEvent)"><!-- --></A><H3>mousePressed</H3><PRE>public void <B>mousePressed</B>(java.awt.event.MouseEvent&nbsp;e)</PRE><DL><DD><DL><DT><B>Specified by:</B><DD><CODE>mousePressed</CODE> in interface <CODE>java.awt.event.MouseListener</CODE></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="mouseReleased(java.awt.event.MouseEvent)"><!-- --></A><H3>mouseReleased</H3><PRE>public void <B>mouseReleased</B>(java.awt.event.MouseEvent&nbsp;e)</PRE><DL><DD><DL><DT><B>Specified by:</B><DD><CODE>mouseReleased</CODE> in interface <CODE>java.awt.event.MouseListener</CODE></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="mouseDragged(java.awt.event.MouseEvent)"><!-- --></A><H3>mouseDragged</H3><PRE>public void <B>mouseDragged</B>(java.awt.event.MouseEvent&nbsp;e)</PRE><DL><DD><DL><DT><B>Specified by:</B><DD><CODE>mouseDragged</CODE> in interface <CODE>java.awt.event.MouseMotionListener</CODE></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="mouseMoved(java.awt.event.MouseEvent)"><!-- --></A><H3>mouseMoved</H3><PRE>public void <B>mouseMoved</B>(java.awt.event.MouseEvent&nbsp;e)</PRE><DL><DD><DL><DT><B>Specified by:</B><DD><CODE>mouseMoved</CODE> in interface <CODE>java.awt.event.MouseMotionListener</CODE></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="setEnable(boolean)"><!-- --></A><H3>setEnable</H3><PRE>public void <B>setEnable</B>(boolean&nbsp;state)</PRE><DL><DD><B>Description copied from class: <CODE><A HREF="../../../../../../javax/media/j3d/Behavior.html">Behavior</A></CODE></B></DD><DD>Enables or disables this Behavior.  The default state is enabled.<P><DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../../../javax/media/j3d/Behavior.html#setEnable(boolean)">setEnable</A></CODE> in class <CODE><A HREF="../../../../../../javax/media/j3d/Behavior.html">Behavior</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>state</CODE> - true or false to enable or disable this Behavior</DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ========== START OF NAVBAR ========== --><A NAME="navbar_bottom"><!-- --></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"><TR><TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3">  <TR ALIGN="center" VALIGN="top">  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>  </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">&nbsp;PREV CLASS&nbsp;&nbsp;<A HREF="../../../../../../com/sun/j3d/utils/behaviors/mouse/MouseRotate.html"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">  <A HREF="../../../../../../index.html" TARGET="_top"><B>FRAMES</B></A>  &nbsp;&nbsp;<A HREF="MouseBehavior.html" TARGET="_top"><B>NO FRAMES</B></A>  &nbsp;&nbsp;<SCRIPT>  <!--  if(window==top) {    document.writeln('<A HREF="../../../../../../allclasses-noframe.html" TARGET=""><B>All Classes</B></A>');  }  //--></SCRIPT><NOSCRIPT><A HREF="../../../../../../allclasses-noframe.html" TARGET=""><B>All Classes</B></A></NOSCRIPT></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">  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><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">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></TR></TABLE><!-- =========== END OF NAVBAR =========== --><HR></BODY></HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -