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 getBlue.
StringgetCssText()
A string representation of the current value.
ValuegetGreen()
Implements getGreen.
shortgetPrimitiveType()
The type of the value.
ValuegetRed()
Implements 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 getBlue.

getCssText

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

getGreen

public Value getGreen()
Implements getGreen.

getPrimitiveType

public short getPrimitiveType()
The type of the value.

getRed

public Value getRed()
Implements getRed.

toString

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