Package system.windows.input
Class MouseDevice
- java.lang.Object
-
- org.mases.jcobridge.netreflection.NetObject
-
- system.windows.threading.DispatcherObject
-
- system.windows.input.InputDevice
-
- system.windows.input.MouseDevice
-
- All Implemented Interfaces:
IJCOBridgeReflected
public class MouseDevice extends InputDevice
The base .NET class managing System.Windows.Input.MouseDevice, PresentationCore, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35..NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.Windows.Input.MouseDevice
Powered by JCOBridge: more info at https://www.jcobridge.com
- Author:
- MASES s.r.l https://masesgroup.com
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringassemblyFullNameFully assembly qualified name: PresentationCore, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35static java.lang.StringassemblyShortNameAssembly name: PresentationCorestatic java.lang.StringclassNameQualified class name: System.Windows.Input.MouseDevicestatic JCTypeclassTypeThe type managed from JCOBridge.
-
Constructor Summary
Constructors Constructor Description MouseDevice()MouseDevice(java.lang.Object instance)Internal constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanCapture(IInputElement element)booleanCapture(IInputElement element, CaptureMode captureMode)static MouseDevicecast(IJCOBridgeReflected from)Try to cast theIJCOBridgeReflectedinstance intoMouseDevice, a cast assert is made to check if types are compatible.IInputElementgetCaptured()IInputElementgetDirectlyOver()java.lang.StringgetJCOAssemblyName()Returns the reflected Assembly namejava.lang.StringgetJCOClassName()Returns the reflected Class namejava.lang.ObjectgetJCOInstance()Returns the instantiated classjava.lang.StringgetJCOObjectName()Returns the reflected Class name used to build the objectJCTypegetJCOType()Returns the instantiated class TypeMouseButtonStategetLeftButton()MouseButtonStategetMiddleButton()CursorgetOverrideCursor()PointGetPosition(IInputElement relativeTo)MouseButtonStategetRightButton()MouseButtonStategetXButton1()MouseButtonStategetXButton2()booleanSetCursor(Cursor cursor)voidsetJCOInstance(JCObject instance)voidsetOverrideCursor(Cursor OverrideCursor)voidSynchronize()voidUpdateCursor()-
Methods inherited from class system.windows.input.InputDevice
getActiveSource, getTarget
-
Methods inherited from class system.windows.threading.DispatcherObject
CheckAccess, getDispatcher, VerifyAccess
-
-
-
-
Field Detail
-
assemblyFullName
public static final java.lang.String assemblyFullName
Fully assembly qualified name: PresentationCore, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35- See Also:
- Constant Field Values
-
assemblyShortName
public static final java.lang.String assemblyShortName
Assembly name: PresentationCore- See Also:
- Constant Field Values
-
className
public static final java.lang.String className
Qualified class name: System.Windows.Input.MouseDevice- See Also:
- Constant Field Values
-
-
Method Detail
-
getJCOAssemblyName
public java.lang.String getJCOAssemblyName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Assembly name- Specified by:
getJCOAssemblyNamein interfaceIJCOBridgeReflected- Overrides:
getJCOAssemblyNamein classInputDevice- Returns:
- A
Stringrepresenting the Fullname of reflected Assembly
-
getJCOClassName
public java.lang.String getJCOClassName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Class name- Specified by:
getJCOClassNamein interfaceIJCOBridgeReflected- Overrides:
getJCOClassNamein classInputDevice- Returns:
- A
Stringrepresenting the Fullname of reflected Class
-
getJCOObjectName
public java.lang.String getJCOObjectName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Class name used to build the object- Specified by:
getJCOObjectNamein interfaceIJCOBridgeReflected- Overrides:
getJCOObjectNamein classInputDevice- Returns:
- A
Stringrepresenting the name used to allocated the object in CLR context
-
getJCOInstance
public java.lang.Object getJCOInstance()
Description copied from interface:IJCOBridgeReflectedReturns the instantiated class- Specified by:
getJCOInstancein interfaceIJCOBridgeReflected- Overrides:
getJCOInstancein classInputDevice- Returns:
- An
Objectrepresenting the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstancein classInputDevice
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflectedReturns the instantiated class Type- Specified by:
getJCOTypein interfaceIJCOBridgeReflected- Overrides:
getJCOTypein classInputDevice- Returns:
- A
JCTyperepresenting the CLR Type of the instantiated Class
-
cast
public static MouseDevice cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflectedinstance intoMouseDevice, a cast assert is made to check if types are compatible.- Parameters:
from-IJCOBridgeReflectedinstance to be casted- Returns:
MouseDeviceinstance- Throws:
java.lang.Throwable- in case of error during cast operation
-
Capture
public boolean Capture(IInputElement element) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, CultureNotFoundException, ArgumentOutOfRangeException, NotImplementedException, IndexOutOfRangeException, MissingManifestResourceException, ObjectDisposedException, FormatException, InvalidEnumArgumentException, NotSupportedException, MulticastNotSupportedException, KeyNotFoundException, Win32Exception
- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionCultureNotFoundExceptionArgumentOutOfRangeExceptionNotImplementedExceptionIndexOutOfRangeExceptionMissingManifestResourceExceptionObjectDisposedExceptionFormatExceptionInvalidEnumArgumentExceptionNotSupportedExceptionMulticastNotSupportedExceptionKeyNotFoundExceptionWin32Exception
-
Capture
public boolean Capture(IInputElement element, CaptureMode captureMode) throws java.lang.Throwable, ArgumentNullException, TypeLoadException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotSupportedException, CultureNotFoundException, ArgumentOutOfRangeException, NotImplementedException, MissingManifestResourceException, ObjectDisposedException, IndexOutOfRangeException, FormatException, InvalidEnumArgumentException, MulticastNotSupportedException, KeyNotFoundException, OutOfMemoryException, Win32Exception
- Throws:
java.lang.ThrowableArgumentNullExceptionTypeLoadExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionNotSupportedExceptionCultureNotFoundExceptionArgumentOutOfRangeExceptionNotImplementedExceptionMissingManifestResourceExceptionObjectDisposedExceptionIndexOutOfRangeExceptionFormatExceptionInvalidEnumArgumentExceptionMulticastNotSupportedExceptionKeyNotFoundExceptionOutOfMemoryExceptionWin32Exception
-
SetCursor
public boolean SetCursor(Cursor cursor) throws java.lang.Throwable, ArgumentOutOfRangeException, Win32Exception, ArgumentNullException, MissingManifestResourceException, NotImplementedException, ArgumentException, ObjectDisposedException, InvalidOperationException
-
GetPosition
public Point GetPosition(IInputElement relativeTo) throws java.lang.Throwable, ArgumentException, ArgumentNullException, InvalidOperationException, MissingMethodException, TargetInvocationException, ArgumentOutOfRangeException, FormatException, MissingManifestResourceException, NotImplementedException, ObjectDisposedException, AbandonedMutexException, Win32Exception, OverflowException
- Throws:
java.lang.ThrowableArgumentExceptionArgumentNullExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionArgumentOutOfRangeExceptionFormatExceptionMissingManifestResourceExceptionNotImplementedExceptionObjectDisposedExceptionAbandonedMutexExceptionWin32ExceptionOverflowException
-
Synchronize
public void Synchronize() throws java.lang.Throwable, Win32Exception, ArgumentNullException, ArgumentException, MissingManifestResourceException, NotImplementedException, ObjectDisposedException, InvalidOperationException, ArgumentOutOfRangeException, IndexOutOfRangeException, InvalidEnumArgumentException, MulticastNotSupportedException, OutOfMemoryException- Throws:
java.lang.ThrowableWin32ExceptionArgumentNullExceptionArgumentExceptionMissingManifestResourceExceptionNotImplementedExceptionObjectDisposedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionIndexOutOfRangeExceptionInvalidEnumArgumentExceptionMulticastNotSupportedExceptionOutOfMemoryException
-
UpdateCursor
public void UpdateCursor() throws java.lang.Throwable, ArgumentNullException, Win32Exception, MissingManifestResourceException, ObjectDisposedException, InvalidOperationException, ArgumentException, ArgumentOutOfRangeException, InvalidEnumArgumentException, MulticastNotSupportedException, OutOfMemoryException
-
getCaptured
public IInputElement getCaptured() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getDirectlyOver
public IInputElement getDirectlyOver() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getOverrideCursor
public Cursor getOverrideCursor() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setOverrideCursor
public void setOverrideCursor(Cursor OverrideCursor) throws java.lang.Throwable, ArgumentNullException, Win32Exception, MissingManifestResourceException, ObjectDisposedException, InvalidOperationException, ArgumentException, ArgumentOutOfRangeException, InvalidEnumArgumentException, MulticastNotSupportedException, OutOfMemoryException
-
getLeftButton
public MouseButtonState getLeftButton() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getMiddleButton
public MouseButtonState getMiddleButton() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getRightButton
public MouseButtonState getRightButton() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getXButton1
public MouseButtonState getXButton1() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getXButton2
public MouseButtonState getXButton2() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
-