APIdia Launch Partner
Top Description Fields Constructors Methods
sun.java2d.xr

public final Class XRColor

extends Object
Class Inheritance
Imports
java.awt.*

XRender color class.
Author
Clemens Eisserer

Field Summary

Modifier and TypeField and Description
pack-priv int
pack-priv int
public static final XRColor
pack-priv int
public static final XRColor
pack-priv int

Constructor Summary

AccessConstructor and Description
public
public
XRColor(int alpha, int red, int green, int blue)

public
XRColor(Color color)

Method Summary

Modifier and TypeMethod and Description
public static int[]
ARGBPrePixelToXRColors(int[] pixels)

public static int
byteToXRColorValue(int byteValue)

public int
public int
public int
public int
public void
setAlpha(int alpha)

public void
public void
setColorValues(int pixel)

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

alphaback to summary
pack-priv int alpha
blueback to summary
pack-priv int blue
FULL_ALPHAback to summary
public static final XRColor FULL_ALPHA
greenback to summary
pack-priv int green
NO_ALPHAback to summary
public static final XRColor NO_ALPHA
redback to summary
pack-priv int red

Constructor Detail

XRColorback to summary
public XRColor()
XRColorback to summary
public XRColor(int alpha, int red, int green, int blue)
XRColorback to summary
public XRColor(Color color)

Method Detail

ARGBPrePixelToXRColorsback to summary
public static int[] ARGBPrePixelToXRColors(int[] pixels)
byteToXRColorValueback to summary
public static int byteToXRColorValue(int byteValue)
getAlphaback to summary
public int getAlpha()
getBlueback to summary
public int getBlue()
getGreenback to summary
public int getGreen()
getRedback to summary
public int getRed()
setAlphaback to summary
public void setAlpha(int alpha)
setColorValuesback to summary
public void setColorValues(Color color)
setColorValuesback to summary
public void setColorValues(int pixel)
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Annotations
@Override