fop 0.92beta

org.apache.fop.datatypes
Interface ColorType

All Known Implementing Classes:
ColorTypeProperty, Trait.Color

public interface ColorType

A colour quantity in XSL.


Method Summary
 float getAlpha()
          Returns the alpha (degree of opaque-ness) component of the color.
 java.awt.Color getAWTColor()
          Returns an AWT instance of this color
 float getBlue()
          Returns the blue component of the color.
 float getGreen()
          Returns the green component of the color.
 float getRed()
          Returns the red component of the color.
 

Method Detail

getBlue

public float getBlue()
Returns the blue component of the color.

Returns:
float a value between 0.0 and 1.0

getGreen

public float getGreen()
Returns the green component of the color.

Returns:
float a value between 0.0 and 1.0

getRed

public float getRed()
Returns the red component of the color.

Returns:
float a value between 0.0 and 1.0

getAlpha

public float getAlpha()
Returns the alpha (degree of opaque-ness) component of the color.

Returns:
float a value between 0.0 (fully transparent) and 1.0 (fully opaque)

getAWTColor

public java.awt.Color getAWTColor()
Returns an AWT instance of this color

Returns:
float the AWT color represented by this ColorType instance

fop 0.92beta

Copyright 1999-2006 The Apache Software Foundation. All Rights Reserved.