Package system.windows.forms
Class Cursor
- java.lang.Object
-
- org.mases.jcobridge.netreflection.NetObject
-
- system.windows.forms.Cursor
-
- All Implemented Interfaces:
java.lang.AutoCloseable,IJCOBridgeReflected,ISerializable
public class Cursor extends NetObject implements ISerializable, java.lang.AutoCloseable
The base .NET class managing System.Windows.Forms.Cursor, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089..NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.Windows.Forms.Cursor
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: System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089static java.lang.StringassemblyShortNameAssembly name: System.Windows.Formsstatic java.lang.StringclassNameQualified class name: System.Windows.Forms.Cursorstatic JCTypeclassTypeThe type managed from JCOBridge.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Cursorcast(IJCOBridgeReflected from)Try to cast theIJCOBridgeReflectedinstance intoCursor, a cast assert is made to check if types are compatible.voidclose()voidDispose()voidDraw(Graphics g, Rectangle targetRect)voidDrawStretched(Graphics g, Rectangle targetRect)static RectanglegetClip()static CursorgetCurrent()PointgetHotSpot()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 Typestatic PointgetPosition()SizegetSize()NetObjectgetTag()static voidHide()static voidsetClip(Rectangle Clip)static voidsetCurrent(Cursor Current)voidsetJCOInstance(JCObject instance)static voidsetPosition(Point Position)voidsetTag(NetObject Tag)static voidShow()-
Methods inherited from class org.mases.jcobridge.netreflection.NetObject
Equals, Equals, GetHashCode, GetType, hashCode, toString, ToString
-
Methods inherited from interface system.runtime.serialization.ISerializable
GetObjectData
-
-
-
-
Field Detail
-
assemblyFullName
public static final java.lang.String assemblyFullName
Fully assembly qualified name: System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089- See Also:
- Constant Field Values
-
assemblyShortName
public static final java.lang.String assemblyShortName
Assembly name: System.Windows.Forms- See Also:
- Constant Field Values
-
className
public static final java.lang.String className
Qualified class name: System.Windows.Forms.Cursor- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Cursor
public Cursor(java.lang.Object instance) throws java.lang.ThrowableInternal constructor. Use with caution- Throws:
java.lang.Throwable
-
Cursor
public Cursor() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
Cursor
public Cursor(Stream stream) throws java.lang.Throwable, OverflowException, ArgumentNullException, ArgumentException, ArgumentOutOfRangeException, FormatException, SecurityException, NotSupportedException, ConfigurationErrorsException, IndexOutOfRangeException, CultureNotFoundException, InvalidOperationException, ObjectDisposedException, AbandonedMutexException, NotImplementedException, MissingManifestResourceException
- Throws:
java.lang.ThrowableOverflowExceptionArgumentNullExceptionArgumentExceptionArgumentOutOfRangeExceptionFormatExceptionSecurityExceptionNotSupportedExceptionConfigurationErrorsExceptionIndexOutOfRangeExceptionCultureNotFoundExceptionInvalidOperationExceptionObjectDisposedExceptionAbandonedMutexExceptionNotImplementedExceptionMissingManifestResourceException
-
Cursor
public Cursor(java.lang.String fileName) throws java.lang.Throwable, ArgumentNullException, ArgumentException, ArgumentOutOfRangeException, FormatException, PathTooLongException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, IOException, DriveNotFoundException, OperationCanceledException, NotSupportedException, InvalidOperationException, NullReferenceException, SecurityException, OverflowException, ConfigurationErrorsException, NotImplementedException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentExceptionArgumentOutOfRangeExceptionFormatExceptionPathTooLongExceptionFileNotFoundExceptionDirectoryNotFoundExceptionUnauthorizedAccessExceptionIOExceptionDriveNotFoundExceptionOperationCanceledExceptionNotSupportedExceptionInvalidOperationExceptionNullReferenceExceptionSecurityExceptionOverflowExceptionConfigurationErrorsExceptionNotImplementedExceptionCultureNotFoundExceptionMissingManifestResourceExceptionObjectDisposedException
-
Cursor
public Cursor(NetType type, java.lang.String resource) throws java.lang.Throwable, NotImplementedException, OverflowException, ArgumentNullException, FormatException, ArgumentException, SecurityException, ArgumentOutOfRangeException, ConfigurationErrorsException, CultureNotFoundException, NotSupportedException, InvalidOperationException, ObjectDisposedException
-
-
Method Detail
-
getJCOAssemblyName
public java.lang.String getJCOAssemblyName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Assembly name- Specified by:
getJCOAssemblyNamein interfaceIJCOBridgeReflected- Specified by:
getJCOAssemblyNamein interfaceISerializable- Overrides:
getJCOAssemblyNamein classNetObject- 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- Specified by:
getJCOClassNamein interfaceISerializable- Overrides:
getJCOClassNamein classNetObject- 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- Specified by:
getJCOObjectNamein interfaceISerializable- Overrides:
getJCOObjectNamein classNetObject- 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- Specified by:
getJCOInstancein interfaceISerializable- Overrides:
getJCOInstancein classNetObject- Returns:
- An
Objectrepresenting the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstancein classNetObject
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflectedReturns the instantiated class Type- Specified by:
getJCOTypein interfaceIJCOBridgeReflected- Specified by:
getJCOTypein interfaceISerializable- Overrides:
getJCOTypein classNetObject- Returns:
- A
JCTyperepresenting the CLR Type of the instantiated Class
-
cast
public static Cursor cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflectedinstance intoCursor, a cast assert is made to check if types are compatible.- Parameters:
from-IJCOBridgeReflectedinstance to be casted- Returns:
Cursorinstance- Throws:
java.lang.Throwable- in case of error during cast operation
-
Dispose
public void Dispose() throws java.lang.Throwable, ArgumentException, ArgumentNullException- Throws:
java.lang.ThrowableArgumentExceptionArgumentNullException
-
Draw
public void Draw(Graphics g, Rectangle targetRect) throws java.lang.Throwable, ArgumentNullException, ArgumentException, MissingManifestResourceException, NotImplementedException, ObjectDisposedException, InvalidOperationException, ArgumentOutOfRangeException, IndexOutOfRangeException, OutOfMemoryException
-
DrawStretched
public void DrawStretched(Graphics g, Rectangle targetRect) throws java.lang.Throwable, ArgumentNullException, ArgumentException, MissingManifestResourceException, NotImplementedException, ObjectDisposedException, InvalidOperationException, ArgumentOutOfRangeException, IndexOutOfRangeException, OutOfMemoryException
-
Hide
public static void Hide() throws java.lang.Throwable, ArgumentNullException, FormatException, ArgumentException- Throws:
java.lang.ThrowableArgumentNullExceptionFormatExceptionArgumentException
-
Show
public static void Show() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
close
public void close() throws java.lang.Exception- Specified by:
closein interfacejava.lang.AutoCloseable- Throws:
java.lang.Exception
-
getHotSpot
public Point getHotSpot() throws java.lang.Throwable, ArgumentNullException, FormatException, ArgumentException, SecurityException, NotSupportedException, MissingMethodException, NotImplementedException, ArgumentOutOfRangeException, InvalidOperationException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException, IndexOutOfRangeException
- Throws:
java.lang.ThrowableArgumentNullExceptionFormatExceptionArgumentExceptionSecurityExceptionNotSupportedExceptionMissingMethodExceptionNotImplementedExceptionArgumentOutOfRangeExceptionInvalidOperationExceptionCultureNotFoundExceptionMissingManifestResourceExceptionObjectDisposedExceptionIndexOutOfRangeException
-
getPosition
public static Point getPosition() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setPosition
public static void setPosition(Point Position) throws java.lang.Throwable, ArgumentNullException, FormatException, ArgumentException
- Throws:
java.lang.ThrowableArgumentNullExceptionFormatExceptionArgumentException
-
getClip
public static Rectangle getClip() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setClip
public static void setClip(Rectangle Clip) throws java.lang.Throwable, ArgumentNullException, FormatException, ArgumentException
- Throws:
java.lang.ThrowableArgumentNullExceptionFormatExceptionArgumentException
-
getSize
public Size getSize() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getTag
public NetObject getTag() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setTag
public void setTag(NetObject Tag) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getCurrent
public static Cursor getCurrent() throws java.lang.Throwable, ArgumentNullException, FormatException, ArgumentException, SecurityException, NotSupportedException, NotImplementedException, MissingManifestResourceException, ObjectDisposedException, InvalidOperationException, ArgumentOutOfRangeException
-
setCurrent
public static void setCurrent(Cursor Current) throws java.lang.Throwable, ArgumentNullException, FormatException, ArgumentException
- Throws:
java.lang.ThrowableArgumentNullExceptionFormatExceptionArgumentException
-
-