Table of Contents

Class Color

Namespace
Java.Awt
Assembly
MASES.JNet.dll
public class Color : JVMBridgeBase<Color>, IDynamicMetaObjectProvider, IJVMBridgeCore, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeDefinition
Inheritance
JVMBridgeBase
JVMBridgeBase<Color>
Color
Implements
IJVMBridgeCore
IJVMBridgeBaseStatic
IJVMBridgeBase
IJVMBridgeDefinition
Derived
Inherited Members
JVMBridgeBase<Color>.IsAssignableFrom(IJavaType)
JVMBridgeBase<Color>.IsAssignableFrom<T>()
JVMBridgeBase<Color>.Execute<T>(params T[])
JVMBridgeBase<Color>.DynBridgeClazz
JVMBridgeBase<Color>.BridgeClazz
JVMBridgeBase.RuntimeClassNameOf<T>()
JVMBridgeBase.ClassNameOf<T>()
JVMBridgeBase.ClassOf<T>()
JVMBridgeBase.WrapsDirect<TNewClass>(IJavaObject)
JVMBridgeBase.Wraps<TNewClass>(IJavaObject)
JVMBridgeBase.Wraps<TNewClass, TReturn>(IJavaObject)
JVMBridgeBase.Wraps<TNewClass, TReturn, TConverter>(IJavaObject)
JVMBridgeBase.MonitorEnter()
JVMBridgeBase.MonitorExit()
JVMBridgeBase.IsInstanceOf(IJavaType)
JVMBridgeBase.IsInstanceOf<T>()
JVMBridgeBase.RuntimeIsInstanceOf<T>()
JVMBridgeBase.CastTo<TNewClass>()
JVMBridgeBase.CastDirect<TNewClass>()
JVMBridgeBase.Dispose()
JVMBridgeBase.ToString()
JVMBridgeBase.GetHashCode()
JVMBridgeBase.Notify()
JVMBridgeBase.NotifyAll()
JVMBridgeBase.Wait()
JVMBridgeBase.DynBridgeInstance
JVMBridgeBase.BridgeInstance
JVMBridgeBase.IsBridgeListener
Extension Methods

Constructors

Color()

Default constructor: even if the corresponding Java class does not have one, it is mandatory for JCOBridge

public Color()

Color(ColorSpace, float[], float)

public Color(ColorSpace arg0, float[] arg1, float arg2)

Parameters

arg0 ColorSpace

ColorSpace

arg1 float[]

float

arg2 float

float

Color(int)

public Color(int arg0)

Parameters

arg0 int

int

Color(int, bool)

public Color(int arg0, bool arg1)

Parameters

arg0 int

int

arg1 bool

bool

Color(int, int, int)

public Color(int arg0, int arg1, int arg2)

Parameters

arg0 int

int

arg1 int

int

arg2 int

int

Color(int, int, int, int)

public Color(int arg0, int arg1, int arg2, int arg3)

Parameters

arg0 int

int

arg1 int

int

arg2 int

int

arg3 int

int

Color(params object[])

Generic constructor: it is useful for JCOBridge when there is a derived class which needs to pass arguments to the highest JVMBridgeBase class

public Color(params object[] args)

Parameters

args object[]

Color(float, float, float)

public Color(float arg0, float arg1, float arg2)

Parameters

arg0 float

float

arg1 float

float

arg2 float

float

Color(float, float, float, float)

public Color(float arg0, float arg1, float arg2, float arg3)

Parameters

arg0 float

float

arg1 float

float

arg2 float

float

arg3 float

float

Properties

Alpha

public int Alpha { get; }

Property Value

int

BLACK

public static Color BLACK { get; }

Property Value

Color

BLUE

public static Color BLUE { get; }

Property Value

Color

Blue

public int Blue { get; }

Property Value

int

BridgeClassName

public override string BridgeClassName { get; }

Property Value

string

CYAN

public static Color CYAN { get; }

Property Value

Color

ColorSpace

public ColorSpace ColorSpace { get; }

Property Value

ColorSpace

DARK_GRAY

public static Color DARK_GRAY { get; }

Property Value

Color

GRAY

public static Color GRAY { get; }

Property Value

Color

GREEN

public static Color GREEN { get; }

Property Value

Color

Green

public int Green { get; }

Property Value

int

IsBridgeAbstract

public override bool IsBridgeAbstract { get; }

Property Value

bool

IsBridgeCloseable

public override bool IsBridgeCloseable { get; }

Property Value

bool

IsBridgeInterface

public override bool IsBridgeInterface { get; }

Property Value

bool

IsBridgeStatic

public override bool IsBridgeStatic { get; }

Property Value

