org.apache.batik.css.value
Class ColorFactory.SimpleRGBColorFactory

java.lang.Object
  |
  +--org.apache.batik.css.value.ColorFactory.SimpleRGBColorFactory
All Implemented Interfaces:
ColorFactory.RGBColorFactory
Enclosing class:
ColorFactory

protected class ColorFactory.SimpleRGBColorFactory
extends java.lang.Object
implements ColorFactory.RGBColorFactory

The simple rgb color factory.


Field Summary
protected  float blue
          The blue component.
protected  float green
          The green component.
protected  float red
          The red component.
 
Constructor Summary
ColorFactory.SimpleRGBColorFactory(float r, float g, float b)
          Creates a new factory.
 
Method Summary
 ImmutableValue create()
          Creates the color.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

red

protected float red
The red component.

green

protected float green
The green component.

blue

protected float blue
The blue component.
Constructor Detail

ColorFactory.SimpleRGBColorFactory

public ColorFactory.SimpleRGBColorFactory(float r,
                                          float g,
                                          float b)
Creates a new factory.
Method Detail

create

public ImmutableValue create()
Creates the color.
Specified by:
create in interface ColorFactory.RGBColorFactory


Copyright © 2001 Apache Software Foundation. All Rights Reserved.