Package system.windows.media
Class Color
- java.lang.Object
-
- org.mases.jcobridge.netreflection.NetObject
-
- system.ValueType
-
- system.windows.media.Color
-
- All Implemented Interfaces:
IJCOBridgeReflected,IFormattable
public class Color extends ValueType implements IFormattable
The base .NET class managing System.Windows.Media.Color, PresentationCore, Version=7.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35..NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.Windows.Media.Color
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: PresentationCore, Version=7.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35static java.lang.StringassemblyShortNameAssembly name: PresentationCorestatic java.lang.StringclassNameQualified class name: System.Windows.Media.Colorstatic JCTypeclassTypeThe type managed from JCOBridge.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ColorAdd(Color color1, Color color2)static booleanAreClose(Color color1, Color color2)static Colorcast(IJCOBridgeReflected from)Try to cast theIJCOBridgeReflectedinstance intoColor, a cast assert is made to check if types are compatible.voidClamp()booleanEquals(Color color)static booleanEquals(Color color1, Color color2)static ColorFromArgb(byte a, byte r, byte g, byte b)static ColorFromAValues(Single a, Single[] values, Uri profileUri)static ColorFromRgb(byte r, byte g, byte b)static ColorFromScRgb(Single a, Single r, Single g, Single b)static ColorFromValues(Single[] values, Uri profileUri)bytegetA()bytegetB()ColorContextgetColorContext()bytegetG()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 TypeSingle[]GetNativeColorValues()bytegetR()SinglegetScA()SinglegetScB()SinglegetScG()SinglegetScR()static ColorMultiply(Color color, Single coefficient)voidsetA(byte A)voidsetB(byte B)voidsetG(byte G)voidsetJCOInstance(JCObject instance)voidsetR(byte R)voidsetScA(Single ScA)voidsetScB(Single ScB)voidsetScG(Single ScG)voidsetScR(Single ScR)static ColorSubtract(Color color1, Color color2)java.lang.StringToString(IFormatProvider provider)-
Methods inherited from class org.mases.jcobridge.netreflection.NetObject
Equals, Equals, GetHashCode, GetType, hashCode, toString, ToString
-
Methods inherited from interface system.IFormattable
ToString
-
-
-
-
Field Detail
-
assemblyFullName
public static final java.lang.String assemblyFullName
Fully assembly qualified name: PresentationCore, Version=7.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35- See Also:
- Constant Field Values
-
assemblyShortName
public static final java.lang.String assemblyShortName
Assembly name: PresentationCore- See Also:
- Constant Field Values
-
className
public static final java.lang.String className
Qualified class name: System.Windows.Media.Color- See Also:
- Constant Field Values
-
-
Method Detail
-
getJCOAssemblyName
public java.lang.String getJCOAssemblyName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Assembly name- Specified by:
getJCOAssemblyNamein interfaceIFormattable- Specified by:
getJCOAssemblyNamein interfaceIJCOBridgeReflected- Overrides:
getJCOAssemblyNamein classValueType- 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 interfaceIFormattable- Specified by:
getJCOClassNamein interfaceIJCOBridgeReflected- Overrides:
getJCOClassNamein classValueType- 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 interfaceIFormattable- Specified by:
getJCOObjectNamein interfaceIJCOBridgeReflected- Overrides:
getJCOObjectNamein classValueType- 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 interfaceIFormattable- Specified by:
getJCOInstancein interfaceIJCOBridgeReflected- Overrides:
getJCOInstancein classValueType- Returns:
- An
Objectrepresenting the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstancein classValueType
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflectedReturns the instantiated class Type- Specified by:
getJCOTypein interfaceIFormattable- Specified by:
getJCOTypein interfaceIJCOBridgeReflected- Overrides:
getJCOTypein classValueType- Returns:
- A
JCTyperepresenting the CLR Type of the instantiated Class
-
cast
public static Color cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflectedinstance intoColor, a cast assert is made to check if types are compatible.- Parameters:
from-IJCOBridgeReflectedinstance to be casted- Returns:
Colorinstance- Throws:
java.lang.Throwable- in case of error during cast operation
-
AreClose
public static boolean AreClose(Color color1, Color color2) throws java.lang.Throwable, PlatformNotSupportedException, IndexOutOfRangeException
- Throws:
java.lang.ThrowablePlatformNotSupportedExceptionIndexOutOfRangeException
-
Equals
public static boolean Equals(Color color1, Color color2) throws java.lang.Throwable, PlatformNotSupportedException, IndexOutOfRangeException
- Throws:
java.lang.ThrowablePlatformNotSupportedExceptionIndexOutOfRangeException
-
Equals
public boolean Equals(Color color) throws java.lang.Throwable, PlatformNotSupportedException, IndexOutOfRangeException
- Throws:
java.lang.ThrowablePlatformNotSupportedExceptionIndexOutOfRangeException
-
GetNativeColorValues
public Single[] GetNativeColorValues() throws java.lang.Throwable, PlatformNotSupportedException, ArgumentNullException, ArgumentException, CultureNotFoundException, InvalidOperationException, ObjectDisposedException, IndexOutOfRangeException, OutOfMemoryException, ExternalException, ArgumentOutOfRangeException, NotSupportedException, FormatException
- Throws:
java.lang.ThrowablePlatformNotSupportedExceptionArgumentNullExceptionArgumentExceptionCultureNotFoundExceptionInvalidOperationExceptionObjectDisposedExceptionIndexOutOfRangeExceptionOutOfMemoryExceptionExternalExceptionArgumentOutOfRangeExceptionNotSupportedExceptionFormatException
-
ToString
public java.lang.String ToString(IFormatProvider provider) throws java.lang.Throwable, ArgumentException, PlatformNotSupportedException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, ObjectDisposedException, SecurityException, IOException, UnauthorizedAccessException, UriFormatException, ArrayTypeMismatchException, OutOfMemoryException, FormatException, IndexOutOfRangeException
- Throws:
java.lang.ThrowableArgumentExceptionPlatformNotSupportedExceptionNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionArgumentNullExceptionObjectDisposedExceptionSecurityExceptionIOExceptionUnauthorizedAccessExceptionUriFormatExceptionArrayTypeMismatchExceptionOutOfMemoryExceptionFormatExceptionIndexOutOfRangeException
-
Add
public static Color Add(Color color1, Color color2) throws java.lang.Throwable, PlatformNotSupportedException, IndexOutOfRangeException, ArgumentException, CultureNotFoundException, ArgumentNullException, FormatException, ArgumentOutOfRangeException, NotSupportedException, InvalidOperationException, WebException, Win32Exception, CookieException, IOException, ObjectDisposedException, SecurityException, FileNotFoundException, RankException, ArrayTypeMismatchException, OutOfMemoryException, AccessViolationException
- Throws:
java.lang.ThrowablePlatformNotSupportedExceptionIndexOutOfRangeExceptionArgumentExceptionCultureNotFoundExceptionArgumentNullExceptionFormatExceptionArgumentOutOfRangeExceptionNotSupportedExceptionInvalidOperationExceptionWebExceptionWin32ExceptionCookieExceptionIOExceptionObjectDisposedExceptionSecurityExceptionFileNotFoundExceptionRankExceptionArrayTypeMismatchExceptionOutOfMemoryExceptionAccessViolationException
-
FromArgb
public static Color FromArgb(byte a, byte r, byte g, byte b) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
FromAValues
public static Color FromAValues(Single a, Single[] values, Uri profileUri) throws java.lang.Throwable, ArgumentException, PlatformNotSupportedException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, CultureNotFoundException, IndexOutOfRangeException, WebException, Win32Exception, CookieException, IOException, ObjectDisposedException, SecurityException, FileNotFoundException, OutOfMemoryException, AccessViolationException
- Throws:
java.lang.ThrowableArgumentExceptionPlatformNotSupportedExceptionNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionArgumentNullExceptionCultureNotFoundExceptionIndexOutOfRangeExceptionWebExceptionWin32ExceptionCookieExceptionIOExceptionObjectDisposedExceptionSecurityExceptionFileNotFoundExceptionOutOfMemoryExceptionAccessViolationException
-
FromRgb
public static Color FromRgb(byte r, byte g, byte b) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
FromScRgb
public static Color FromScRgb(Single a, Single r, Single g, Single b) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
FromValues
public static Color FromValues(Single[] values, Uri profileUri) throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentNullException, CultureNotFoundException, InvalidOperationException, ArgumentOutOfRangeException, WebException, Win32Exception, PlatformNotSupportedException, CookieException, IOException, ObjectDisposedException, FileNotFoundException, IndexOutOfRangeException, OutOfMemoryException, AccessViolationException
- Throws:
java.lang.ThrowableNotSupportedExceptionArgumentExceptionArgumentNullExceptionCultureNotFoundExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionWebExceptionWin32ExceptionPlatformNotSupportedExceptionCookieExceptionIOExceptionObjectDisposedExceptionFileNotFoundExceptionIndexOutOfRangeExceptionOutOfMemoryExceptionAccessViolationException
-
Multiply
public static Color Multiply(Color color, Single coefficient) throws java.lang.Throwable, PlatformNotSupportedException, IndexOutOfRangeException, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException, InvalidOperationException, NotSupportedException, WebException, Win32Exception, CookieException, IOException, ObjectDisposedException, FileNotFoundException, RankException, ArrayTypeMismatchException, OutOfMemoryException, AccessViolationException
- Throws:
java.lang.ThrowablePlatformNotSupportedExceptionIndexOutOfRangeExceptionArgumentExceptionArgumentNullExceptionArgumentOutOfRangeExceptionInvalidOperationExceptionNotSupportedExceptionWebExceptionWin32ExceptionCookieExceptionIOExceptionObjectDisposedExceptionFileNotFoundExceptionRankExceptionArrayTypeMismatchExceptionOutOfMemoryExceptionAccessViolationException
-
Subtract
public static Color Subtract(Color color1, Color color2) throws java.lang.Throwable, ArgumentNullException, ArgumentException, ObjectDisposedException, InvalidOperationException, OutOfMemoryException, ExternalException, PlatformNotSupportedException, ArgumentOutOfRangeException, IndexOutOfRangeException, FormatException, NotSupportedException, WebException, Win32Exception, CookieException, IOException, SecurityException, FileNotFoundException, RankException, ArrayTypeMismatchException, AccessViolationException
- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentExceptionObjectDisposedExceptionInvalidOperationExceptionOutOfMemoryExceptionExternalExceptionPlatformNotSupportedExceptionArgumentOutOfRangeExceptionIndexOutOfRangeExceptionFormatExceptionNotSupportedExceptionWebExceptionWin32ExceptionCookieExceptionIOExceptionSecurityExceptionFileNotFoundExceptionRankExceptionArrayTypeMismatchExceptionAccessViolationException
-
Clamp
public void Clamp() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
getA
public byte getA() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
setA
public void setA(byte A) throws java.lang.Throwable- Throws:
java.lang.Throwable
-
getB
public byte getB() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
setB
public void setB(byte B) throws java.lang.Throwable, ArgumentNullException, ArgumentException, CultureNotFoundException, PlatformNotSupportedException, IndexOutOfRangeException, OutOfMemoryException, ExternalException, InvalidOperationException, ArgumentOutOfRangeException, ArrayTypeMismatchException, NotSupportedException, FormatException- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentExceptionCultureNotFoundExceptionPlatformNotSupportedExceptionIndexOutOfRangeExceptionOutOfMemoryExceptionExternalExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionArrayTypeMismatchExceptionNotSupportedExceptionFormatException
-
getG
public byte getG() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
setG
public void setG(byte G) throws java.lang.Throwable, ArgumentNullException, ArgumentException, CultureNotFoundException, PlatformNotSupportedException, IndexOutOfRangeException, OutOfMemoryException, ExternalException, InvalidOperationException, ArgumentOutOfRangeException, ArrayTypeMismatchException, NotSupportedException, FormatException- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentExceptionCultureNotFoundExceptionPlatformNotSupportedExceptionIndexOutOfRangeExceptionOutOfMemoryExceptionExternalExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionArrayTypeMismatchExceptionNotSupportedExceptionFormatException
-
getR
public byte getR() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
setR
public void setR(byte R) throws java.lang.Throwable, ArgumentNullException, ArgumentException, CultureNotFoundException, PlatformNotSupportedException, IndexOutOfRangeException, OutOfMemoryException, ExternalException, InvalidOperationException, ArgumentOutOfRangeException, ArrayTypeMismatchException, NotSupportedException, FormatException- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentExceptionCultureNotFoundExceptionPlatformNotSupportedExceptionIndexOutOfRangeExceptionOutOfMemoryExceptionExternalExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionArrayTypeMismatchExceptionNotSupportedExceptionFormatException
-
getScA
public Single getScA() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setScA
public void setScA(Single ScA) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getScB
public Single getScB() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setScB
public void setScB(Single ScB) throws java.lang.Throwable, ArgumentNullException, ArgumentException, CultureNotFoundException, PlatformNotSupportedException, IndexOutOfRangeException, OutOfMemoryException, ExternalException, InvalidOperationException, ArgumentOutOfRangeException, ArrayTypeMismatchException, NotSupportedException, FormatException
- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentExceptionCultureNotFoundExceptionPlatformNotSupportedExceptionIndexOutOfRangeExceptionOutOfMemoryExceptionExternalExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionArrayTypeMismatchExceptionNotSupportedExceptionFormatException
-
getScG
public Single getScG() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setScG
public void setScG(Single ScG) throws java.lang.Throwable, ArgumentNullException, ArgumentException, CultureNotFoundException, PlatformNotSupportedException, IndexOutOfRangeException, OutOfMemoryException, ExternalException, InvalidOperationException, ArgumentOutOfRangeException, ArrayTypeMismatchException, NotSupportedException, FormatException
- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentExceptionCultureNotFoundExceptionPlatformNotSupportedExceptionIndexOutOfRangeExceptionOutOfMemoryExceptionExternalExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionArrayTypeMismatchExceptionNotSupportedExceptionFormatException
-
getScR
public Single getScR() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setScR
public void setScR(Single ScR) throws java.lang.Throwable, ArgumentNullException, ArgumentException, CultureNotFoundException, PlatformNotSupportedException, IndexOutOfRangeException, OutOfMemoryException, ExternalException, InvalidOperationException, ArgumentOutOfRangeException, ArrayTypeMismatchException, NotSupportedException, FormatException
- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentExceptionCultureNotFoundExceptionPlatformNotSupportedExceptionIndexOutOfRangeExceptionOutOfMemoryExceptionExternalExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionArrayTypeMismatchExceptionNotSupportedExceptionFormatException
-
getColorContext
public ColorContext getColorContext() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
-