org.apache.fop.render.afp
Class AFPFontColor

java.lang.Object
  extended byorg.apache.fop.render.afp.AFPFontColor

public class AFPFontColor
extends java.lang.Object

AFP only supports very basic colours and this object provides a simple bean for the colour attributes.


Constructor Summary
AFPFontColor(float red, float green, float blue)
          Constructor for the AFPColor Object
 
Method Summary
 boolean equals(java.lang.Object obj)
          Checks whether this object is equal to the parameter passed as an argument.
 float getBlue()
          Returns the blue attribute
 float getGreen()
          Returns the green attribute
 float getRed()
          Returns the red attribute
 void setBlue(float blue)
          Sets the blue attribute
 void setGeen(float green)
          Sets the green attribute
 void setRed(float red)
          Sets the red attribute
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AFPFontColor

public AFPFontColor(float red,
                    float green,
                    float blue)
Constructor for the AFPColor Object

Method Detail

getBlue

public float getBlue()
Returns the blue attribute

Returns:
float

getGreen

public float getGreen()
Returns the green attribute

Returns:
float

getRed

public float getRed()
Returns the red attribute

Returns:
float

setBlue

public void setBlue(float blue)
Sets the blue attribute

Parameters:
blue - The blue value to set

setGeen

public void setGeen(float green)
Sets the green attribute

Parameters:
green - The green value to set

setRed

public void setRed(float red)
Sets the red attribute

Parameters:
red - The red value to set

equals

public boolean equals(java.lang.Object obj)
Checks whether this object is equal to the parameter passed as an argument. If the parameter is an instance of AFPColor then the value are compared, otherwise the generalized equals method is invoked on the parent class.

Parameters:
obj - the object to compare
Returns:
boolean true if the object is equal