<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <!-- NewPage --> <html lang="en"> <head> <!-- Generated by javadoc (1.8.0_141) on Mon Oct 30 09:22:28 GMT 2017 --> <title>RotateEvent (JavaFX 8)</title> <meta name="date" content="2017-10-30"> <link rel="stylesheet" type="text/css" href="../../../stylesheet.css" title="Style"> <script type="text/javascript" src="../../../script.js"></script> </head> <body> <script type="text/javascript"><!-- try { if (location.href.indexOf('is-external=true') == -1) { parent.document.title="RotateEvent (JavaFX 8)"; } } catch(err) { } //--> var methods = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10}; var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]}; var altColor = "altColor"; var rowColor = "rowColor"; var tableTab = "tableTab"; var activeTableTab = "activeTableTab"; </script> <noscript> <div>JavaScript is disabled on your browser.</div> </noscript> <!-- ========= START OF TOP NAVBAR ======= --> <div class="topNav"><a name="navbar.top"> <!-- --> </a> <div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div> <a name="navbar.top.firstrow"> <!-- --> </a> <ul class="navList" title="Navigation"> <li><a href="../../../overview-summary.html">Overview</a></li> <li><a href="package-summary.html">Package</a></li> <li class="navBarCell1Rev">Class</li> <li><a href="class-use/RotateEvent.html">Use</a></li> <li><a href="package-tree.html">Tree</a></li> <li><a href="../../../deprecated-list.html">Deprecated</a></li> <li><a href="../../../index-all.html">Index</a></li> <li><a href="../../../help-doc.html">Help</a></li> </ul> <div class="aboutLanguage">JavaFX 8</div> </div> <div class="subNav"> <ul class="navList"> <li><a href="../../../javafx/scene/input/PickResult.html" title="class in javafx.scene.input"><span class="typeNameLink">Prev Class</span></a></li> <li><a href="../../../javafx/scene/input/ScrollEvent.html" title="class in javafx.scene.input"><span class="typeNameLink">Next Class</span></a></li> </ul> <ul class="navList"> <li><a href="../../../index.html?javafx/scene/input/RotateEvent.html" target="_top">Frames</a></li> <li><a href="RotateEvent.html" target="_top">No Frames</a></li> </ul> <ul class="navList" id="allclasses_navbar_top"> <li><a href="../../../allclasses-noframe.html">All Classes</a></li> </ul> <div> <script type="text/javascript"><!-- allClassesLink = document.getElementById("allclasses_navbar_top"); if(window==top) { allClassesLink.style.display = "block"; } else { allClassesLink.style.display = "none"; } //--> </script> </div> <div> <ul class="subNavList"> <li>Summary: </li> <li>Nested | </li> <li><a href="#field.summary">Field</a> | </li> <li><a href="#constructor.summary">Constr</a> | </li> <li><a href="#method.summary">Method</a></li> </ul> <ul class="subNavList"> <li>Detail: </li> <li><a href="#field.detail">Field</a> | </li> <li><a href="#constructor.detail">Constr</a> | </li> <li><a href="#method.detail">Method</a></li> </ul> </div> <a name="skip.navbar.top"> <!-- --> </a></div> <!-- ========= END OF TOP NAVBAR ========= --> <!-- ======== START OF CLASS DATA ======== --> <div class="header"> <div class="subTitle">javafx.scene.input</div> <h2 title="Class RotateEvent" class="title">Class RotateEvent</h2> </div> <div class="contentContainer"> <ul class="inheritance"> <li>java.lang.Object</li> <li> <ul class="inheritance"> <li>java.util.EventObject</li> <li> <ul class="inheritance"> <li><a href="../../../javafx/event/Event.html" title="class in javafx.event">javafx.event.Event</a></li> <li> <ul class="inheritance"> <li><a href="../../../javafx/scene/input/InputEvent.html" title="class in javafx.scene.input">javafx.scene.input.InputEvent</a></li> <li> <ul class="inheritance"> <li><a href="../../../javafx/scene/input/GestureEvent.html" title="class in javafx.scene.input">javafx.scene.input.GestureEvent</a></li> <li> <ul class="inheritance"> <li>javafx.scene.input.RotateEvent</li> </ul> </li> </ul> </li> </ul> </li> </ul> </li> </ul> </li> </ul> <div class="description"> <ul class="blockList"> <li class="blockList"> <dl> <dt>All Implemented Interfaces:</dt> <dd>java.io.Serializable, java.lang.Cloneable</dd> </dl> <hr> <br> <pre>public final class <span class="typeNameLabel">RotateEvent</span> extends <a href="../../../javafx/scene/input/GestureEvent.html" title="class in javafx.scene.input">GestureEvent</a></pre> <div class="block">Rotate event indicates that user performed rotating gesture such as dragging two fingers around each other on track pad, touch screen or other similar device. <p> The event is delivered to the top-most node picked on the gesture coordinates in time of the gesture start - the whole gesture is delivered to the same node even if the coordinates change during the gesture. <p> The event provides two values: <code>angle</code> is the rotation angle of this event, <code>totalAngle</code> is the rotation angle of the whole gesture. Both values are in degrees and work well when added to the node's <code>rotate</code> property value (positive values for clockwise rotation). <p> As all gestures, rotation can be direct (performed directly at the concrete coordinates as on touch screen - the center point among all the touches is usually used as the gesture coordinates) or indirect (performed indirectly as on track pad - the mouse cursor location is usually used as the gesture coordinates). <p> The gesture's <code>ROTATE</code> events are surounded by <code>ROTATION_STARTED</code> and <code>ROTATION_FINISHED</code> events. If rotation inertia is active on the given platform, some <code>ROTATE</code> events with <code>isInertia()</code> returning <code>true</code> can come after <code>ROTATION_FINISHED</code>.</div> <dl> <dt><span class="simpleTagLabel">Since:</span></dt> <dd>JavaFX 2.2</dd> <dt><span class="seeLabel">See Also:</span></dt> <dd><a href="../../../serialized-form.html#javafx.scene.input.RotateEvent">Serialized Form</a></dd> </dl> </li> </ul> </div> <div class="summary"> <ul class="blockList"> <li class="blockList"> <!-- =========== FIELD SUMMARY =========== --> <ul class="blockList"> <li class="blockList"><a name="field.summary"> <!-- --> </a> <h3>Field Summary</h3> <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation"> <caption><span>Fields</span><span class="tabEnd"> </span></caption> <tr> <th class="colFirst" scope="col">Modifier and Type</th> <th class="colLast" scope="col">Field and Description</th> </tr> <tr class="altColor"> <td class="colFirst"><code>static <a href="../../../javafx/event/EventType.html" title="class in javafx.event">EventType</a><<a href="../../../javafx/scene/input/RotateEvent.html" title="class in javafx.scene.input">RotateEvent</a>></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../javafx/scene/input/RotateEvent.html#ANY">ANY</a></span></code> <div class="block">Common supertype for all rotate event types.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>static <a href="../../../javafx/event/EventType.html" title="class in javafx.event">EventType</a><<a href="../../../javafx/scene/input/RotateEvent.html" title="class in javafx.scene.input">RotateEvent</a>></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../javafx/scene/input/RotateEvent.html#ROTATE">ROTATE</a></span></code> <div class="block">This event occurs when user performs a rotating gesture such as dragging two fingers around each other.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>static <a href="../../../javafx/event/EventType.html" title="class in javafx.event">EventType</a><<a href="../../../javafx/scene/input/RotateEvent.html" title="class in javafx.scene.input">RotateEvent</a>></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../javafx/scene/input/RotateEvent.html#ROTATION_FINISHED">ROTATION_FINISHED</a></span></code> <div class="block">This event occurs when a rotating gesture ends.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>static <a href="../../../javafx/event/EventType.html" title="class in javafx.event">EventType</a><<a href="../../../javafx/scene/input/RotateEvent.html" title="class in javafx.scene.input">RotateEvent</a>></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../javafx/scene/input/RotateEvent.html#ROTATION_STARTED">ROTATION_STARTED</a></span></code> <div class="block">This event occurs when a rotating gesture is detected.</div> </td> </tr> </table> <ul class="blockList"> <li class="blockList"><a name="fields.inherited.from.class.javafx.event.Event"> <!-- --> </a> <h3>Fields inherited from class javafx.event.<a href="../../../javafx/event/Event.html" title="class in javafx.event">Event</a></h3> <code><a href="../../../javafx/event/Event.html#consumed">consumed</a>, <a href="../../../javafx/event/Event.html#eventType">eventType</a>, <a href="../../../javafx/event/Event.html#NULL_SOURCE_TARGET">NULL_SOURCE_TARGET</a>, <a href="../../../javafx/event/Event.html#target">target</a></code></li> </ul> <ul class="blockList"> <li class="blockList"><a name="fields.inherited.from.class.java.util.EventObject"> <!-- --> </a> <h3>Fields inherited from class java.util.EventObject</h3> <code>source</code></li> </ul> </li> </ul> <!-- ======== CONSTRUCTOR SUMMARY ======== --> <ul class="blockList"> <li class="blockList"><a name="constructor.summary"> <!-- --> </a> <h3>Constructor Summary</h3> <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation"> <caption><span>Constructors</span><span class="tabEnd"> </span></caption> <tr> <th class="colOne" scope="col">Constructor and Description</th> </tr> <tr class="altColor"> <td class="colOne"><code><span class="memberNameLink"><a href="../../../javafx/scene/input/RotateEvent.html#RotateEvent-javafx.event.EventType-double-double-double-double-boolean-boolean-boolean-boolean-boolean-boolean-double-double-javafx.scene.input.PickResult-">RotateEvent</a></span>(<a href="../../../javafx/event/EventType.html" title="class in javafx.event">EventType</a><<a href="../../../javafx/scene/input/RotateEvent.html" title="class in javafx.scene.input">RotateEvent</a>> eventType, double x, double y, double screenX, double screenY, boolean shiftDown, boolean controlDown, boolean altDown, boolean metaDown, boolean direct, boolean inertia, double angle, double totalAngle, <a href="../../../javafx/scene/input/PickResult.html" title="class in javafx.scene.input">PickResult</a> pickResult)</code> <div class="block">Constructs new RotateEvent event with null source and target</div> </td> </tr> <tr class="rowColor"> <td class="colOne"><code><span class="memberNameLink"><a href="../../../javafx/scene/input/RotateEvent.html#RotateEvent-java.lang.Object-javafx.event.EventTarget-javafx.event.EventType-double-double-double-double-boolean-boolean-boolean-boolean-boolean-boolean-double-double-javafx.scene.input.PickResult-">RotateEvent</a></span>(java.lang.Object source, <a href="../../../javafx/event/EventTarget.html" title="interface in javafx.event">EventTarget</a> target, <a href="../../../javafx/event/EventType.html" title="class in javafx.event">EventType</a><<a href="../../../javafx/scene/input/RotateEvent.html" title="class in javafx.scene.input">RotateEvent</a>> eventType, double x, double y, double screenX, double screenY, boolean shiftDown, boolean controlDown, boolean altDown, boolean metaDown, boolean direct, boolean inertia, double angle, double totalAngle, <a href="../../../javafx/scene/input/PickResult.html" title="class in javafx.scene.input">PickResult</a> pickResult)</code> <div class="block">Constructs new RotateEvent event.</div> </td> </tr> </table> </li> </ul> <!-- ========== METHOD SUMMARY =========== --> <ul class="blockList"> <li class="blockList"><a name="method.summary"> <!-- --> </a> <h3>Method Summary</h3> <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation"> <caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd"> </span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd"> </span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd"> </span></span></caption> <tr> <th class="colFirst" scope="col">Modifier and Type</th> <th class="colLast" scope="col">Method and Description</th> </tr> <tr id="i0" class="altColor"> <td class="colFirst"><code><a href="../../../javafx/scene/input/RotateEvent.html" title="class in javafx.scene.input">RotateEvent</a></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../javafx/scene/input/RotateEvent.html#copyFor-java.lang.Object-javafx.event.EventTarget-">copyFor</a></span>(java.lang.Object newSource, <a href="../../../javafx/event/EventTarget.html" title="interface in javafx.event">EventTarget</a> newTarget)</code> <div class="block">Creates and returns a copy of this event with the specified event source and target.</div> </td> </tr> <tr id="i1" class="rowColor"> <td class="colFirst"><code><a href="../../../javafx/scene/input/RotateEvent.html" title="class in javafx.scene.input">RotateEvent</a></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../javafx/scene/input/RotateEvent.html#copyFor-java.lang.Object-javafx.event.EventTarget-javafx.event.EventType-">copyFor</a></span>(java.lang.Object newSource, <a href="../../../javafx/event/EventTarget.html" title="interface in javafx.event">EventTarget</a> newTarget, <a href="../../../javafx/event/EventType.html" title="class in javafx.event">EventType</a><<a href="../../../javafx/scene/input/RotateEvent.html" title="class in javafx.scene.input">RotateEvent</a>> type)</code> <div class="block">Creates a copy of the given event with the given fields substituted.</div> </td> </tr> <tr id="i2" class="altColor"> <td class="colFirst"><code>double</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../javafx/scene/input/RotateEvent.html#getAngle--">getAngle</a></span>()</code> <div class="block">Gets the rotation angle of this event.</div> </td> </tr> <tr id="i3" class="rowColor"> <td class="colFirst"><code><a href="../../../javafx/event/EventType.html" title="class in javafx.event">EventType</a><<a href="../../../javafx/scene/input/RotateEvent.html" title="class in javafx.scene.input">RotateEvent</a>></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../javafx/scene/input/RotateEvent.html#getEventType--">getEventType</a></span>()</code> <div class="block">Gets the event type of this event.</div> </td> </tr> <tr id="i4" class="altColor"> <td class="colFirst"><code>double</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../javafx/scene/input/RotateEvent.html#getTotalAngle--">getTotalAngle</a></span>()</code> <div class="block">Gets the cumulative rotation angle of this gesture.</div> </td> </tr> <tr id="i5" class="rowColor"> <td class="colFirst"><code>java.lang.String</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../javafx/scene/input/RotateEvent.html#toString--">toString</a></span>()</code> <div class="block">Returns a string representation of this <code>RotateEvent</code> object.</div> </td> </tr> </table> <ul class="blockList"> <li class="blockList"><a name="methods.inherited.from.class.javafx.scene.input.GestureEvent"> <!-- --> </a> <h3>Methods inherited from class javafx.scene.input.<a href="../../../javafx/scene/input/GestureEvent.html" title="class in javafx.scene.input">GestureEvent</a></h3> <code><a href="../../../javafx/scene/input/GestureEvent.html#getPickResult--">getPickResult</a>, <a href="../../../javafx/scene/input/GestureEvent.html#getSceneX--">getSceneX</a>, <a href="../../../javafx/scene/input/GestureEvent.html#getSceneY--">getSceneY</a>, <a href="../../../javafx/scene/input/GestureEvent.html#getScreenX--">getScreenX</a>, <a href="../../../javafx/scene/input/GestureEvent.html#getScreenY--">getScreenY</a>, <a href="../../../javafx/scene/input/GestureEvent.html#getX--">getX</a>, <a href="../../../javafx/scene/input/GestureEvent.html#getY--">getY</a>, <a href="../../../javafx/scene/input/GestureEvent.html#getZ--">getZ</a>, <a href="../../../javafx/scene/input/GestureEvent.html#isAltDown--">isAltDown</a>, <a href="../../../javafx/scene/input/GestureEvent.html#isControlDown--">isControlDown</a>, <a href="../../../javafx/scene/input/GestureEvent.html#isDirect--">isDirect</a>, <a href="../../../javafx/scene/input/GestureEvent.html#isInertia--">isInertia</a>, <a href="../../../javafx/scene/input/GestureEvent.html#isMetaDown--">isMetaDown</a>, <a href="../../../javafx/scene/input/GestureEvent.html#isShiftDown--">isShiftDown</a>, <a href="../../../javafx/scene/input/GestureEvent.html#isShortcutDown--">isShortcutDown</a></code></li> </ul> <ul class="blockList"> <li class="blockList"><a name="methods.inherited.from.class.javafx.event.Event"> <!-- --> </a> <h3>Methods inherited from class javafx.event.<a href="../../../javafx/event/Event.html" title="class in javafx.event">Event</a></h3> <code><a href="../../../javafx/event/Event.html#clone--">clone</a>, <a href="../../../javafx/event/Event.html#consume--">consume</a>, <a href="../../../javafx/event/Event.html#fireEvent-javafx.event.EventTarget-javafx.event.Event-">fireEvent</a>, <a href="../../../javafx/event/Event.html#getTarget--">getTarget</a>, <a href="../../../javafx/event/Event.html#isConsumed--">isConsumed</a></code></li> </ul> <ul class="blockList"> <li class="blockList"><a name="methods.inherited.from.class.java.util.EventObject"> <!-- --> </a> <h3>Methods inherited from class java.util.EventObject</h3> <code>getSource</code></li> </ul> <ul class="blockList"> <li class="blockList"><a name="methods.inherited.from.class.java.lang.Object"> <!-- --> </a> <h3>Methods inherited from class java.lang.Object</h3> <code>equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait</code></li> </ul> </li> </ul> </li> </ul> </div> <div class="details"> <ul class="blockList"> <li class="blockList"> <!-- ============ FIELD DETAIL =========== --> <ul class="blockList"> <li class="blockList"><a name="field.detail"> <!-- --> </a> <h3>Field Detail</h3> <a name="ANY"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>ANY</h4> <pre>public static final <a href="../../../javafx/event/EventType.html" title="class in javafx.event">EventType</a><<a href="../../../javafx/scene/input/RotateEvent.html" title="class in javafx.scene.input">RotateEvent</a>> ANY</pre> <div class="block">Common supertype for all rotate event types.</div> </li> </ul> <a name="ROTATE"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>ROTATE</h4> <pre>public static final <a href="../../../javafx/event/EventType.html" title="class in javafx.event">EventType</a><<a href="../../../javafx/scene/input/RotateEvent.html" title="class in javafx.scene.input">RotateEvent</a>> ROTATE</pre> <div class="block">This event occurs when user performs a rotating gesture such as dragging two fingers around each other.</div> </li> </ul> <a name="ROTATION_STARTED"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>ROTATION_STARTED</h4> <pre>public static final <a href="../../../javafx/event/EventType.html" title="class in javafx.event">EventType</a><<a href="../../../javafx/scene/input/RotateEvent.html" title="class in javafx.scene.input">RotateEvent</a>> ROTATION_STARTED</pre> <div class="block">This event occurs when a rotating gesture is detected.</div> </li> </ul> <a name="ROTATION_FINISHED"> <!-- --> </a> <ul class="blockListLast"> <li class="blockList"> <h4>ROTATION_FINISHED</h4> <pre>public static final <a href="../../../javafx/event/EventType.html" title="class in javafx.event">EventType</a><<a href="../../../javafx/scene/input/RotateEvent.html" title="class in javafx.scene.input">RotateEvent</a>> ROTATION_FINISHED</pre> <div class="block">This event occurs when a rotating gesture ends.</div> </li> </ul> </li> </ul> <!-- ========= CONSTRUCTOR DETAIL ======== --> <ul class="blockList"> <li class="blockList"><a name="constructor.detail"> <!-- --> </a> <h3>Constructor Detail</h3> <a name="RotateEvent-java.lang.Object-javafx.event.EventTarget-javafx.event.EventType-double-double-double-double-boolean-boolean-boolean-boolean-boolean-boolean-double-double-javafx.scene.input.PickResult-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>RotateEvent</h4> <pre>public RotateEvent(java.lang.Object source, <a href="../../../javafx/event/EventTarget.html" title="interface in javafx.event">EventTarget</a> target, <a href="../../../javafx/event/EventType.html" title="class in javafx.event">EventType</a><<a href="../../../javafx/scene/input/RotateEvent.html" title="class in javafx.scene.input">RotateEvent</a>> eventType, double x, double y, double screenX, double screenY, boolean shiftDown, boolean controlDown, boolean altDown, boolean metaDown, boolean direct, boolean inertia, double angle, double totalAngle, <a href="../../../javafx/scene/input/PickResult.html" title="class in javafx.scene.input">PickResult</a> pickResult)</pre> <div class="block">Constructs new RotateEvent event.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>source</code> - the source of the event. Can be null.</dd> <dd><code>target</code> - the target of the event. Can be null.</dd> <dd><code>eventType</code> - The type of the event.</dd> <dd><code>x</code> - The x with respect to the scene.</dd> <dd><code>y</code> - The y with respect to the scene.</dd> <dd><code>screenX</code> - The x coordinate relative to screen.</dd> <dd><code>screenY</code> - The y coordinate relative to screen.</dd> <dd><code>shiftDown</code> - true if shift modifier was pressed.</dd> <dd><code>controlDown</code> - true if control modifier was pressed.</dd> <dd><code>altDown</code> - true if alt modifier was pressed.</dd> <dd><code>metaDown</code> - true if meta modifier was pressed.</dd> <dd><code>direct</code> - true if the event was caused by direct input device. See <a href="../../../javafx/scene/input/GestureEvent.html#isDirect--"><code>GestureEvent.isDirect()</code></a></dd> <dd><code>inertia</code> - if represents inertia of an already finished gesture.</dd> <dd><code>angle</code> - the rotational angle</dd> <dd><code>totalAngle</code> - the cumulative rotational angle</dd> <dd><code>pickResult</code> - pick result. Can be null, in this case a 2D pick result without any further values is constructed based on the scene coordinates and the target</dd> <dt><span class="simpleTagLabel">Since:</span></dt> <dd>JavaFX 8.0</dd> </dl> </li> </ul> <a name="RotateEvent-javafx.event.EventType-double-double-double-double-boolean-boolean-boolean-boolean-boolean-boolean-double-double-javafx.scene.input.PickResult-"> <!-- --> </a> <ul class="blockListLast"> <li class="blockList"> <h4>RotateEvent</h4> <pre>public RotateEvent(<a href="../../../javafx/event/EventType.html" title="class in javafx.event">EventType</a><<a href="../../../javafx/scene/input/RotateEvent.html" title="class in javafx.scene.input">RotateEvent</a>> eventType, double x, double y, double screenX, double screenY, boolean shiftDown, boolean controlDown, boolean altDown, boolean metaDown, boolean direct, boolean inertia, double angle, double totalAngle, <a href="../../../javafx/scene/input/PickResult.html" title="class in javafx.scene.input">PickResult</a> pickResult)</pre> <div class="block">Constructs new RotateEvent event with null source and target</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>eventType</code> - The type of the event.</dd> <dd><code>x</code> - The x with respect to the scene.</dd> <dd><code>y</code> - The y with respect to the scene.</dd> <dd><code>screenX</code> - The x coordinate relative to screen.</dd> <dd><code>screenY</code> - The y coordinate relative to screen.</dd> <dd><code>shiftDown</code> - true if shift modifier was pressed.</dd> <dd><code>controlDown</code> - true if control modifier was pressed.</dd> <dd><code>altDown</code> - true if alt modifier was pressed.</dd> <dd><code>metaDown</code> - true if meta modifier was pressed.</dd> <dd><code>direct</code> - true if the event was caused by direct input device. See <a href="../../../javafx/scene/input/GestureEvent.html#isDirect--"><code>GestureEvent.isDirect()</code></a></dd> <dd><code>inertia</code> - if represents inertia of an already finished gesture.</dd> <dd><code>angle</code> - the rotational angle</dd> <dd><code>totalAngle</code> - the cumulative rotational angle</dd> <dd><code>pickResult</code> - pick result. Can be null, in this case a 2D pick result without any further values is constructed based on the scene coordinates</dd> <dt><span class="simpleTagLabel">Since:</span></dt> <dd>JavaFX 8.0</dd> </dl> </li> </ul> </li> </ul> <!-- ============ METHOD DETAIL ========== --> <ul class="blockList"> <li class="blockList"><a name="method.detail"> <!-- --> </a> <h3>Method Detail</h3> <a name="getAngle--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>getAngle</h4> <pre>public double getAngle()</pre> <div class="block">Gets the rotation angle of this event. The angle is in degrees and work well when added to the node's <code>rotate</code> property value (positive values for clockwise rotation).</div> <dl> <dt><span class="returnLabel">Returns:</span></dt> <dd>The rotation angle of this event</dd> </dl> </li> </ul> <a name="getTotalAngle--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>getTotalAngle</h4> <pre>public double getTotalAngle()</pre> <div class="block">Gets the cumulative rotation angle of this gesture. The angle is in degrees and work well when added to the node's <code>rotate</code> property value (positive values for clockwise rotation).</div> <dl> <dt><span class="returnLabel">Returns:</span></dt> <dd>The cumulative rotation angle of this gesture</dd> </dl> </li> </ul> <a name="toString--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>toString</h4> <pre>public java.lang.String toString()</pre> <div class="block">Returns a string representation of this <code>RotateEvent</code> object.</div> <dl> <dt><span class="overrideSpecifyLabel">Overrides:</span></dt> <dd><code><a href="../../../javafx/scene/input/GestureEvent.html#toString--">toString</a></code> in class <code><a href="../../../javafx/scene/input/GestureEvent.html" title="class in javafx.scene.input">GestureEvent</a></code></dd> <dt><span class="returnLabel">Returns:</span></dt> <dd>a string representation of this <code>RotateEvent</code> object.</dd> </dl> </li> </ul> <a name="copyFor-java.lang.Object-javafx.event.EventTarget-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>copyFor</h4> <pre>public <a href="../../../javafx/scene/input/RotateEvent.html" title="class in javafx.scene.input">RotateEvent</a> copyFor(java.lang.Object newSource, <a href="../../../javafx/event/EventTarget.html" title="interface in javafx.event">EventTarget</a> newTarget)</pre> <div class="block"><span class="descfrmTypeLabel">Description copied from class: <code><a href="../../../javafx/event/Event.html#copyFor-java.lang.Object-javafx.event.EventTarget-">Event</a></code></span></div> <div class="block">Creates and returns a copy of this event with the specified event source and target. If the source or target is set to <code>null</code>, it is replaced by the <code>NULL_SOURCE_TARGET</code> value.</div> <dl> <dt><span class="overrideSpecifyLabel">Overrides:</span></dt> <dd><code><a href="../../../javafx/scene/input/GestureEvent.html#copyFor-java.lang.Object-javafx.event.EventTarget-">copyFor</a></code> in class <code><a href="../../../javafx/scene/input/GestureEvent.html" title="class in javafx.scene.input">GestureEvent</a></code></dd> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>newSource</code> - the new source of the copied event</dd> <dd><code>newTarget</code> - the new target of the copied event</dd> <dt><span class="returnLabel">Returns:</span></dt> <dd>the event copy with the new source and target</dd> </dl> </li> </ul> <a name="copyFor-java.lang.Object-javafx.event.EventTarget-javafx.event.EventType-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>copyFor</h4> <pre>public <a href="../../../javafx/scene/input/RotateEvent.html" title="class in javafx.scene.input">RotateEvent</a> copyFor(java.lang.Object newSource, <a href="../../../javafx/event/EventTarget.html" title="interface in javafx.event">EventTarget</a> newTarget, <a href="../../../javafx/event/EventType.html" title="class in javafx.event">EventType</a><<a href="../../../javafx/scene/input/RotateEvent.html" title="class in javafx.scene.input">RotateEvent</a>> type)</pre> <div class="block">Creates a copy of the given event with the given fields substituted.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>source</code> - the new source of the copied event</dd> <dd><code>target</code> - the new target of the copied event</dd> <dd><code>eventType</code> - the new eventType</dd> <dt><span class="returnLabel">Returns:</span></dt> <dd>the event copy with the fields substituted</dd> <dt><span class="simpleTagLabel">Since:</span></dt> <dd>JavaFX 8.0</dd> </dl> </li> </ul> <a name="getEventType--"> <!-- --> </a> <ul class="blockListLast"> <li class="blockList"> <h4>getEventType</h4> <pre>public <a href="../../../javafx/event/EventType.html" title="class in javafx.event">EventType</a><<a href="../../../javafx/scene/input/RotateEvent.html" title="class in javafx.scene.input">RotateEvent</a>> getEventType()</pre> <div class="block"><span class="descfrmTypeLabel">Description copied from class: <code><a href="../../../javafx/event/Event.html#getEventType--">Event</a></code></span></div> <div class="block">Gets the event type of this event. Objects of the same <code>Event</code> class can have different event types. These event types further specify what kind of event occurred.</div> <dl> <dt><span class="overrideSpecifyLabel">Overrides:</span></dt> <dd><code><a href="../../../javafx/scene/input/GestureEvent.html#getEventType--">getEventType</a></code> in class <code><a href="../../../javafx/scene/input/GestureEvent.html" title="class in javafx.scene.input">GestureEvent</a></code></dd> <dt><span class="returnLabel">Returns:</span></dt> <dd>the event type</dd> </dl> </li> </ul> </li> </ul> </li> </ul> </div> </div> <!-- ========= END OF CLASS DATA ========= --> <!-- ======= START OF BOTTOM NAVBAR ====== --> <div class="bottomNav"><a name="navbar.bottom"> <!-- --> </a> <div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div> <a name="navbar.bottom.firstrow"> <!-- --> </a> <ul class="navList" title="Navigation"> <li><a href="../../../overview-summary.html">Overview</a></li> <li><a href="package-summary.html">Package</a></li> <li class="navBarCell1Rev">Class</li> <li><a href="class-use/RotateEvent.html">Use</a></li> <li><a href="package-tree.html">Tree</a></li> <li><a href="../../../deprecated-list.html">Deprecated</a></li> <li><a href="../../../index-all.html">Index</a></li> <li><a href="../../../help-doc.html">Help</a></li> </ul> <div class="aboutLanguage">JavaFX 8</div> </div> <div class="subNav"> <ul class="navList"> <li><a href="../../../javafx/scene/input/PickResult.html" title="class in javafx.scene.input"><span class="typeNameLink">Prev Class</span></a></li> <li><a href="../../../javafx/scene/input/ScrollEvent.html" title="class in javafx.scene.input"><span class="typeNameLink">Next Class</span></a></li> </ul> <ul class="navList"> <li><a href="../../../index.html?javafx/scene/input/RotateEvent.html" target="_top">Frames</a></li> <li><a href="RotateEvent.html" target="_top">No Frames</a></li> </ul> <ul class="navList" id="allclasses_navbar_bottom"> <li><a href="../../../allclasses-noframe.html">All Classes</a></li> </ul> <div> <script type="text/javascript"><!-- allClassesLink = document.getElementById("allclasses_navbar_bottom"); if(window==top) { allClassesLink.style.display = "block"; } else { allClassesLink.style.display = "none"; } //--> </script> </div> <div> <ul class="subNavList"> <li>Summary: </li> <li>Nested | </li> <li><a href="#field.summary">Field</a> | </li> <li><a href="#constructor.summary">Constr</a> | </li> <li><a href="#method.summary">Method</a></li> </ul> <ul class="subNavList"> <li>Detail: </li> <li><a href="#field.detail">Field</a> | </li> <li><a href="#constructor.detail">Constr</a> | </li> <li><a href="#method.detail">Method</a></li> </ul> </div> <a name="skip.navbar.bottom"> <!-- --> </a></div> <!-- ======== END OF BOTTOM NAVBAR ======= --> <p class="legalCopy"><small><font size="-1"><a href="http://bugreport.java.com/bugreport/" target="_blank">Submit a bug or feature</a><br>For further API reference and developer documentation, see <a href="https://docs.oracle.com/javase/8/docs/index.html" target="_blank">Java SE Documentation</a>. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.<br> <a href="https://docs.oracle.com/javase/8/docs/legal/cpyr.html" target="_blank">Copyright</a> © 2008, 2017, Oracle and/or its affiliates. All rights reserved. Use is subject to <a href="http://download.oracle.com/otndocs/jcp/java_se-8-mrel-spec/license.html" target="_blank">license terms</a>. Also see the <a target="_blank" href="http://www.oracle.com/technetwork/java/redist-137594.html" target="_blank">documentation redistribution policy</a>.</font></small></p> </body> </html>