bool

LIGHT_GRAY

public static Color LIGHT_GRAY { get; }

Property Value

Color

MAGENTA

public static Color MAGENTA { get; }

Property Value

Color

ORANGE

public static Color ORANGE { get; }

Property Value

Color

PINK

public static Color PINK { get; }

Property Value

Color

RED

public static Color RED { get; }

Property Value

Color

RGB

public int RGB { get; }

Property Value

int

Red

public int Red { get; }

Property Value

int

Transparency

public int Transparency { get; }

Property Value

int

WHITE

public static Color WHITE { get; }

Property Value

Color

YELLOW

public static Color YELLOW { get; }

Property Value

Color

black

public static Color black { get; }

Property Value

Color

blue

public static Color blue { get; }

Property Value

Color

cyan

public static Color cyan { get; }

Property Value

Color

darkGray

public static Color darkGray { get; }

Property Value

Color

gray

public static Color gray { get; }

Property Value

Color

green

public static Color green { get; }

Property Value

Color

lightGray

public static Color lightGray { get; }

Property Value

Color

magenta

public static Color magenta { get; }

Property Value

Color

orange

public static Color orange { get; }

Property Value

Color

pink

public static Color pink { get; }

Property Value

Color

red

public static Color red { get; }

Property Value

Color

white

public static Color white { get; }

Property Value

Color

yellow

public static Color yellow { get; }

Property Value

Color

Methods

Brighter()

public Color Brighter()

Returns

Color

Color

CreateContext(ColorModel, Rectangle, Rectangle2D, AffineTransform, RenderingHints)

public PaintContext CreateContext(ColorModel arg0, Rectangle arg1, Rectangle2D arg2, AffineTransform arg3, RenderingHints arg4)

Parameters

arg0 ColorModel

ColorModel

arg1 Rectangle

Rectangle

arg2 Rectangle2D

Rectangle2D

arg3 AffineTransform

AffineTransform

arg4 RenderingHints

RenderingHints

Returns

PaintContext

PaintContext

Darker()

public Color Darker()

Returns

Color

Color

Decode(String)

public static Color Decode(String arg0)

Parameters

arg0 String

String

Returns

Color

Color

Exceptions

NumberFormatException

GetColor(String)

public static Color GetColor(String arg0)

Parameters

arg0 String

String

Returns

Color

Color

GetColor(String, Color)

public static Color GetColor(String arg0, Color arg1)

Parameters

arg0 String

String

arg1 Color

Color

Returns

Color

Color

GetColor(String, int)

public static Color GetColor(String arg0, int arg1)

Parameters

arg0 String

String

arg1 int

int

Returns

Color

Color

GetColorComponents(ColorSpace, float[])

public float[] GetColorComponents(ColorSpace arg0, float[] arg1)

Parameters

arg0 ColorSpace

ColorSpace

arg1 float[]

float

Returns

float[]

float

GetColorComponents(float[])

public float[] GetColorComponents(float[] arg0)

Parameters

arg0 float[]

float

Returns

float[]

float

GetComponents(ColorSpace, float[])

public float[] GetComponents(ColorSpace arg0, float[] arg1)

Parameters

arg0 ColorSpace

ColorSpace

arg1 float[]

float

Returns

float[]

float

GetComponents(float[])

public float[] GetComponents(float[] arg0)

Parameters

arg0 float[]

float

Returns

float[]

float

GetHSBColor(float, float, float)

public static Color GetHSBColor(float arg0, float arg1, float arg2)

Parameters

arg0 float

float

arg1 float

float

arg2 float

float

Returns

Color

Color

GetRGBColorComponents(float[])

public float[] GetRGBColorComponents(float[] arg0)

Parameters

arg0 float[]

float

Returns

float[]

float

GetRGBComponents(float[])

public float[] GetRGBComponents(float[] arg0)

Parameters

arg0 float[]

float

Returns

float[]

float

HSBtoRGB(float, float, float)

public static int HSBtoRGB(float arg0, float arg1, float arg2)

Parameters

arg0 float

float

arg1 float

float

arg2 float

float

Returns

int

int

RGBtoHSB(int, int, int, float[])

public static float[] RGBtoHSB(int arg0, int arg1, int arg2, float[] arg3)

Parameters

arg0 int

int

arg1 int

int

arg2 int

int

arg3 float[]

float

Returns

float[]

float

Operators

implicit operator Paint(Color)

Converter from Color to Paint

public static implicit operator Paint(Color t)

Parameters

t Color

Returns

Paint

implicit operator Serializable(Color)

Converter from Color to Serializable

public static implicit operator Serializable(Color t)

Parameters

t Color

Returns

Serializable