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=8.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.String
assemblyFullName
Fully assembly qualified name: PresentationCore, Version=8.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35static java.lang.String
assemblyShortName
Assembly name: PresentationCorestatic java.lang.String
className
Qualified class name: System.Windows.Media.Colorstatic JCType
classType
The type managed from JCOBridge.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Color
Add(Color color1, Color color2)
static boolean
AreClose(Color color1, Color color2)
static Color
cast(IJCOBridgeReflected from)
Try to cast theIJCOBridgeReflected
instance intoColor
, a cast assert is made to check if types are compatible.void
Clamp()
boolean
Equals(Color color)
static boolean
Equals(Color color1, Color color2)
static Color
FromArgb(byte a, byte r, byte g, byte b)
static Color
FromAValues(Single a, Single[] values, Uri profileUri)
static Color
FromRgb(byte r, byte g, byte b)
static Color
FromScRgb(Single a, Single r, Single g, Single b)
static Color
FromValues(Single[] values, Uri profileUri)
byte
getA()
byte
getB()
ColorContext
getColorContext()
byte
getG()
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 TypeSingle[]
GetNativeColorValues()
byte
getR()
Single
getScA()
Single
getScB()
Single
getScG()
Single
getScR()
static Color
Multiply(Color color, Single coefficient)
void
setA(byte A)
void
setB(byte B)
void
setG(byte G)
void
setJCOInstance(JCObject instance)
void
setR(byte R)
void
setScA(Single ScA)
void
setScB(Single ScB)
void
setScG(Single ScG)
void
setScR(Single ScR)
static Color
Subtract(Color color1, Color color2)
java.lang.String
ToString(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=8.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:IJCOBridgeReflected
Returns the reflected Assembly name- Specified by:
getJCOAssemblyName
in interfaceIFormattable
- Specified by:
getJCOAssemblyName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOAssemblyName
in classValueType
- 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 interfaceIFormattable
- Specified by:
getJCOClassName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOClassName
in classValueType
- 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 interfaceIFormattable
- Specified by:
getJCOObjectName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOObjectName
in classValueType
- 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 interfaceIFormattable
- Specified by:
getJCOInstance
in interfaceIJCOBridgeReflected
- Overrides:
getJCOInstance
in classValueType
- Returns:
- An
Object
representing the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstance
in classValueType
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class Type- Specified by:
getJCOType
in interfaceIFormattable
- Specified by:
getJCOType
in interfaceIJCOBridgeReflected
- Overrides:
getJCOType
in classValueType
- Returns:
- A
JCType
representing the CLR Type of the instantiated Class
-
cast
public static Color cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflected
instance intoColor
, a cast assert is made to check if types are compatible.- Parameters:
from
-IJCOBridgeReflected
instance to be casted- Returns:
Color
instance- Throws:
java.lang.Throwable
- in case of error during cast operation
-
AreClose
public static boolean AreClose(Color color1, Color color2) throws java.lang.Throwable, NotSupportedException, PlatformNotSupportedException, IndexOutOfRangeException
- Throws:
java.lang.Throwable
NotSupportedException
PlatformNotSupportedException
IndexOutOfRangeException
-
Equals
public static boolean Equals(Color color1, Color color2) throws java.lang.Throwable, PlatformNotSupportedException, IndexOutOfRangeException
- Throws:
java.lang.Throwable
PlatformNotSupportedException
IndexOutOfRangeException
-
Equals
public boolean Equals(Color color) throws java.lang.Throwable, PlatformNotSupportedException, IndexOutOfRangeException
- Throws:
java.lang.Throwable
PlatformNotSupportedException
IndexOutOfRangeException
-
GetNativeColorValues
public Single[] GetNativeColorValues() throws java.lang.Throwable, PlatformNotSupportedException, ArgumentNullException, ArgumentException, InvalidOperationException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException
-
ToString
public java.lang.String ToString(IFormatProvider provider) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, PlatformNotSupportedException, OverflowException, IndexOutOfRangeException, FormatException, ArgumentNullException, ObjectDisposedException, SecurityException, IOException, UnauthorizedAccessException, UnreachableException, UriFormatException, OutOfMemoryException
- Throws:
java.lang.Throwable
ArgumentException
NotSupportedException
InvalidOperationException
ArgumentOutOfRangeException
PlatformNotSupportedException
OverflowException
IndexOutOfRangeException
FormatException
ArgumentNullException
ObjectDisposedException
SecurityException
IOException
UnauthorizedAccessException
UnreachableException
UriFormatException
OutOfMemoryException
-
Add
public static Color Add(Color color1, Color color2) throws java.lang.Throwable, PlatformNotSupportedException, IndexOutOfRangeException, ArgumentException, InvalidOperationException, ArgumentNullException, ArgumentOutOfRangeException, FormatException, NotSupportedException, OutOfMemoryException, CultureNotFoundException, UnreachableException, WebException, Win32Exception, CookieException, IOException, ObjectDisposedException, SecurityException, UnauthorizedAccessException, FileNotFoundException, RankException, ArrayTypeMismatchException, AccessViolationException
- Throws:
java.lang.Throwable
PlatformNotSupportedException
IndexOutOfRangeException
ArgumentException
InvalidOperationException
ArgumentNullException
ArgumentOutOfRangeException
FormatException
NotSupportedException
OutOfMemoryException
CultureNotFoundException
UnreachableException
WebException
Win32Exception
CookieException
IOException
ObjectDisposedException
SecurityException
UnauthorizedAccessException
FileNotFoundException
RankException
ArrayTypeMismatchException
AccessViolationException
-
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, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, CultureNotFoundException, PlatformNotSupportedException, OutOfMemoryException, WebException, Win32Exception, CookieException, IOException, ObjectDisposedException, SecurityException, UnauthorizedAccessException, FileNotFoundException, IndexOutOfRangeException, AccessViolationException
- Throws:
java.lang.Throwable
ArgumentException
NotSupportedException
InvalidOperationException
ArgumentOutOfRangeException
ArgumentNullException
CultureNotFoundException
PlatformNotSupportedException
OutOfMemoryException
WebException
Win32Exception
CookieException
IOException
ObjectDisposedException
SecurityException
UnauthorizedAccessException
FileNotFoundException
IndexOutOfRangeException
AccessViolationException
-
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, InvalidOperationException, CultureNotFoundException, PlatformNotSupportedException, ArgumentOutOfRangeException, WebException, Win32Exception, CookieException, IOException, ObjectDisposedException, SecurityException, FileNotFoundException, IndexOutOfRangeException, OutOfMemoryException, AccessViolationException
- Throws:
java.lang.Throwable
NotSupportedException
ArgumentException
ArgumentNullException
InvalidOperationException
CultureNotFoundException
PlatformNotSupportedException
ArgumentOutOfRangeException
WebException
Win32Exception
CookieException
IOException
ObjectDisposedException
SecurityException
FileNotFoundException
IndexOutOfRangeException
OutOfMemoryException
AccessViolationException
-
Multiply
public static Color Multiply(Color color, Single coefficient) throws java.lang.Throwable, PlatformNotSupportedException, IndexOutOfRangeException, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException, NotSupportedException, OutOfMemoryException, InvalidOperationException, WebException, Win32Exception, CookieException, IOException, ObjectDisposedException, SecurityException, FileNotFoundException, RankException, ArrayTypeMismatchException, AccessViolationException
- Throws:
java.lang.Throwable
PlatformNotSupportedException
IndexOutOfRangeException
ArgumentException
ArgumentNullException
ArgumentOutOfRangeException
NotSupportedException
OutOfMemoryException
InvalidOperationException
WebException
Win32Exception
CookieException
IOException
ObjectDisposedException
SecurityException
FileNotFoundException
RankException
ArrayTypeMismatchException
AccessViolationException
-
Subtract
public static Color Subtract(Color color1, Color color2) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException, OutOfMemoryException, IndexOutOfRangeException, NotSupportedException, UnreachableException, WebException, Win32Exception, CookieException, IOException, SecurityException, UnauthorizedAccessException, FileNotFoundException, RankException, ArrayTypeMismatchException, AccessViolationException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
PlatformNotSupportedException
InvalidOperationException
ArgumentOutOfRangeException
CultureNotFoundException
ObjectDisposedException
OutOfMemoryException
IndexOutOfRangeException
NotSupportedException
UnreachableException
WebException
Win32Exception
CookieException
IOException
SecurityException
UnauthorizedAccessException
FileNotFoundException
RankException
ArrayTypeMismatchException
AccessViolationException
-
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, PlatformNotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException
-
getG
public byte getG() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setG
public void setG(byte G) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException
-
getR
public byte getR() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setR
public void setR(byte R) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException
-
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, PlatformNotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException
-
getScG
public Single getScG() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setScG
public void setScG(Single ScG) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException
-
getScR
public Single getScR() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setScR
public void setScR(Single ScR) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException
-
getColorContext
public ColorContext getColorContext() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
-