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.StringassemblyFullNameFully assembly qualified name: System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3astatic java.lang.StringassemblyShortNameAssembly name: System.Drawingstatic java.lang.StringclassNameQualified class name: System.Drawing.Iconstatic JCTypeclassTypeThe 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 Iconcast(IJCOBridgeReflected from)Try to cast theIJCOBridgeReflectedinstance intoIcon, a cast assert is made to check if types are compatible.NetObjectClone()voidclose()voidDispose()static IconExtractAssociatedIcon(java.lang.String filePath)intgetHeight()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 TypeSizegetSize()intgetWidth()voidSave(Stream outputStream)voidsetJCOInstance(JCObject instance)BitmapToBitmap()-
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.ThrowableInternal 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.ThrowableArgumentNullExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionNotImplementedExceptionNotSupportedExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionMissingManifestResourceExceptionObjectDisposedExceptionFormatExceptionOverflowExceptionIndexOutOfRangeExceptionWin32Exception
-
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.ThrowableArgumentNullExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionNotImplementedExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionMissingManifestResourceExceptionObjectDisposedExceptionIndexOutOfRangeExceptionAbandonedMutexExceptionOverflowExceptionWin32Exception
-
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.ThrowableArgumentNullExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionNotImplementedExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionMissingManifestResourceExceptionObjectDisposedExceptionIndexOutOfRangeExceptionAbandonedMutexExceptionOverflowExceptionWin32Exception
-
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.ThrowableArgumentNullExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionNotImplementedExceptionNotSupportedExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionMissingManifestResourceExceptionObjectDisposedExceptionFormatExceptionOverflowExceptionIndexOutOfRangeExceptionWin32Exception
-
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.ThrowableArgumentNullExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionNotImplementedExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionMissingManifestResourceExceptionObjectDisposedExceptionIndexOutOfRangeExceptionAbandonedMutexExceptionOverflowExceptionWin32Exception
-
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.ThrowableArgumentNullExceptionArgumentExceptionArgumentOutOfRangeExceptionFormatExceptionPathTooLongExceptionIndexOutOfRangeExceptionNotSupportedExceptionInvalidOperationExceptionNullReferenceExceptionSecurityExceptionIOExceptionNotImplementedExceptionCultureNotFoundExceptionMissingManifestResourceExceptionObjectDisposedExceptionOverflowExceptionWin32Exception
-
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.ThrowableArgumentNullExceptionArgumentExceptionArgumentOutOfRangeExceptionFormatExceptionPathTooLongExceptionFileNotFoundExceptionDirectoryNotFoundExceptionUnauthorizedAccessExceptionIOExceptionDriveNotFoundExceptionOperationCanceledExceptionNotSupportedExceptionInvalidOperationExceptionNullReferenceExceptionSecurityExceptionNotImplementedExceptionCultureNotFoundExceptionMissingManifestResourceExceptionObjectDisposedExceptionAbandonedMutexExceptionOverflowExceptionWin32Exception
-
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.ThrowableArgumentNullExceptionArgumentExceptionArgumentOutOfRangeExceptionFormatExceptionPathTooLongExceptionIndexOutOfRangeExceptionNotSupportedExceptionInvalidOperationExceptionNullReferenceExceptionSecurityExceptionIOExceptionNotImplementedExceptionCultureNotFoundExceptionMissingManifestResourceExceptionObjectDisposedExceptionOverflowExceptionWin32Exception
-
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.ThrowableNotImplementedExceptionArgumentNullExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionNotSupportedExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionMissingManifestResourceExceptionObjectDisposedExceptionFormatExceptionOverflowExceptionIndexOutOfRangeExceptionWin32Exception
-
-
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 classMarshalByRefObject- 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 classMarshalByRefObject- 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 classMarshalByRefObject- 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 classMarshalByRefObject- Returns:
- An
Objectrepresenting the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstancein classMarshalByRefObject
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflectedReturns the instantiated class Type- Specified by:
getJCOTypein interfaceIJCOBridgeReflected- Specified by:
getJCOTypein interfaceISerializable- Overrides:
getJCOTypein classMarshalByRefObject- Returns:
- A
JCTyperepresenting the CLR Type of the instantiated Class
-
cast
public static Icon cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflectedinstance intoIcon, a cast assert is made to check if types are compatible.- Parameters:
from-IJCOBridgeReflectedinstance to be casted- Returns:
Iconinstance- 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.ThrowableArgumentNullExceptionArgumentOutOfRangeExceptionArgumentExceptionInvalidOperationExceptionNotImplementedExceptionCultureNotFoundExceptionIndexOutOfRangeExceptionMissingManifestResourceExceptionObjectDisposedExceptionOutOfMemoryExceptionNotSupportedExceptionNullReferenceExceptionFileNotFoundExceptionDirectoryNotFoundExceptionUnauthorizedAccessExceptionIOExceptionPathTooLongExceptionDriveNotFoundExceptionOperationCanceledExceptionSecurityExceptionOverflowException
-
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.ThrowableArgumentNullExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionNotImplementedExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionMissingManifestResourceExceptionObjectDisposedExceptionIndexOutOfRangeExceptionSecurityExceptionMemberAccessExceptionNullReferenceExceptionUriFormatExceptionOutOfMemoryExceptionPathTooLongExceptionNotSupportedExceptionFileNotFoundExceptionAbandonedMutexException
-
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.ThrowableObjectDisposedExceptionArgumentNullExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionNotImplementedExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionMissingManifestResourceExceptionIndexOutOfRangeExceptionAbandonedMutexExceptionOverflowExceptionWin32Exception
-
Dispose
public void Dispose() throws java.lang.Throwable, ArgumentException, ArgumentNullException- Throws:
java.lang.ThrowableArgumentExceptionArgumentNullException
-
Save
public void Save(Stream outputStream) throws java.lang.Throwable, ObjectDisposedException, ArgumentNullException, ArgumentException
- Throws:
java.lang.ThrowableObjectDisposedExceptionArgumentNullExceptionArgumentException
-
close
public void close() throws java.lang.Exception- Specified by:
closein interfacejava.lang.AutoCloseable- Throws:
java.lang.Exception
-
getHeight
public int getHeight() throws java.lang.Throwable, ObjectDisposedException, ArgumentNullException, ArgumentException- Throws:
java.lang.ThrowableObjectDisposedExceptionArgumentNullExceptionArgumentException
-
getWidth
public int getWidth() throws java.lang.Throwable, ObjectDisposedException, ArgumentNullException, ArgumentException- Throws:
java.lang.ThrowableObjectDisposedExceptionArgumentNullExceptionArgumentException
-
getSize
public Size getSize() throws java.lang.Throwable, ObjectDisposedException, ArgumentNullException, ArgumentException
- Throws:
java.lang.ThrowableObjectDisposedExceptionArgumentNullExceptionArgumentException
-
-