Package system.drawing
Class Icon
- java.lang.Object
-
- org.mases.jcobridge.netreflection.NetObject
-
- system.MarshalByRefObject
-
- system.drawing.Icon
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,IJCOBridgeReflected
,ISerializable
public class Icon extends MarshalByRefObject implements ISerializable, java.lang.AutoCloseable
The base .NET class managing System.Drawing.Icon, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a..NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.Drawing.Icon
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.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3astatic java.lang.String
assemblyShortName
Assembly name: System.Drawingstatic java.lang.String
className
Qualified class name: System.Drawing.Iconstatic JCType
classType
The type managed from JCOBridge.
-
Constructor Summary
Constructors Constructor Description Icon()
Icon(java.lang.Object instance)
Internal constructor.Icon(java.lang.String fileName)
Icon(java.lang.String fileName, int width, int height)
Icon(java.lang.String fileName, Size size)
Icon(NetType type, java.lang.String resource)
Icon(Icon original, int width, int height)
Icon(Icon original, Size size)
Icon(Stream stream)
Icon(Stream stream, int width, int height)
Icon(Stream stream, Size size)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Icon
cast(IJCOBridgeReflected from)
Try to cast theIJCOBridgeReflected
instance intoIcon
, a cast assert is made to check if types are compatible.NetObject
Clone()
void
close()
void
Dispose()
static Icon
ExtractAssociatedIcon(java.lang.String filePath)
int
getHeight()
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 TypeSize
getSize()
int
getWidth()
void
Save(Stream outputStream)
void
setJCOInstance(JCObject instance)
Bitmap
ToBitmap()
-
Methods inherited from class system.MarshalByRefObject
CreateObjRef, GetLifetimeService, InitializeLifetimeService
-
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.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a- See Also:
- Constant Field Values
-
assemblyShortName
public static final java.lang.String assemblyShortName
Assembly name: System.Drawing- See Also:
- Constant Field Values
-
className
public static final java.lang.String className
Qualified class name: System.Drawing.Icon- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Icon
public Icon(java.lang.Object instance) throws java.lang.Throwable
Internal constructor. Use with caution- Throws:
java.lang.Throwable
-
Icon
public Icon() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
Icon
public Icon(Icon original, int width, int height) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, NotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException, FormatException, OverflowException, IndexOutOfRangeException, Win32Exception
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
InvalidOperationException
MissingMethodException
TargetInvocationException
NotImplementedException
NotSupportedException
ArgumentOutOfRangeException
CultureNotFoundException
MissingManifestResourceException
ObjectDisposedException
FormatException
OverflowException
IndexOutOfRangeException
Win32Exception
-
Icon
public Icon(Icon original, Size size) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException, IndexOutOfRangeException, AbandonedMutexException, OverflowException, Win32Exception
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
InvalidOperationException
MissingMethodException
TargetInvocationException
NotImplementedException
ArgumentOutOfRangeException
CultureNotFoundException
MissingManifestResourceException
ObjectDisposedException
IndexOutOfRangeException
AbandonedMutexException
OverflowException
Win32Exception
-
Icon
public Icon(Stream stream) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException, IndexOutOfRangeException, AbandonedMutexException, OverflowException, Win32Exception
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
InvalidOperationException
MissingMethodException
TargetInvocationException
NotImplementedException
ArgumentOutOfRangeException
CultureNotFoundException
MissingManifestResourceException
ObjectDisposedException
IndexOutOfRangeException
AbandonedMutexException
OverflowException
Win32Exception
-
Icon
public Icon(Stream stream, int width, int height) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, NotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException, FormatException, OverflowException, IndexOutOfRangeException, Win32Exception
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
InvalidOperationException
MissingMethodException
TargetInvocationException
NotImplementedException
NotSupportedException
ArgumentOutOfRangeException
CultureNotFoundException
MissingManifestResourceException
ObjectDisposedException
FormatException
OverflowException
IndexOutOfRangeException
Win32Exception
-
Icon
public Icon(Stream stream, Size size) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException, IndexOutOfRangeException, AbandonedMutexException, OverflowException, Win32Exception
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
InvalidOperationException
MissingMethodException
TargetInvocationException
NotImplementedException
ArgumentOutOfRangeException
CultureNotFoundException
MissingManifestResourceException
ObjectDisposedException
IndexOutOfRangeException
AbandonedMutexException
OverflowException
Win32Exception
-
Icon
public Icon(java.lang.String fileName) throws java.lang.Throwable, ArgumentNullException, ArgumentException, ArgumentOutOfRangeException, FormatException, PathTooLongException, IndexOutOfRangeException, NotSupportedException, InvalidOperationException, NullReferenceException, SecurityException, IOException, NotImplementedException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException, OverflowException, Win32Exception
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
ArgumentOutOfRangeException
FormatException
PathTooLongException
IndexOutOfRangeException
NotSupportedException
InvalidOperationException
NullReferenceException
SecurityException
IOException
NotImplementedException
CultureNotFoundException
MissingManifestResourceException
ObjectDisposedException
OverflowException
Win32Exception
-
Icon
public Icon(java.lang.String fileName, int width, int height) throws java.lang.Throwable, ArgumentNullException, ArgumentException, ArgumentOutOfRangeException, FormatException, PathTooLongException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, IOException, DriveNotFoundException, OperationCanceledException, NotSupportedException, InvalidOperationException, NullReferenceException, SecurityException, NotImplementedException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException, AbandonedMutexException, OverflowException, Win32Exception
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
ArgumentOutOfRangeException
FormatException
PathTooLongException
FileNotFoundException
DirectoryNotFoundException
UnauthorizedAccessException
IOException
DriveNotFoundException
OperationCanceledException
NotSupportedException
InvalidOperationException
NullReferenceException
SecurityException
NotImplementedException
CultureNotFoundException
MissingManifestResourceException
ObjectDisposedException
AbandonedMutexException
OverflowException
Win32Exception
-
Icon
public Icon(java.lang.String fileName, Size size) throws java.lang.Throwable, ArgumentNullException, ArgumentException, ArgumentOutOfRangeException, FormatException, PathTooLongException, IndexOutOfRangeException, NotSupportedException, InvalidOperationException, NullReferenceException, SecurityException, IOException, NotImplementedException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException, OverflowException, Win32Exception
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
ArgumentOutOfRangeException
FormatException
PathTooLongException
IndexOutOfRangeException
NotSupportedException
InvalidOperationException
NullReferenceException
SecurityException
IOException
NotImplementedException
CultureNotFoundException
MissingManifestResourceException
ObjectDisposedException
OverflowException
Win32Exception
-
Icon
public Icon(NetType type, java.lang.String resource) throws java.lang.Throwable, NotImplementedException, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException, FormatException, OverflowException, IndexOutOfRangeException, Win32Exception
- Throws:
java.lang.Throwable
NotImplementedException
ArgumentNullException
ArgumentException
InvalidOperationException
MissingMethodException
TargetInvocationException
NotSupportedException
ArgumentOutOfRangeException
CultureNotFoundException
MissingManifestResourceException
ObjectDisposedException
FormatException
OverflowException
IndexOutOfRangeException
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 classMarshalByRefObject
- 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 classMarshalByRefObject
- 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 classMarshalByRefObject
- 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 classMarshalByRefObject
- Returns:
- An
Object
representing the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstance
in classMarshalByRefObject
-
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 classMarshalByRefObject
- Returns:
- A
JCType
representing the CLR Type of the instantiated Class
-
cast
public static Icon cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflected
instance intoIcon
, a cast assert is made to check if types are compatible.- Parameters:
from
-IJCOBridgeReflected
instance to be casted- Returns:
Icon
instance- Throws:
java.lang.Throwable
- in case of error during cast operation
-
ToBitmap
public Bitmap ToBitmap() throws java.lang.Throwable, ArgumentNullException, ArgumentOutOfRangeException, ArgumentException, InvalidOperationException, NotImplementedException, CultureNotFoundException, IndexOutOfRangeException, MissingManifestResourceException, ObjectDisposedException, OutOfMemoryException, NotSupportedException, NullReferenceException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, IOException, PathTooLongException, DriveNotFoundException, OperationCanceledException, SecurityException, OverflowException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentOutOfRangeException
ArgumentException
InvalidOperationException
NotImplementedException
CultureNotFoundException
IndexOutOfRangeException
MissingManifestResourceException
ObjectDisposedException
OutOfMemoryException
NotSupportedException
NullReferenceException
FileNotFoundException
DirectoryNotFoundException
UnauthorizedAccessException
IOException
PathTooLongException
DriveNotFoundException
OperationCanceledException
SecurityException
OverflowException
-
ExtractAssociatedIcon
public static Icon ExtractAssociatedIcon(java.lang.String filePath) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException, IndexOutOfRangeException, SecurityException, MemberAccessException, NullReferenceException, UriFormatException, OutOfMemoryException, PathTooLongException, NotSupportedException, FileNotFoundException, AbandonedMutexException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
InvalidOperationException
MissingMethodException
TargetInvocationException
NotImplementedException
ArgumentOutOfRangeException
CultureNotFoundException
MissingManifestResourceException
ObjectDisposedException
IndexOutOfRangeException
SecurityException
MemberAccessException
NullReferenceException
UriFormatException
OutOfMemoryException
PathTooLongException
NotSupportedException
FileNotFoundException
AbandonedMutexException
-
Clone
public NetObject Clone() throws java.lang.Throwable, ObjectDisposedException, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, IndexOutOfRangeException, AbandonedMutexException, OverflowException, Win32Exception
- Throws:
java.lang.Throwable
ObjectDisposedException
ArgumentNullException
ArgumentException
InvalidOperationException
MissingMethodException
TargetInvocationException
NotImplementedException
ArgumentOutOfRangeException
CultureNotFoundException
MissingManifestResourceException
IndexOutOfRangeException
AbandonedMutexException
OverflowException
Win32Exception
-
Dispose
public void Dispose() throws java.lang.Throwable, ArgumentException, ArgumentNullException
- Throws:
java.lang.Throwable
ArgumentException
ArgumentNullException
-
Save
public void Save(Stream outputStream) throws java.lang.Throwable, ObjectDisposedException, ArgumentNullException, ArgumentException
- Throws:
java.lang.Throwable
ObjectDisposedException
ArgumentNullException
ArgumentException
-
close
public void close() throws java.lang.Exception
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Throws:
java.lang.Exception
-
getHeight
public int getHeight() throws java.lang.Throwable, ObjectDisposedException, ArgumentNullException, ArgumentException
- Throws:
java.lang.Throwable
ObjectDisposedException
ArgumentNullException
ArgumentException
-
getWidth
public int getWidth() throws java.lang.Throwable, ObjectDisposedException, ArgumentNullException, ArgumentException
- Throws:
java.lang.Throwable
ObjectDisposedException
ArgumentNullException
ArgumentException
-
getSize
public Size getSize() throws java.lang.Throwable, ObjectDisposedException, ArgumentNullException, ArgumentException
- Throws:
java.lang.Throwable
ObjectDisposedException
ArgumentNullException
ArgumentException
-
-