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=9.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.String
assemblyFullName
Fully assembly qualified name: System.Windows.Forms, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089static java.lang.String
assemblyShortName
Assembly name: System.Windows.Formsstatic java.lang.String
className
Qualified class name: System.Windows.Forms.Cursorstatic JCType
classType
The type managed from JCOBridge.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Cursor
cast(IJCOBridgeReflected from)
Try to cast theIJCOBridgeReflected
instance intoCursor
, a cast assert is made to check if types are compatible.void
close()
void
Dispose()
void
Draw(Graphics g, Rectangle targetRect)
void
DrawStretched(Graphics g, Rectangle targetRect)
static Rectangle
getClip()
static Cursor
getCurrent()
Point
getHotSpot()
java.lang.String
getJCOAssemblyName()
Returns the reflected Assembly namejava.lang.String
getJCOClassName()
Returns the reflected Class namejava.lang.Object
getJCOInstance()
Returns the instantiated classjava.lang.String
getJCOObjectName()
Returns the reflected Class name used to build the objectJCType
getJCOType()
Returns the instantiated class Typestatic Point
getPosition()
Size
getSize()
NetObject
getTag()
static void
Hide()
static void
setClip(Rectangle Clip)
static void
setCurrent(Cursor Current)
void
setJCOInstance(JCObject instance)
static void
setPosition(Point Position)
void
setTag(NetObject Tag)
static void
Show()
-
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=9.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.Throwable
Internal 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, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, Win32Exception
-
Cursor
public Cursor(java.lang.String fileName) throws java.lang.Throwable, ArgumentNullException, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, IndexOutOfRangeException, InvalidOperationException, FormatException, OutOfMemoryException, SerializationException, NotSupportedException, MissingMethodException, TargetInvocationException, ObjectDisposedException, IOException, ArrayTypeMismatchException, WaitHandleCannotBeOpenedException, AbandonedMutexException, Win32Exception
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
ArgumentOutOfRangeException
PlatformNotSupportedException
IndexOutOfRangeException
InvalidOperationException
FormatException
OutOfMemoryException
SerializationException
NotSupportedException
MissingMethodException
TargetInvocationException
ObjectDisposedException
IOException
ArrayTypeMismatchException
WaitHandleCannotBeOpenedException
AbandonedMutexException
Win32Exception
-
Cursor
public Cursor(NetType type, java.lang.String resource) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, PlatformNotSupportedException, ObjectDisposedException, ArrayTypeMismatchException, Win32Exception
-
-
Method Detail
-
getJCOAssemblyName
public java.lang.String getJCOAssemblyName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Assembly name- Specified by:
getJCOAssemblyName
in interfaceIJCOBridgeReflected
- Specified by:
getJCOAssemblyName
in interfaceISerializable
- Overrides:
getJCOAssemblyName
in classNetObject
- Returns:
- A
String
representing the Fullname of reflected Assembly
-
getJCOClassName
public java.lang.String getJCOClassName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Class name- Specified by:
getJCOClassName
in interfaceIJCOBridgeReflected
- Specified by:
getJCOClassName
in interfaceISerializable
- Overrides:
getJCOClassName
in classNetObject
- Returns:
- A
String
representing the Fullname of reflected Class
-
getJCOObjectName
public java.lang.String getJCOObjectName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Class name used to build the object- Specified by:
getJCOObjectName
in interfaceIJCOBridgeReflected
- Specified by:
getJCOObjectName
in interfaceISerializable
- Overrides:
getJCOObjectName
in classNetObject
- Returns:
- A
String
representing the name used to allocated the object in CLR context
-
getJCOInstance
public java.lang.Object getJCOInstance()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class- Specified by:
getJCOInstance
in interfaceIJCOBridgeReflected
- Specified by:
getJCOInstance
in interfaceISerializable
- Overrides:
getJCOInstance
in classNetObject
- Returns:
- An
Object
representing the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstance
in classNetObject
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class Type- Specified by:
getJCOType
in interfaceIJCOBridgeReflected
- Specified by:
getJCOType
in interfaceISerializable
- Overrides:
getJCOType
in classNetObject
- Returns:
- A
JCType
representing the CLR Type of the instantiated Class
-
cast
public static Cursor cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflected
instance intoCursor
, a cast assert is made to check if types are compatible.- Parameters:
from
-IJCOBridgeReflected
instance to be casted- Returns:
Cursor
instance- Throws:
java.lang.Throwable
- in case of error during cast operation
-
Dispose
public void Dispose() throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException
- Throws:
java.lang.Throwable
ArgumentException
NotSupportedException
InvalidOperationException
ArgumentOutOfRangeException
ArgumentNullException
-
Draw
public void Draw(Graphics g, Rectangle targetRect) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, PlatformNotSupportedException, FormatException
-
DrawStretched
public void DrawStretched(Graphics g, Rectangle targetRect) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, PlatformNotSupportedException, FormatException
-
Hide
public static void Hide() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
Show
public static void Show() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
close
public void close() throws java.lang.Exception
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Throws:
java.lang.Exception
-
getHotSpot
public Point getHotSpot() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getPosition
public static Point getPosition() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setPosition
public static void setPosition(Point Position) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getClip
public static Rectangle getClip() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setClip
public static void setClip(Rectangle Clip) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
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, NotSupportedException, ArgumentException, ArgumentNullException, PlatformNotSupportedException, ArgumentOutOfRangeException, InvalidOperationException, FormatException
-
setCurrent
public static void setCurrent(Cursor Current) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
-