public class MouseDevice extends InputDevice
.NET documentation at https://learn.microsoft.com/dotnet/api/System.Windows.Input.MouseDevice
Powered by JCOBridge: more info at https://www.jcobridge.com
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
assemblyFullName
Fully assembly qualified name: PresentationCore, Version=8.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
|
static java.lang.String |
assemblyShortName
Assembly name: PresentationCore
|
static java.lang.String |
className
Qualified class name: System.Windows.Input.MouseDevice
|
static JCType |
classType
The type managed from JCOBridge.
|
| Constructor and Description |
|---|
MouseDevice() |
MouseDevice(java.lang.Object instance)
Internal constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
Capture(IInputElement element)
Invokes the .NET member Capture.
|
boolean |
Capture(IInputElement element,
CaptureMode captureMode)
Invokes the .NET member Capture.
|
static MouseDevice |
cast(IJCOBridgeReflected from)
Try to cast the
IJCOBridgeReflected instance into MouseDevice, a cast assert is made to check if types are compatible. |
IInputElement |
getCaptured()
Gets the value of the .NET property Captured.
|
IInputElement |
getDirectlyOver()
Gets the value of the .NET property DirectlyOver.
|
java.lang.String |
getJCOAssemblyName()
Returns the full name of the assembly of the .NET type.
|
java.lang.String |
getJCOClassName()
Returns the full name of the .NET type.
|
java.lang.Object |
getJCOInstance()
Returns the underlying object managed by the bridge.
|
java.lang.String |
getJCOObjectName()
Returns the name of the .NET type qualified with its assembly.
|
JCType |
getJCOType()
Returns the
JCType of the .NET type. |
MouseButtonState |
getLeftButton()
Gets the value of the .NET property LeftButton.
|
MouseButtonState |
getMiddleButton()
Gets the value of the .NET property MiddleButton.
|
Cursor |
getOverrideCursor()
Gets the value of the .NET property OverrideCursor.
|
Point |
GetPosition(IInputElement relativeTo)
Invokes the .NET member GetPosition.
|
MouseButtonState |
getRightButton()
Gets the value of the .NET property RightButton.
|
MouseButtonState |
getXButton1()
Gets the value of the .NET property XButton1.
|
MouseButtonState |
getXButton2()
Gets the value of the .NET property XButton2.
|
boolean |
SetCursor(Cursor cursor)
Invokes the .NET member SetCursor.
|
void |
setJCOInstance(JCObject instance)
Sets the underlying object managed by the bridge.
|
void |
setOverrideCursor(Cursor OverrideCursor)
Sets the value of the .NET property OverrideCursor.
|
void |
Synchronize()
Invokes the .NET member Synchronize.
|
void |
UpdateCursor()
Invokes the .NET member UpdateCursor.
|
getActiveSource, getTargetCheckAccess, getDispatcher, VerifyAccesspublic static final java.lang.String assemblyFullName
public static final java.lang.String assemblyShortName
public static final java.lang.String className
public MouseDevice()
throws java.lang.Throwable
java.lang.Throwablepublic MouseDevice(java.lang.Object instance)
throws java.lang.Throwable
instance - the underlying bridge object: it must be a JCObjectjava.lang.Throwable - if instance is not a JCObjectpublic boolean Capture(IInputElement element) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ObjectDisposedException, InvalidOperationException, IndexOutOfRangeException, ArgumentOutOfRangeException, FormatException, InvalidEnumArgumentException, NotSupportedException, OutOfMemoryException, MulticastNotSupportedException, KeyNotFoundException, RankException, ArrayTypeMismatchException, Win32Exception
element - the argument of type IInputElementjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentNullException - if the .NET member raises itArgumentException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itFormatException - if the .NET member raises itInvalidEnumArgumentException - if the .NET member raises itNotSupportedException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itMulticastNotSupportedException - if the .NET member raises itKeyNotFoundException - if the .NET member raises itRankException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itWin32Exception - if the .NET member raises itpublic boolean Capture(IInputElement element, CaptureMode captureMode) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, ArrayTypeMismatchException, InvalidOperationException, IndexOutOfRangeException, FormatException, InvalidEnumArgumentException, NotSupportedException, OutOfMemoryException, MulticastNotSupportedException, KeyNotFoundException, RankException, Win32Exception
element - the argument of type IInputElementcaptureMode - the argument of type CaptureModejava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentNullException - if the .NET member raises itArgumentException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itInvalidOperationException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itFormatException - if the .NET member raises itInvalidEnumArgumentException - if the .NET member raises itNotSupportedException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itMulticastNotSupportedException - if the .NET member raises itKeyNotFoundException - if the .NET member raises itRankException - if the .NET member raises itWin32Exception - if the .NET member raises itpublic static MouseDevice cast(IJCOBridgeReflected from) throws java.lang.Throwable
IJCOBridgeReflected instance into MouseDevice, a cast assert is made to check if types are compatible.from - IJCOBridgeReflected instance to be castedMouseDevice instancejava.lang.Throwable - in case of error during cast operationpublic IInputElement getCaptured() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic IInputElement getDirectlyOver() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic java.lang.String getJCOAssemblyName()
NetObjectgetJCOAssemblyName in interface IJCOBridgeReflectedgetJCOAssemblyName in class InputDevicepublic java.lang.String getJCOClassName()
NetObjectgetJCOClassName in interface IJCOBridgeReflectedgetJCOClassName in class InputDevicepublic java.lang.Object getJCOInstance()
NetObjectgetJCOInstance in interface IJCOBridgeReflectedgetJCOInstance in class InputDevicenull if there is nonepublic java.lang.String getJCOObjectName()
NetObjectgetJCOObjectName in interface IJCOBridgeReflectedgetJCOObjectName in class InputDevicepublic JCType getJCOType()
NetObjectJCType of the .NET type.getJCOType in interface IJCOBridgeReflectedgetJCOType in class InputDevicepublic MouseButtonState getLeftButton() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic MouseButtonState getMiddleButton() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic Cursor getOverrideCursor() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic Point GetPosition(IInputElement relativeTo) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException, NotSupportedException, Win32Exception
relativeTo - the argument of type IInputElementjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentNullException - if the .NET member raises itArgumentException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itObjectDisposedException - if the .NET member raises itNotSupportedException - if the .NET member raises itWin32Exception - if the .NET member raises itpublic MouseButtonState getRightButton() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic MouseButtonState getXButton1() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic MouseButtonState getXButton2() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic boolean SetCursor(Cursor cursor) throws java.lang.Throwable, Win32Exception, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ObjectDisposedException, InvalidOperationException, IndexOutOfRangeException, ArgumentOutOfRangeException, FormatException
cursor - the argument of type Cursorjava.lang.Throwable - if the call fails in the bridge or in the CLRWin32Exception - if the .NET member raises itArgumentNullException - if the .NET member raises itArgumentException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itFormatException - if the .NET member raises itpublic void setJCOInstance(JCObject instance)
NetObjectsetJCOInstance in class InputDeviceinstance - the new underlying objectpublic void setOverrideCursor(Cursor OverrideCursor) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, Win32Exception, PlatformNotSupportedException, FormatException, IndexOutOfRangeException, InvalidEnumArgumentException, MulticastNotSupportedException
OverrideCursor - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArgumentNullException - if the .NET member raises itWin32Exception - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itFormatException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itInvalidEnumArgumentException - if the .NET member raises itMulticastNotSupportedException - if the .NET member raises itpublic void Synchronize()
throws java.lang.Throwable,
Win32Exception,
ArgumentException,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
NotSupportedException,
ObjectDisposedException,
InvalidOperationException,
RankException,
ArrayTypeMismatchException,
ArgumentNullException,
FormatException,
InvalidEnumArgumentException,
MulticastNotSupportedException,
OutOfMemoryException
java.lang.Throwable - if the call fails in the bridge or in the CLRWin32Exception - if the .NET member raises itArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itRankException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itArgumentNullException - if the .NET member raises itFormatException - if the .NET member raises itInvalidEnumArgumentException - if the .NET member raises itMulticastNotSupportedException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itpublic void UpdateCursor()
throws java.lang.Throwable,
ArgumentException,
NotSupportedException,
InvalidOperationException,
ArgumentOutOfRangeException,
ArgumentNullException,
Win32Exception,
PlatformNotSupportedException,
FormatException,
IndexOutOfRangeException,
InvalidEnumArgumentException,
MulticastNotSupportedException
java.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArgumentNullException - if the .NET member raises itWin32Exception - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itFormatException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itInvalidEnumArgumentException - if the .NET member raises itMulticastNotSupportedException - if the .NET member raises it