| java.lang.Object com.sun.perseus.j2d.RGB
RGB | public class RGB implements SVGRGBColor,PaintDef,PaintServer(Code) | | Class which defines an Red, Green, Blue value.
version: $Id: RGB.java,v 1.3 2006/04/21 06:35:24 st125089 Exp $ |
Constructor Summary | |
public | RGB(int r, int g, int b) Constructs an RGB with the red, green,
and blue values. | public | RGB(int a, int r, int g, int b) Constructs an RGB with the alpha, red, green,
and blue values. |
black | final public static RGB black(Code) | | Predefined Colors
|
rgb | int rgb(Code) | | The internal RGB value.
|
RGB | public RGB(int r, int g, int b)(Code) | | Constructs an RGB with the red, green,
and blue values.
Parameters: r - red component value Parameters: g - green component value Parameters: b - blue component value |
RGB | public RGB(int a, int r, int g, int b)(Code) | | Constructs an RGB with the alpha, red, green,
and blue values.
Parameters: a - alpha component value Parameters: r - red component value Parameters: g - green component value Parameters: b - blue component value |
dispose | public void dispose()(Code) | | Called when the PaintServer is no longer used
|
getAlpha | public int getAlpha()(Code) | | Returns the alpha component of the SVGRGBColor.
the alpha component. |
getBlue | public int getBlue()(Code) | | |
getGreen | public int getGreen()(Code) | | |
getPaintDef | public PaintDef getPaintDef()(Code) | | the PaintDef generated by the server. |
getRed | public int getRed()(Code) | | |
setPaint | public void setPaint(PiscesRenderGraphics rg, PiscesRenderer pr, int paintOpacity)(Code) | | Sets the paint on a PiscesRender.
Parameters: rg - the RenderGraphics on requesting the paint to be set. Parameters: renderer - the PiscesRender on which to set the paint. Parameters: paintOpacity - additional paint opacity. |
setPaintTarget | public void setPaintTarget(String paintType, PaintTarget paintTarget)(Code) | | Parameters: paintType - a key that the PaintTarget can use to characterize its interest in the PaintServer. For example, a PaintTarget may be interested in the Paint both for stroking and filling purposes. Parameters: paintTarget - the PaintTarget listening to changes to the paint generated by this PaintServer. |
toString | public String toString()(Code) | | this RGB color's values in the format 'rgb(r,g,b)' |
|
|