📄 mousebehavior.html
字号:
<PRE>protected int <B>x_last</B></PRE><DL><DL></DL></DL><HR><A NAME="y_last"><!-- --></A><H3>y_last</H3><PRE>protected int <B>y_last</B></PRE><DL><DL></DL></DL><HR><A NAME="transformGroup"><!-- --></A><H3>transformGroup</H3><PRE>protected <A HREF="../../../../../../javax/media/j3d/TransformGroup.html" title="class in javax.media.j3d">TransformGroup</A> <B>transformGroup</B></PRE><DL><DL></DL></DL><HR><A NAME="transformX"><!-- --></A><H3>transformX</H3><PRE>protected <A HREF="../../../../../../javax/media/j3d/Transform3D.html" title="class in javax.media.j3d">Transform3D</A> <B>transformX</B></PRE><DL><DL></DL></DL><HR><A NAME="transformY"><!-- --></A><H3>transformY</H3><PRE>protected <A HREF="../../../../../../javax/media/j3d/Transform3D.html" title="class in javax.media.j3d">Transform3D</A> <B>transformY</B></PRE><DL><DL></DL></DL><HR><A NAME="currXform"><!-- --></A><H3>currXform</H3><PRE>protected <A HREF="../../../../../../javax/media/j3d/Transform3D.html" title="class in javax.media.j3d">Transform3D</A> <B>currXform</B></PRE><DL><DL></DL></DL><HR><A NAME="buttonPress"><!-- --></A><H3>buttonPress</H3><PRE>protected boolean <B>buttonPress</B></PRE><DL><DL></DL></DL><HR><A NAME="reset"><!-- --></A><H3>reset</H3><PRE>protected boolean <B>reset</B></PRE><DL><DL></DL></DL><HR><A NAME="invert"><!-- --></A><H3>invert</H3><PRE>protected boolean <B>invert</B></PRE><DL><DL></DL></DL><HR><A NAME="wakeUp"><!-- --></A><H3>wakeUp</H3><PRE>protected boolean <B>wakeUp</B></PRE><DL><DL></DL></DL><HR><A NAME="flags"><!-- --></A><H3>flags</H3><PRE>protected int <B>flags</B></PRE><DL><DL></DL></DL><HR><A NAME="mouseq"><!-- --></A><H3>mouseq</H3><PRE>protected java.util.LinkedList <B>mouseq</B></PRE><DL><DL></DL></DL><HR><A NAME="enable"><!-- --></A><H3>enable</H3><PRE>protected boolean <B>enable</B></PRE><DL><DL></DL></DL><HR><A NAME="MANUAL_WAKEUP"><!-- --></A><H3>MANUAL_WAKEUP</H3><PRE>public static final int <B>MANUAL_WAKEUP</B></PRE><DL><DD>Set this flag if you want to manually wakeup the behavior.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../../../constant-values.html#com.sun.j3d.utils.behaviors.mouse.MouseBehavior.MANUAL_WAKEUP">Constant Field Values</A></DL></DL><HR><A NAME="INVERT_INPUT"><!-- --></A><H3>INVERT_INPUT</H3><PRE>public static final int <B>INVERT_INPUT</B></PRE><DL><DD>Set this flag if you want to invert the inputs. This is useful when the transform for the view platform is being changed instead of the transform for the object.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../../../constant-values.html#com.sun.j3d.utils.behaviors.mouse.MouseBehavior.INVERT_INPUT">Constant Field Values</A></DL></DL><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TH></TR></TABLE><A NAME="MouseBehavior(javax.media.j3d.TransformGroup)"><!-- --></A><H3>MouseBehavior</H3><PRE>public <B>MouseBehavior</B>(<A HREF="../../../../../../javax/media/j3d/TransformGroup.html" title="class in javax.media.j3d">TransformGroup</A> transformGroup)</PRE><DL><DD>Creates a mouse behavior object with a given transform group.<P><DL><DT><B>Parameters:</B><DD><CODE>transformGroup</CODE> - The transform group to be manipulated.</DL></DL><HR><A NAME="MouseBehavior(int)"><!-- --></A><H3>MouseBehavior</H3><PRE>public <B>MouseBehavior</B>(int 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><DL><DT><B>Parameters:</B><DD><CODE>format</CODE> - flags</DL></DL><HR><A NAME="MouseBehavior(java.awt.Component, javax.media.j3d.TransformGroup)"><!-- --></A><H3>MouseBehavior</H3><PRE>public <B>MouseBehavior</B>(java.awt.Component c, <A HREF="../../../../../../javax/media/j3d/TransformGroup.html" title="class in javax.media.j3d">TransformGroup</A> 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><DL><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></DT> <DD>Java 3D 1.2.1</DD></DL></DL><HR><A NAME="MouseBehavior(java.awt.Component, int)"><!-- --></A><H3>MouseBehavior</H3><PRE>public <B>MouseBehavior</B>(java.awt.Component c, int 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><DL><DT><B>Parameters:</B><DD><CODE>format</CODE> - interesting flags (wakeup conditions).<DT><B>Since:</B></DT> <DD>Java 3D 1.2.1</DD></DL></DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"><B>Method Detail</B></FONT></TH></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" title="class in javax.media.j3d">TransformGroup</A> 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" title="class in javax.media.j3d">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>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -