org.apache.batik.css.engine.value

Class RGBColorValue

public class RGBColorValue extends AbstractValue

This class represents RGB colors.
Field Summary
protected Valueblue
The blue component.
protected Valuegreen
The green component.
protected Valuered
The red component.
Constructor Summary
RGBColorValue(Value r, Value g, Value b)
Creates a new RGBColorValue.
Method Summary
ValuegetBlue()
Implements {@link Value#getBlue()}.
StringgetCssText()
A string representation of the current value.
ValuegetGreen()
Implements {@link Value#getGreen()}.
shortgetPrimitiveType()
The type of the value.
ValuegetRed()
Implements {@link Value#getRed()}.
StringtoString()
Returns a printable representation of the color.

Field Detail

blue

protected Value blue
The blue component.

green

protected Value green
The green component.

red

protected Value red
The red component.

Constructor Detail

RGBColorValue

public RGBColorValue(Value r, Value g, Value b)
Creates a new RGBColorValue.

Method Detail

getBlue

public Value getBlue()
Implements {@link Value#getBlue()}.

getCssText

public String getCssText()
A string representation of the current value.

getGreen

public Value getGreen()
Implements {@link Value#getGreen()}.

getPrimitiveType

public short getPrimitiveType()
The type of the value.

getRed

public Value getRed()
Implements {@link Value#getRed()}.

toString

public String toString()
Returns a printable representation of the color.
Copyright B) 2007 Apache Software Foundation. All Rights Reserved.