com.aspose.pdf.elements
Class RgbColorSpace

java.lang.Object
  extended by com.aspose.pdf.elements.Color
      extended by com.aspose.pdf.elements.RgbColorSpace
All Implemented Interfaces:
java.lang.Cloneable

public class RgbColorSpace
extends Color

Represents a Color object that indicates the RGB colorspace.


Field Summary
 
Fields inherited from class com.aspose.pdf.elements.Color
Aqua, Black, Blue, Fuchsia, Gray, Green, Lime, Maroon, Navy, Olive, Purple, Red, Silver, Teal, White, Yellow
 
Constructor Summary
RgbColorSpace(short red, short green, short blue)
          Initializes a Color object that indicates the RGB colorspace.
RgbColorSpace(java.lang.String rgb)
          Initializes a Color object that indicates the RGB colorspace.
 
Method Summary
 java.lang.Object clone()
           
 short getBlueComponent()
          Gets the blue component of RGB color space.
 short getGrennComponent()
          Gets the green component of RGB color space.
 short getRedComponent()
          Gets the red component of RGB color space.
 void setBlueComponent(short blue)
          Sets the blue component of RGB color space.
 void setGrennComponent(short green)
          Sets the green component of RGB color space.
 void setRedComponent(short red)
          Sets the red component of RGB color space.
 
Methods inherited from class com.aspose.pdf.elements.Color
equals, getColor, getRGBComponents
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RgbColorSpace

public RgbColorSpace(short red,
                     short green,
                     short blue)
Initializes a Color object that indicates the RGB colorspace.


RgbColorSpace

public RgbColorSpace(java.lang.String rgb)
Initializes a Color object that indicates the RGB colorspace.

Method Detail

clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Overrides:
clone in class Color
Throws:
java.lang.CloneNotSupportedException
See Also:
Object.clone()

getRedComponent

public short getRedComponent()
Gets the red component of RGB color space.


setRedComponent

public void setRedComponent(short red)
Sets the red component of RGB color space.


getGrennComponent

public short getGrennComponent()
Gets the green component of RGB color space.


setGrennComponent

public void setGrennComponent(short green)
Sets the green component of RGB color space.


getBlueComponent

public short getBlueComponent()
Gets the blue component of RGB color space.


setBlueComponent

public void setBlueComponent(short blue)
Sets the blue component of RGB color space.