All Downloads are FREE. Search and download functionalities are using the official Maven repository.

system.windows.input.Stylus Maven / Gradle / Ivy

/*
 *  MIT License
 *
 *  Copyright (c) 2024 MASES s.r.l.
 *
 *  Permission is hereby granted, free of charge, to any person obtaining a copy
 *  of this software and associated documentation files (the "Software"), to deal
 *  in the Software without restriction, including without limitation the rights
 *  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 *  copies of the Software, and to permit persons to whom the Software is
 *  furnished to do so, subject to the following conditions:
 *
 *  The above copyright notice and this permission notice shall be included in all
 *  copies or substantial portions of the Software.
 *
 *  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 *  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 *  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 *  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 *  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 *  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 *  SOFTWARE.
 */

/**************************************************************************************
 * 
 *      This code was generated from a template using JCOReflector v. 1.14.0.0
 * 
 *      Manual changes to this file may cause unexpected behavior in your application.
 *      Manual changes to this file will be overwritten if the code is regenerated.
 * 
 *************************************************************************************/

package system.windows.input;

import org.mases.jcobridge.*;
import org.mases.jcobridge.netreflection.*;
import java.util.ArrayList;

// Import section
import system.windows.IInputElement;
import system.windows.IInputElementImplementation;
import system.windows.input.CaptureMode;
import system.windows.DependencyObject;
import system.windows.input.StylusEventHandler;
import system.windows.input.StylusButtonEventHandler;
import system.windows.input.StylusDownEventHandler;
import system.windows.input.StylusSystemGestureEventHandler;
import system.windows.input.StylusDevice;


