|
fop 1.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Color
org.apache.xmlgraphics.java2d.color.ColorWithAlternatives
org.apache.fop.util.ColorWithFallback
public class ColorWithFallback
This class is a Color subclass adding a fallback color that FOP uses to re-serialize
color specifications as textual functions. The fallback is otherwise not used in producing
output formats.
| Field Summary |
|---|
| Fields inherited from class java.awt.Color |
|---|
black, BLACK, blue, BLUE, cyan, CYAN, DARK_GRAY, darkGray, gray, GRAY, green, GREEN, LIGHT_GRAY, lightGray, magenta, MAGENTA, orange, ORANGE, pink, PINK, red, RED, white, WHITE, yellow, YELLOW |
| Fields inherited from interface java.awt.Transparency |
|---|
BITMASK, OPAQUE, TRANSLUCENT |
| Constructor Summary | |
|---|---|
ColorWithFallback(java.awt.Color color,
java.awt.Color fallback)
Copy constructor adding a fallback color. |
|
ColorWithFallback(java.awt.color.ColorSpace cspace,
float[] components,
float alpha,
java.awt.Color[] alternativeColors,
java.awt.Color fallback)
Creates a new color |
|
| Method Summary | |
|---|---|
java.awt.Color |
getFallbackColor()
Returns the fallback color. |
| Methods inherited from class org.apache.xmlgraphics.java2d.color.ColorWithAlternatives |
|---|
getAlternativeColors, getFirstAlternativeOfType, hasAlternativeColors, hasSameAlternativeColors |
| Methods inherited from class java.awt.Color |
|---|
brighter, createContext, darker, decode, equals, getAlpha, getBlue, getColor, getColor, getColor, getColorComponents, getColorComponents, getColorSpace, getComponents, getComponents, getGreen, getHSBColor, getRed, getRGB, getRGBColorComponents, getRGBComponents, getTransparency, hashCode, HSBtoRGB, RGBtoHSB, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ColorWithFallback(java.awt.color.ColorSpace cspace,
float[] components,
float alpha,
java.awt.Color[] alternativeColors,
java.awt.Color fallback)
cspace - the color space of the primary colorcomponents - the color componentsalpha - the alpha componentalternativeColors - the array of alternative colors if applicable (may be null)fallback - the fallback color (usually an sRGB color)
public ColorWithFallback(java.awt.Color color,
java.awt.Color fallback)
color - the color to be duplicatedfallback - the fallback color (usually an sRGB color)| Method Detail |
|---|
public java.awt.Color getFallbackColor()
|
fop 1.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||