< prev index next >

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

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 2010, 2013, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this --- 1,7 ---- /* ! * Copyright (c) 2010, 2016, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this
*** 24,33 **** --- 24,34 ---- */ package javafx.scene.input; import com.sun.javafx.scene.input.InputEventUtils; + import com.sun.javafx.scene.input.TouchPointHelper; import java.io.IOException; import java.io.Serializable; import javafx.beans.NamedArg; import javafx.event.EventTarget; import javafx.geometry.Point3D;
*** 53,62 **** --- 54,75 ---- * * @since JavaFX 2.2 */ public final class TouchPoint implements Serializable{ + static { + // This is used by classes in different packages to get access to + // private and package private methods. + TouchPointHelper.setTouchPointAccessor(new TouchPointHelper.TouchPointAccessor() { + + @Override + public void reset(TouchPoint touchPoint) { + touchPoint.reset(); + } + }); + } + private transient EventTarget target; private transient Object source; /** * Creates new instance of TouchPoint.
*** 133,148 **** } return target == this.target; } ! /** ! * @treatAsPrivate implementation detail ! * @deprecated This is an internal API that is not intended for use and will be removed in the next version ! */ ! @Deprecated ! public void impl_reset() { final Point3D p = InputEventUtils.recomputeCoordinates(pickResult, null); x = p.getX(); y = p.getY(); z = p.getZ(); } --- 146,156 ---- } return target == this.target; } ! private void reset() { final Point3D p = InputEventUtils.recomputeCoordinates(pickResult, null); x = p.getX(); y = p.getY(); z = p.getZ(); }
< prev index next >