com.itextpdf.text.pdf
Class ShadingColor

java.lang.Object
  extended by com.itextpdf.text.BaseColor
      extended by com.itextpdf.text.pdf.ExtendedColor
          extended by com.itextpdf.text.pdf.ShadingColor

public class ShadingColor
extends ExtendedColor

Implements a shading pattern as a Color.

Author:
Paulo Soares

Field Summary
private static long serialVersionUID
           
(package private)  PdfShadingPattern shadingPattern
           
 
Fields inherited from class com.itextpdf.text.pdf.ExtendedColor
type, TYPE_CMYK, TYPE_GRAY, TYPE_PATTERN, TYPE_RGB, TYPE_SEPARATION, TYPE_SHADING
 
Fields inherited from class com.itextpdf.text.BaseColor
BLACK, BLUE, CYAN, DARK_GRAY, GRAY, GREEN, LIGHT_GRAY, MAGENTA, ORANGE, PINK, RED, WHITE, YELLOW
 
Constructor Summary
ShadingColor(PdfShadingPattern shadingPattern)
          Creates a shading color.
 
Method Summary
 boolean equals(Object obj)
           
 PdfShadingPattern getPdfShadingPattern()
          Gets the shading pattern.
 int hashCode()
           
 
Methods inherited from class com.itextpdf.text.pdf.ExtendedColor
getType, getType, normalize
 
Methods inherited from class com.itextpdf.text.BaseColor
brighter, darker, getAlpha, getBlue, getGreen, getRed, getRGB
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

shadingPattern

PdfShadingPattern shadingPattern
Constructor Detail

ShadingColor

public ShadingColor(PdfShadingPattern shadingPattern)
Creates a shading color.

Parameters:
shadingPattern -
Method Detail

getPdfShadingPattern

public PdfShadingPattern getPdfShadingPattern()
Gets the shading pattern.

Returns:
a shading pattern.

equals

public boolean equals(Object obj)
Overrides:
equals in class BaseColor

hashCode

public int hashCode()
Overrides:
hashCode in class BaseColor

Hosted by Hostbasket