/**
 * The base .NET class managing System.Windows.Input.Stylus, PresentationCore, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35.
 * 

* * .NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.Windows.Input.Stylus *

* * Powered by JCOBridge: more info at https://www.jcobridge.com * * @author MASES s.r.l https://masesgroup.com * @version 1.14.0.0 */ public class Stylus extends NetObject { /** * Fully assembly qualified name: PresentationCore, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35 */ public static final String assemblyFullName = "PresentationCore, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"; /** * Assembly name: PresentationCore */ public static final String assemblyShortName = "PresentationCore"; /** * Qualified class name: System.Windows.Input.Stylus */ public static final String className = "System.Windows.Input.Stylus"; static JCOBridge bridge = JCOBridgeInstance.getInstance(assemblyFullName); /** * The type managed from JCOBridge. See {@link JCType} */ public static JCType classType = createType(); static JCEnum enumInstance = null; JCObject classInstance = null; static JCType createType() { try { String classToCreate = className + ", " + (JCOReflector.getUseFullAssemblyName() ? assemblyFullName : assemblyShortName); if (JCOReflector.getDebug()) JCOReflector.writeLog("Creating %s", classToCreate); JCType typeCreated = bridge.GetType(classToCreate); if (JCOReflector.getDebug()) JCOReflector.writeLog("Created: %s", (typeCreated != null) ? typeCreated.toString() : "Returned null value"); return typeCreated; } catch (JCException e) { JCOReflector.writeLog(e); return null; } } void addReference(String ref) throws Throwable { try { bridge.AddReference(ref); } catch (JCNativeException jcne) { throw translateException(jcne); } } /** * Internal constructor. Use with caution */ public Stylus(java.lang.Object instance) throws Throwable { super(instance); if (instance instanceof JCObject) { classInstance = (JCObject) instance; } else throw new Exception("Cannot manage object, it is not a JCObject"); } public String getJCOAssemblyName() { return assemblyFullName; } public String getJCOClassName() { return className; } public String getJCOObjectName() { return className + ", " + (JCOReflector.getUseFullAssemblyName() ? assemblyFullName : assemblyShortName); } public java.lang.Object getJCOInstance() { return classInstance; } public void setJCOInstance(JCObject instance) { classInstance = instance; super.setJCOInstance(classInstance); } public JCType getJCOType() { return classType; } /** * Try to cast the {@link IJCOBridgeReflected} instance into {@link Stylus}, a cast assert is made to check if types are compatible. * @param from {@link IJCOBridgeReflected} instance to be casted * @return {@link Stylus} instance * @throws java.lang.Throwable in case of error during cast operation */ public static Stylus cast(IJCOBridgeReflected from) throws Throwable { NetType.AssertCast(classType, from); return new Stylus(from.getJCOInstance()); } // Constructors section public Stylus() throws Throwable { } // Methods section public static boolean Capture(IInputElement element) throws Throwable, system.ArgumentException, system.ArgumentNullException, system.componentmodel.Win32Exception, system.InvalidOperationException, system.ArgumentOutOfRangeException, system.OverflowException, system.resources.MissingManifestResourceException, system.NotImplementedException, system.ObjectDisposedException, system.IndexOutOfRangeException, system.componentmodel.InvalidEnumArgumentException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { return (boolean)classType.Invoke("Capture", element == null ? null : element.getJCOInstance()); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static boolean Capture(IInputElement element, CaptureMode captureMode) throws Throwable, system.ArgumentException, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.componentmodel.InvalidEnumArgumentException, system.componentmodel.Win32Exception, system.InvalidOperationException, system.OverflowException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { return (boolean)classType.Invoke("Capture", element == null ? null : element.getJCOInstance(), captureMode == null ? null : captureMode.getJCOInstance()); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static boolean GetIsFlicksEnabled(DependencyObject element) throws Throwable, system.ArgumentNullException, system.resources.MissingManifestResourceException, system.NotImplementedException, system.ArgumentException, system.ObjectDisposedException, system.InvalidOperationException, system.ArgumentOutOfRangeException, system.NotSupportedException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { return (boolean)classType.Invoke("GetIsFlicksEnabled", element == null ? null : element.getJCOInstance()); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static boolean GetIsPressAndHoldEnabled(DependencyObject element) throws Throwable, system.ArgumentNullException, system.resources.MissingManifestResourceException, system.NotImplementedException, system.ArgumentException, system.ObjectDisposedException, system.InvalidOperationException, system.ArgumentOutOfRangeException, system.NotSupportedException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { return (boolean)classType.Invoke("GetIsPressAndHoldEnabled", element == null ? null : element.getJCOInstance()); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static boolean GetIsTapFeedbackEnabled(DependencyObject element) throws Throwable, system.ArgumentNullException, system.resources.MissingManifestResourceException, system.NotImplementedException, system.ArgumentException, system.ObjectDisposedException, system.InvalidOperationException, system.ArgumentOutOfRangeException, system.NotSupportedException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { return (boolean)classType.Invoke("GetIsTapFeedbackEnabled", element == null ? null : element.getJCOInstance()); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static boolean GetIsTouchFeedbackEnabled(DependencyObject element) throws Throwable, system.ArgumentNullException, system.resources.MissingManifestResourceException, system.NotImplementedException, system.ArgumentException, system.ObjectDisposedException, system.InvalidOperationException, system.ArgumentOutOfRangeException, system.NotSupportedException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { return (boolean)classType.Invoke("GetIsTouchFeedbackEnabled", element == null ? null : element.getJCOInstance()); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static void AddGotStylusCaptureHandler(DependencyObject element, StylusEventHandler handler) throws Throwable, system.ArgumentNullException, system.resources.MissingManifestResourceException, system.NotImplementedException, system.ArgumentException, system.ObjectDisposedException, system.InvalidOperationException, system.ArgumentOutOfRangeException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { classType.Invoke("AddGotStylusCaptureHandler", element == null ? null : element.getJCOInstance(), handler); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static void AddLostStylusCaptureHandler(DependencyObject element, StylusEventHandler handler) throws Throwable, system.ArgumentNullException, system.resources.MissingManifestResourceException, system.NotImplementedException, system.ArgumentException, system.ObjectDisposedException, system.InvalidOperationException, system.ArgumentOutOfRangeException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { classType.Invoke("AddLostStylusCaptureHandler", element == null ? null : element.getJCOInstance(), handler); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static void AddPreviewStylusButtonDownHandler(DependencyObject element, StylusButtonEventHandler handler) throws Throwable, system.ArgumentNullException, system.resources.MissingManifestResourceException, system.NotImplementedException, system.ArgumentException, system.ObjectDisposedException, system.InvalidOperationException, system.ArgumentOutOfRangeException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { classType.Invoke("AddPreviewStylusButtonDownHandler", element == null ? null : element.getJCOInstance(), handler); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static void AddPreviewStylusButtonUpHandler(DependencyObject element, StylusButtonEventHandler handler) throws Throwable, system.ArgumentNullException, system.resources.MissingManifestResourceException, system.NotImplementedException, system.ArgumentException, system.ObjectDisposedException, system.InvalidOperationException, system.ArgumentOutOfRangeException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { classType.Invoke("AddPreviewStylusButtonUpHandler", element == null ? null : element.getJCOInstance(), handler); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static void AddPreviewStylusDownHandler(DependencyObject element, StylusDownEventHandler handler) throws Throwable, system.ArgumentNullException, system.resources.MissingManifestResourceException, system.NotImplementedException, system.ArgumentException, system.ObjectDisposedException, system.InvalidOperationException, system.ArgumentOutOfRangeException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { classType.Invoke("AddPreviewStylusDownHandler", element == null ? null : element.getJCOInstance(), handler); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static void AddPreviewStylusInAirMoveHandler(DependencyObject element, StylusEventHandler handler) throws Throwable, system.ArgumentNullException, system.resources.MissingManifestResourceException, system.NotImplementedException, system.ArgumentException, system.ObjectDisposedException, system.InvalidOperationException, system.ArgumentOutOfRangeException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { classType.Invoke("AddPreviewStylusInAirMoveHandler", element == null ? null : element.getJCOInstance(), handler); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static void AddPreviewStylusInRangeHandler(DependencyObject element, StylusEventHandler handler) throws Throwable, system.ArgumentNullException, system.resources.MissingManifestResourceException, system.NotImplementedException, system.ArgumentException, system.ObjectDisposedException, system.InvalidOperationException, system.ArgumentOutOfRangeException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { classType.Invoke("AddPreviewStylusInRangeHandler", element == null ? null : element.getJCOInstance(), handler); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static void AddPreviewStylusMoveHandler(DependencyObject element, StylusEventHandler handler) throws Throwable, system.ArgumentNullException, system.resources.MissingManifestResourceException, system.NotImplementedException, system.ArgumentException, system.ObjectDisposedException, system.InvalidOperationException, system.ArgumentOutOfRangeException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { classType.Invoke("AddPreviewStylusMoveHandler", element == null ? null : element.getJCOInstance(), handler); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static void AddPreviewStylusOutOfRangeHandler(DependencyObject element, StylusEventHandler handler) throws Throwable, system.ArgumentNullException, system.resources.MissingManifestResourceException, system.NotImplementedException, system.ArgumentException, system.ObjectDisposedException, system.InvalidOperationException, system.ArgumentOutOfRangeException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { classType.Invoke("AddPreviewStylusOutOfRangeHandler", element == null ? null : element.getJCOInstance(), handler); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static void AddPreviewStylusSystemGestureHandler(DependencyObject element, StylusSystemGestureEventHandler handler) throws Throwable, system.ArgumentNullException, system.resources.MissingManifestResourceException, system.NotImplementedException, system.ArgumentException, system.ObjectDisposedException, system.InvalidOperationException, system.ArgumentOutOfRangeException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { classType.Invoke("AddPreviewStylusSystemGestureHandler", element == null ? null : element.getJCOInstance(), handler); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static void AddPreviewStylusUpHandler(DependencyObject element, StylusEventHandler handler) throws Throwable, system.ArgumentNullException, system.resources.MissingManifestResourceException, system.NotImplementedException, system.ArgumentException, system.ObjectDisposedException, system.InvalidOperationException, system.ArgumentOutOfRangeException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { classType.Invoke("AddPreviewStylusUpHandler", element == null ? null : element.getJCOInstance(), handler); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static void AddStylusButtonDownHandler(DependencyObject element, StylusButtonEventHandler handler) throws Throwable, system.ArgumentNullException, system.resources.MissingManifestResourceException, system.NotImplementedException, system.ArgumentException, system.ObjectDisposedException, system.InvalidOperationException, system.ArgumentOutOfRangeException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { classType.Invoke("AddStylusButtonDownHandler", element == null ? null : element.getJCOInstance(), handler); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static void AddStylusButtonUpHandler(DependencyObject element, StylusButtonEventHandler handler) throws Throwable, system.ArgumentNullException, system.resources.MissingManifestResourceException, system.NotImplementedException, system.ArgumentException, system.ObjectDisposedException, system.InvalidOperationException, system.ArgumentOutOfRangeException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { classType.Invoke("AddStylusButtonUpHandler", element == null ? null : element.getJCOInstance(), handler); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static void AddStylusDownHandler(DependencyObject element, StylusDownEventHandler handler) throws Throwable, system.ArgumentNullException, system.resources.MissingManifestResourceException, system.NotImplementedException, system.ArgumentException, system.ObjectDisposedException, system.InvalidOperationException, system.ArgumentOutOfRangeException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { classType.Invoke("AddStylusDownHandler", element == null ? null : element.getJCOInstance(), handler); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static void AddStylusEnterHandler(DependencyObject element, StylusEventHandler handler) throws Throwable, system.ArgumentNullException, system.resources.MissingManifestResourceException, system.NotImplementedException, system.ArgumentException, system.ObjectDisposedException, system.InvalidOperationException, system.ArgumentOutOfRangeException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { classType.Invoke("AddStylusEnterHandler", element == null ? null : element.getJCOInstance(), handler); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static void AddStylusInAirMoveHandler(DependencyObject element, StylusEventHandler handler) throws Throwable, system.ArgumentNullException, system.resources.MissingManifestResourceException, system.NotImplementedException, system.ArgumentException, system.ObjectDisposedException, system.InvalidOperationException, system.ArgumentOutOfRangeException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { classType.Invoke("AddStylusInAirMoveHandler", element == null ? null : element.getJCOInstance(), handler); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static void AddStylusInRangeHandler(DependencyObject element, StylusEventHandler handler) throws Throwable, system.ArgumentNullException, system.resources.MissingManifestResourceException, system.NotImplementedException, system.ArgumentException, system.ObjectDisposedException, system.InvalidOperationException, system.ArgumentOutOfRangeException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { classType.Invoke("AddStylusInRangeHandler", element == null ? null : element.getJCOInstance(), handler); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static void AddStylusLeaveHandler(DependencyObject element, StylusEventHandler handler) throws Throwable, system.ArgumentNullException, system.resources.MissingManifestResourceException, system.NotImplementedException, system.ArgumentException, system.ObjectDisposedException, system.InvalidOperationException, system.ArgumentOutOfRangeException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { classType.Invoke("AddStylusLeaveHandler", element == null ? null : element.getJCOInstance(), handler); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static void AddStylusMoveHandler(DependencyObject element, StylusEventHandler handler) throws Throwable, system.ArgumentNullException, system.resources.MissingManifestResourceException, system.NotImplementedException, system.ArgumentException, system.ObjectDisposedException, system.InvalidOperationException, system.ArgumentOutOfRangeException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { classType.Invoke("AddStylusMoveHandler", element == null ? null : element.getJCOInstance(), handler); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static void AddStylusOutOfRangeHandler(DependencyObject element, StylusEventHandler handler) throws Throwable, system.ArgumentNullException, system.resources.MissingManifestResourceException, system.NotImplementedException, system.ArgumentException, system.ObjectDisposedException, system.InvalidOperationException, system.ArgumentOutOfRangeException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { classType.Invoke("AddStylusOutOfRangeHandler", element == null ? null : element.getJCOInstance(), handler); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static void AddStylusSystemGestureHandler(DependencyObject element, StylusSystemGestureEventHandler handler) throws Throwable, system.ArgumentNullException, system.resources.MissingManifestResourceException, system.NotImplementedException, system.ArgumentException, system.ObjectDisposedException, system.InvalidOperationException, system.ArgumentOutOfRangeException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { classType.Invoke("AddStylusSystemGestureHandler", element == null ? null : element.getJCOInstance(), handler); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static void AddStylusUpHandler(DependencyObject element, StylusEventHandler handler) throws Throwable, system.ArgumentNullException, system.resources.MissingManifestResourceException, system.NotImplementedException, system.ArgumentException, system.ObjectDisposedException, system.InvalidOperationException, system.ArgumentOutOfRangeException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { classType.Invoke("AddStylusUpHandler", element == null ? null : element.getJCOInstance(), handler); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static void RemoveGotStylusCaptureHandler(DependencyObject element, StylusEventHandler handler) throws Throwable, system.ArgumentNullException, system.FormatException, system.resources.MissingManifestResourceException, system.NotImplementedException, system.ArgumentException, system.ObjectDisposedException, system.InvalidOperationException, system.ArgumentOutOfRangeException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { classType.Invoke("RemoveGotStylusCaptureHandler", element == null ? null : element.getJCOInstance(), handler); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static void RemoveLostStylusCaptureHandler(DependencyObject element, StylusEventHandler handler) throws Throwable, system.ArgumentNullException, system.FormatException, system.resources.MissingManifestResourceException, system.NotImplementedException, system.ArgumentException, system.ObjectDisposedException, system.InvalidOperationException, system.ArgumentOutOfRangeException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { classType.Invoke("RemoveLostStylusCaptureHandler", element == null ? null : element.getJCOInstance(), handler); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static void RemovePreviewStylusButtonDownHandler(DependencyObject element, StylusButtonEventHandler handler) throws Throwable, system.ArgumentNullException, system.FormatException, system.resources.MissingManifestResourceException, system.NotImplementedException, system.ArgumentException, system.ObjectDisposedException, system.InvalidOperationException, system.ArgumentOutOfRangeException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { classType.Invoke("RemovePreviewStylusButtonDownHandler", element == null ? null : element.getJCOInstance(), handler); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static void RemovePreviewStylusButtonUpHandler(DependencyObject element, StylusButtonEventHandler handler) throws Throwable, system.ArgumentNullException, system.FormatException, system.resources.MissingManifestResourceException, system.NotImplementedException, system.ArgumentException, system.ObjectDisposedException, system.InvalidOperationException, system.ArgumentOutOfRangeException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { classType.Invoke("RemovePreviewStylusButtonUpHandler", element == null ? null : element.getJCOInstance(), handler); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static void RemovePreviewStylusDownHandler(DependencyObject element, StylusDownEventHandler handler) throws Throwable, system.ArgumentNullException, system.FormatException, system.resources.MissingManifestResourceException, system.NotImplementedException, system.ArgumentException, system.ObjectDisposedException, system.InvalidOperationException, system.ArgumentOutOfRangeException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { classType.Invoke("RemovePreviewStylusDownHandler", element == null ? null : element.getJCOInstance(), handler); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static void RemovePreviewStylusInAirMoveHandler(DependencyObject element, StylusEventHandler handler) throws Throwable, system.ArgumentNullException, system.FormatException, system.resources.MissingManifestResourceException, system.NotImplementedException, system.ArgumentException, system.ObjectDisposedException, system.InvalidOperationException, system.ArgumentOutOfRangeException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { classType.Invoke("RemovePreviewStylusInAirMoveHandler", element == null ? null : element.getJCOInstance(), handler); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static void RemovePreviewStylusInRangeHandler(DependencyObject element, StylusEventHandler handler) throws Throwable, system.ArgumentNullException, system.FormatException, system.resources.MissingManifestResourceException, system.NotImplementedException, system.ArgumentException, system.ObjectDisposedException, system.InvalidOperationException, system.ArgumentOutOfRangeException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { classType.Invoke("RemovePreviewStylusInRangeHandler", element == null ? null : element.getJCOInstance(), handler); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static void RemovePreviewStylusMoveHandler(DependencyObject element, StylusEventHandler handler) throws Throwable, system.ArgumentNullException, system.FormatException, system.resources.MissingManifestResourceException, system.NotImplementedException, system.ArgumentException, system.ObjectDisposedException, system.InvalidOperationException, system.ArgumentOutOfRangeException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { classType.Invoke("RemovePreviewStylusMoveHandler", element == null ? null : element.getJCOInstance(), handler); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static void RemovePreviewStylusOutOfRangeHandler(DependencyObject element, StylusEventHandler handler) throws Throwable, system.ArgumentNullException, system.FormatException, system.resources.MissingManifestResourceException, system.NotImplementedException, system.ArgumentException, system.ObjectDisposedException, system.InvalidOperationException, system.ArgumentOutOfRangeException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { classType.Invoke("RemovePreviewStylusOutOfRangeHandler", element == null ? null : element.getJCOInstance(), handler); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static void RemovePreviewStylusSystemGestureHandler(DependencyObject element, StylusSystemGestureEventHandler handler) throws Throwable, system.ArgumentNullException, system.FormatException, system.resources.MissingManifestResourceException, system.NotImplementedException, system.ArgumentException, system.ObjectDisposedException, system.InvalidOperationException, system.ArgumentOutOfRangeException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { classType.Invoke("RemovePreviewStylusSystemGestureHandler", element == null ? null : element.getJCOInstance(), handler); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static void RemovePreviewStylusUpHandler(DependencyObject element, StylusEventHandler handler) throws Throwable, system.ArgumentNullException, system.FormatException, system.resources.MissingManifestResourceException, system.NotImplementedException, system.ArgumentException, system.ObjectDisposedException, system.InvalidOperationException, system.ArgumentOutOfRangeException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { classType.Invoke("RemovePreviewStylusUpHandler", element == null ? null : element.getJCOInstance(), handler); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static void RemoveStylusButtonDownHandler(DependencyObject element, StylusButtonEventHandler handler) throws Throwable, system.ArgumentNullException, system.FormatException, system.resources.MissingManifestResourceException, system.NotImplementedException, system.ArgumentException, system.ObjectDisposedException, system.InvalidOperationException, system.ArgumentOutOfRangeException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { classType.Invoke("RemoveStylusButtonDownHandler", element == null ? null : element.getJCOInstance(), handler); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static void RemoveStylusButtonUpHandler(DependencyObject element, StylusButtonEventHandler handler) throws Throwable, system.ArgumentNullException, system.FormatException, system.resources.MissingManifestResourceException, system.NotImplementedException, system.ArgumentException, system.ObjectDisposedException, system.InvalidOperationException, system.ArgumentOutOfRangeException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { classType.Invoke("RemoveStylusButtonUpHandler", element == null ? null : element.getJCOInstance(), handler); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static void RemoveStylusDownHandler(DependencyObject element, StylusDownEventHandler handler) throws Throwable, system.ArgumentNullException, system.FormatException, system.resources.MissingManifestResourceException, system.NotImplementedException, system.ArgumentException, system.ObjectDisposedException, system.InvalidOperationException, system.ArgumentOutOfRangeException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { classType.Invoke("RemoveStylusDownHandler", element == null ? null : element.getJCOInstance(), handler); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static void RemoveStylusEnterHandler(DependencyObject element, StylusEventHandler handler) throws Throwable, system.ArgumentNullException, system.FormatException, system.resources.MissingManifestResourceException, system.NotImplementedException, system.ArgumentException, system.ObjectDisposedException, system.InvalidOperationException, system.ArgumentOutOfRangeException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { classType.Invoke("RemoveStylusEnterHandler", element == null ? null : element.getJCOInstance(), handler); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static void RemoveStylusInAirMoveHandler(DependencyObject element, StylusEventHandler handler) throws Throwable, system.ArgumentNullException, system.FormatException, system.resources.MissingManifestResourceException, system.NotImplementedException, system.ArgumentException, system.ObjectDisposedException, system.InvalidOperationException, system.ArgumentOutOfRangeException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { classType.Invoke("RemoveStylusInAirMoveHandler", element == null ? null : element.getJCOInstance(), handler); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static void RemoveStylusInRangeHandler(DependencyObject element, StylusEventHandler handler) throws Throwable, system.ArgumentNullException, system.FormatException, system.resources.MissingManifestResourceException, system.NotImplementedException, system.ArgumentException, system.ObjectDisposedException, system.InvalidOperationException, system.ArgumentOutOfRangeException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { classType.Invoke("RemoveStylusInRangeHandler", element == null ? null : element.getJCOInstance(), handler); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static void RemoveStylusLeaveHandler(DependencyObject element, StylusEventHandler handler) throws Throwable, system.ArgumentNullException, system.FormatException, system.resources.MissingManifestResourceException, system.NotImplementedException, system.ArgumentException, system.ObjectDisposedException, system.InvalidOperationException, system.ArgumentOutOfRangeException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { classType.Invoke("RemoveStylusLeaveHandler", element == null ? null : element.getJCOInstance(), handler); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static void RemoveStylusMoveHandler(DependencyObject element, StylusEventHandler handler) throws Throwable, system.ArgumentNullException, system.FormatException, system.resources.MissingManifestResourceException, system.NotImplementedException, system.ArgumentException, system.ObjectDisposedException, system.InvalidOperationException, system.ArgumentOutOfRangeException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { classType.Invoke("RemoveStylusMoveHandler", element == null ? null : element.getJCOInstance(), handler); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static void RemoveStylusOutOfRangeHandler(DependencyObject element, StylusEventHandler handler) throws Throwable, system.ArgumentNullException, system.FormatException, system.resources.MissingManifestResourceException, system.NotImplementedException, system.ArgumentException, system.ObjectDisposedException, system.InvalidOperationException, system.ArgumentOutOfRangeException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { classType.Invoke("RemoveStylusOutOfRangeHandler", element == null ? null : element.getJCOInstance(), handler); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static void RemoveStylusSystemGestureHandler(DependencyObject element, StylusSystemGestureEventHandler handler) throws Throwable, system.ArgumentNullException, system.FormatException, system.resources.MissingManifestResourceException, system.NotImplementedException, system.ArgumentException, system.ObjectDisposedException, system.InvalidOperationException, system.ArgumentOutOfRangeException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { classType.Invoke("RemoveStylusSystemGestureHandler", element == null ? null : element.getJCOInstance(), handler); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static void RemoveStylusUpHandler(DependencyObject element, StylusEventHandler handler) throws Throwable, system.ArgumentNullException, system.FormatException, system.resources.MissingManifestResourceException, system.NotImplementedException, system.ArgumentException, system.ObjectDisposedException, system.InvalidOperationException, system.ArgumentOutOfRangeException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { classType.Invoke("RemoveStylusUpHandler", element == null ? null : element.getJCOInstance(), handler); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static void SetIsFlicksEnabled(DependencyObject element, boolean enabled) throws Throwable, system.ArgumentNullException, system.resources.MissingManifestResourceException, system.ObjectDisposedException, system.InvalidOperationException, system.ArgumentException, system.ArgumentOutOfRangeException, system.NotSupportedException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { classType.Invoke("SetIsFlicksEnabled", element == null ? null : element.getJCOInstance(), enabled); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static void SetIsPressAndHoldEnabled(DependencyObject element, boolean enabled) throws Throwable, system.ArgumentNullException, system.resources.MissingManifestResourceException, system.ObjectDisposedException, system.InvalidOperationException, system.ArgumentException, system.ArgumentOutOfRangeException, system.NotSupportedException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { classType.Invoke("SetIsPressAndHoldEnabled", element == null ? null : element.getJCOInstance(), enabled); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static void SetIsTapFeedbackEnabled(DependencyObject element, boolean enabled) throws Throwable, system.ArgumentNullException, system.resources.MissingManifestResourceException, system.ObjectDisposedException, system.InvalidOperationException, system.ArgumentException, system.ArgumentOutOfRangeException, system.NotSupportedException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { classType.Invoke("SetIsTapFeedbackEnabled", element == null ? null : element.getJCOInstance(), enabled); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static void SetIsTouchFeedbackEnabled(DependencyObject element, boolean enabled) throws Throwable, system.ArgumentNullException, system.resources.MissingManifestResourceException, system.ObjectDisposedException, system.InvalidOperationException, system.ArgumentException, system.ArgumentOutOfRangeException, system.NotSupportedException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { classType.Invoke("SetIsTouchFeedbackEnabled", element == null ? null : element.getJCOInstance(), enabled); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static void Synchronize() throws Throwable, system.ArgumentException, system.ArgumentNullException, system.security.SecurityException, system.ObjectDisposedException, system.UnauthorizedAccessException, system.io.IOException, system.ArgumentOutOfRangeException, system.InvalidOperationException, system.componentmodel.Win32Exception, system.OverflowException, system.componentmodel.InvalidEnumArgumentException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { classType.Invoke("Synchronize"); } catch (JCNativeException jcne) { throw translateException(jcne); } } // Properties section public static IInputElement getCaptured() throws Throwable, system.ArgumentException, system.ArgumentNullException, system.security.SecurityException, system.ObjectDisposedException, system.UnauthorizedAccessException, system.io.IOException, system.ArgumentOutOfRangeException, system.InvalidOperationException, system.componentmodel.Win32Exception, system.OverflowException, system.componentmodel.InvalidEnumArgumentException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { JCObject val = (JCObject)classType.Get("Captured"); return new IInputElementImplementation(val); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static IInputElement getDirectlyOver() throws Throwable, system.ArgumentException, system.ArgumentNullException, system.security.SecurityException, system.ObjectDisposedException, system.UnauthorizedAccessException, system.io.IOException, system.ArgumentOutOfRangeException, system.InvalidOperationException, system.componentmodel.Win32Exception, system.OverflowException, system.componentmodel.InvalidEnumArgumentException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { JCObject val = (JCObject)classType.Get("DirectlyOver"); return new IInputElementImplementation(val); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static StylusDevice getCurrentStylusDevice() throws Throwable, system.ArgumentException, system.ArgumentNullException, system.ArgumentOutOfRangeException, system.security.SecurityException, system.ObjectDisposedException, system.IndexOutOfRangeException, system.UnauthorizedAccessException, system.io.IOException, system.InvalidOperationException, system.componentmodel.InvalidEnumArgumentException, system.componentmodel.Win32Exception, system.OverflowException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { JCObject val = (JCObject)classType.Get("CurrentStylusDevice"); return new StylusDevice(val); } catch (JCNativeException jcne) { throw translateException(jcne); } } // Instance Events section }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy