📄 viewplatformawtbehavior.html
字号:
</DL></DL><HR><A NAME="targetTransform"><!-- --></A><H3>targetTransform</H3><PRE>protected <A HREF="../../../../../../javax/media/j3d/Transform3D.html" title="class in javax.media.j3d">Transform3D</A> <B>targetTransform</B></PRE><DL><DD>The target Transform3D for this behavior<P><DL></DL></DL><HR><A NAME="motion"><!-- --></A><H3>motion</H3><PRE>protected boolean <B>motion</B></PRE><DL><DD>Boolean for whether the mouse is in motion<P><DL></DL></DL><HR><A NAME="MOUSE_LISTENER"><!-- --></A><H3>MOUSE_LISTENER</H3><PRE>public static final int <B>MOUSE_LISTENER</B></PRE><DL><DD>Flag indicating Behavior should listen for Mouse Events<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../../../constant-values.html#com.sun.j3d.utils.behaviors.vp.ViewPlatformAWTBehavior.MOUSE_LISTENER">Constant Field Values</A></DL></DL><HR><A NAME="MOUSE_MOTION_LISTENER"><!-- --></A><H3>MOUSE_MOTION_LISTENER</H3><PRE>public static final int <B>MOUSE_MOTION_LISTENER</B></PRE><DL><DD>Flag indicating Behavior should listen for Mouse Motion Events<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../../../constant-values.html#com.sun.j3d.utils.behaviors.vp.ViewPlatformAWTBehavior.MOUSE_MOTION_LISTENER">Constant Field Values</A></DL></DL><HR><A NAME="KEY_LISTENER"><!-- --></A><H3>KEY_LISTENER</H3><PRE>public static final int <B>KEY_LISTENER</B></PRE><DL><DD>Flag indicating Behavior should listen for Key Events<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../../../constant-values.html#com.sun.j3d.utils.behaviors.vp.ViewPlatformAWTBehavior.KEY_LISTENER">Constant Field Values</A></DL></DL><HR><A NAME="MOUSE_WHEEL_LISTENER"><!-- --></A><H3>MOUSE_WHEEL_LISTENER</H3><PRE>public static final int <B>MOUSE_WHEEL_LISTENER</B></PRE><DL><DD>Flag indicating Behavior should listen for MouseWheel Events<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../../../constant-values.html#com.sun.j3d.utils.behaviors.vp.ViewPlatformAWTBehavior.MOUSE_WHEEL_LISTENER">Constant Field Values</A></DL></DL><HR><A NAME="canvases"><!-- --></A><H3>canvases</H3><PRE>protected <A HREF="../../../../../../javax/media/j3d/Canvas3D.html" title="class in javax.media.j3d">Canvas3D</A>[] <B>canvases</B></PRE><DL><DD>The Canvas3Ds from which this Behavior gets AWT events<P><DL></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="ViewPlatformAWTBehavior()"><!-- --></A><H3>ViewPlatformAWTBehavior</H3><PRE>protected <B>ViewPlatformAWTBehavior</B>()</PRE><DL><DD>Parameterless constructor for this behavior, intended for use by subclasses instantiated through ConfiguredUniverse. Such a constructor is required for configurable behaviors.<P><DL><DT><B>Since:</B></DT> <DD>Java 3D 1.3</DD></DL></DL><HR><A NAME="ViewPlatformAWTBehavior(int)"><!-- --></A><H3>ViewPlatformAWTBehavior</H3><PRE>protected <B>ViewPlatformAWTBehavior</B>(int listenerFlags)</PRE><DL><DD>Construct a behavior which listens for events specified by the given flags, intended for use by subclasses instantiated through ConfiguredUniverse.<P><DL><DT><B>Parameters:</B><DD><CODE>listenerFlags</CODE> - Indicates which listener should be registered, one or more of MOUSE_LISTENER, MOUSE_MOTION_LISTENER, KEY_LISTENER, MOUSE_WHEEL_LISTENER<DT><B>Since:</B></DT> <DD>Java 3D 1.3</DD></DL></DL><HR><A NAME="ViewPlatformAWTBehavior(javax.media.j3d.Canvas3D, int)"><!-- --></A><H3>ViewPlatformAWTBehavior</H3><PRE>public <B>ViewPlatformAWTBehavior</B>(<A HREF="../../../../../../javax/media/j3d/Canvas3D.html" title="class in javax.media.j3d">Canvas3D</A> c, int listenerFlags)</PRE><DL><DD>Constructs a new ViewPlatformAWTBehavior.<P><DL><DT><B>Parameters:</B><DD><CODE>c</CODE> - The Canvas3D on which to listen for events. If this is null a NullPointerException will be thrown.<DD><CODE>listenerFlags</CODE> - Indicates which listener should be registered, one or more of MOUSE_LISTENER, MOUSE_MOTION_LISTENER, KEY_LISTENER, MOUSE_WHEEL_LISTENER</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="setListenerFlags(int)"><!-- --></A><H3>setListenerFlags</H3><PRE>protected void <B>setListenerFlags</B>(int listenerFlags)</PRE><DL><DD>Sets listener flags for this behavior.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>listenerFlags</CODE> - Indicates which listener should be registered, one or more of MOUSE_LISTENER, MOUSE_MOTION_LISTENER, KEY_LISTENER, MOUSE_WHEEL_LISTENER<DT><B>Since:</B></DT> <DD>Java 3D 1.3</DD></DL></DD></DL><HR><A NAME="initialize()"><!-- --></A><H3>initialize</H3><PRE>public void <B>initialize</B>()</PRE><DL><DD>Initializes the behavior. NOTE: Applications should not call this method. It is called by the Java 3D behavior scheduler.<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" title="class in javax.media.j3d">Behavior</A></CODE></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="processStimulus(java.util.Enumeration)"><!-- --></A><H3>processStimulus</H3><PRE>public void <B>processStimulus</B>(java.util.Enumeration behEnum)</PRE><DL><DD>Process a stimulus meant for this behavior. NOTE: Applications should not call this method. It is called by the Java 3D behavior scheduler.<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" title="class in javax.media.j3d">Behavior</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>behEnum</CODE> - an enumeration of triggered wakeup criteria for this behavior</DL></DD></DL><HR><A NAME="setEnable(boolean)"><!-- --></A><H3>setEnable</H3><PRE>public void <B>setEnable</B>(boolean state)</PRE><DL><DD>Overload setEnable from Behavior. Adds/Removes the AWT listeners depending on the requested state.<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" title="class in javax.media.j3d">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><HR><A NAME="setViewingPlatform(com.sun.j3d.utils.universe.ViewingPlatform)"><!-- --></A><H3>setViewingPlatform</H3><PRE>public void <B>setViewingPlatform</B>(<A HREF="../../../../../../com/sun/j3d/utils/universe/ViewingPlatform.html" title="class in com.sun.j3d.utils.universe">ViewingPlatform</A> vp)</PRE><DL><DD>Sets the ViewingPlatform for this behavior. This method is called by the ViewingPlatform. If a sub-calls overrides this method, it must call super.setViewingPlatform(vp). NOTE: Applications should <i>not</i> call this method.<P><DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../../../com/sun/j3d/utils/behaviors/vp/ViewPlatformBehavior.html#setViewingPlatform(com.sun.j3d.utils.universe.ViewingPlatform)">setViewingPlatform</A></CODE> in class <CODE><A HREF="../../../../../../com/sun/j3d/utils/behaviors/vp/ViewPlatformBehavior.html" title="class in com.sun.j3d.utils.behaviors.vp">ViewPlatformBehavior</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>vp</CODE> - the target ViewingPlatform for this behavior</DL></DD></DL><HR><A NAME="processAWTEvents(java.awt.AWTEvent[])"><!-- --></A><H3>processAWTEvents</H3><PRE>protected abstract void <B>processAWTEvents</B>(java.awt.AWTEvent[] events)</PRE><DL><DD>This is called once per frame if there are any AWT events to process. The <code>motion</code> variable will be true when the method is called. If it is true when the method returns integrateTransforms will be called immediately. The AWTEvents are presented in the array in the order in which they arrived from AWT.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -