< prev index next >

modules/javafx.graphics/src/main/java/javafx/scene/input/RotateEvent.java

Print this page




 217             sb.append(", altDown");
 218         }
 219         if (isMetaDown()) {
 220             sb.append(", metaDown");
 221         }
 222         if (isShortcutDown()) {
 223             sb.append(", shortcutDown");
 224         }
 225         sb.append(", pickResult = ").append(getPickResult());
 226 
 227         return sb.append("]").toString();
 228     }
 229 
 230     @Override
 231     public RotateEvent copyFor(Object newSource, EventTarget newTarget) {
 232         return (RotateEvent) super.copyFor(newSource, newTarget);
 233     }
 234 
 235     /**
 236      * Creates a copy of the given event with the given fields substituted.
 237      * @param source the new source of the copied event
 238      * @param target the new target of the copied event
 239      * @param eventType the new eventType
 240      * @return the event copy with the fields substituted
 241      * @since JavaFX 8.0
 242      */
 243     public RotateEvent copyFor(Object newSource, EventTarget newTarget, EventType<RotateEvent> type) {
 244         RotateEvent e = copyFor(newSource, newTarget);
 245         e.eventType = type;
 246         return e;
 247     }
 248 
 249     @Override
 250     public EventType<RotateEvent> getEventType() {
 251         return (EventType<RotateEvent>) super.getEventType();
 252     }
 253 
 254 
 255 }


 217             sb.append(", altDown");
 218         }
 219         if (isMetaDown()) {
 220             sb.append(", metaDown");
 221         }
 222         if (isShortcutDown()) {
 223             sb.append(", shortcutDown");
 224         }
 225         sb.append(", pickResult = ").append(getPickResult());
 226 
 227         return sb.append("]").toString();
 228     }
 229 
 230     @Override
 231     public RotateEvent copyFor(Object newSource, EventTarget newTarget) {
 232         return (RotateEvent) super.copyFor(newSource, newTarget);
 233     }
 234 
 235     /**
 236      * Creates a copy of the given event with the given fields substituted.
 237      * @param newSource the new source of the copied event
 238      * @param newTarget the new target of the copied event
 239      * @param type the new eventType
 240      * @return the event copy with the fields substituted
 241      * @since JavaFX 8.0
 242      */
 243     public RotateEvent copyFor(Object newSource, EventTarget newTarget, EventType<RotateEvent> type) {
 244         RotateEvent e = copyFor(newSource, newTarget);
 245         e.eventType = type;
 246         return e;
 247     }
 248 
 249     @Override
 250     public EventType<RotateEvent> getEventType() {
 251         return (EventType<RotateEvent>) super.getEventType();
 252     }
 253 
 254 
 255 }
< prev index next >