DynamicPDF by ceTe Software

com.cete.dynamicpdf
Class CmykColor

java.lang.Object
  |
  +--com.cete.dynamicpdf.Color
        |
        +--com.cete.dynamicpdf.CmykColor

public class CmykColor
extends Color

Class represents a CMYK color.


Constructor Summary
CmykColor(byte cyan, byte magenta, byte yellow, byte black)
          Initializes a new instance of the CmykColor class.
CmykColor(float cyan, float magenta, float yellow, float black)
          Initializes a new instance of the CmykColor class.
 
Method Summary
 void draw(PageWriter writer, Apply apply)
          Draws the color data to the given PageWriter object.
 boolean equals(java.lang.Object obj)
          Tests equality of colors.
 float getC()
          Gets the cyan value.
 float getK()
          Gets the black value.
 float getM()
          Gets the magenta value.
 float getY()
          Gets the yellow value.
 int hashCode()
          Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
 
Methods inherited from class com.cete.dynamicpdf.Color
getAliceBlue, getAntiqueWhite, getAqua, getAquamarine, getAzure, getBeige, getBisque, getBlack, getBlanchedAlmond, getBlue, getBlueViolet, getBrown, getBurlyWood, getCadetBlue, getChartreuse, getChocolate, getCoral, getCornflowerBlue, getCornsilk, getCrimson, getCyan, getDarkBlue, getDarkCyan, getDarkGoldenRod, getDarkGray, getDarkGreen, getDarkKhaki, getDarkMagenta, getDarkOliveGreen, getDarkorange, getDarkOrchid, getDarkRed, getDarkSalmon, getDarkSeaGreen, getDarkSlateBlue, getDarkSlateGray, getDarkTurquoise, getDarkViolet, getDeepPink, getDeepSkyBlue, getDimGray, getDodgerBlue, getFeldspar, getFireBrick, getFloralWhite, getForestGreen, getFuchsia, getGainsboro, getGhostWhite, getGold, getGoldenRod, getGray, getGreen, getGreenYellow, getHoneyDew, getHotPink, getIndianRed, getIndigo, getIvory, getKhaki, getLavender, getLavenderBlush, getLawnGreen, getLemonChiffon, getLightBlue, getLightCoral, getLightCyan, getLightGoldenRodYellow, getLightGreen, getLightGrey, getLightPink, getLightSalmon, getLightSeaGreen, getLightSkyBlue, getLightSlateBlue, getLightSlateGray, getLightSteelBlue, getLightYellow, getLime, getLimeGreen, getLinen, getMagenta, getMaroon, getMediumAquaMarine, getMediumBlue, getMediumOrchid, getMediumPurple, getMediumSeaGreen, getMediumSlateBlue, getMediumSpringGreen, getMediumTurquoise, getMediumVioletRed, getMidnightBlue, getMintCream, getMistyRose, getMoccasin, getNavajoWhite, getNavy, getOldLace, getOlive, getOliveDrab, getOrange, getOrangeRed, getOrchid, getPaleGoldenRod, getPaleGreen, getPaleTurquoise, getPaleVioletRed, getPapayaWhip, getPeachPuff, getPeru, getPink, getPlum, getPowderBlue, getPurple, getRed, getRosyBrown, getRoyalBlue, getSaddleBrown, getSalmon, getSandyBrown, getSeaGreen, getSeaShell, getSienna, getSilver, getSkyBlue, getSlateBlue, getSlateGray, getSnow, getSpringGreen, getSteelBlue, getTan, getTeal, getThistle, getTomato, getTurquoise, getViolet, getVioletRed, getWheat, getWhite, getWhiteSmoke, getYellow, getYellowGreen
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CmykColor

public CmykColor(float cyan,
                 float magenta,
                 float yellow,
                 float black)
Initializes a new instance of the CmykColor class.

Throws:
java.lang.IllegalArgumentException - CMYK values must be from 0.0 to 1.0.
Parameters:
cyan - The cyan intensity.
magenta - The magenta intensity.
yellow - The yellow intensity.
black - The black intensity.
See Also:
CmykColor

CmykColor

public CmykColor(byte cyan,
                 byte magenta,
                 byte yellow,
                 byte black)
Initializes a new instance of the CmykColor class.

Parameters:
cyan - The cyan intensity.
magenta - The magenta intensity.
yellow - The yellow intensity.
black - The black intensity.
See Also:
CmykColor
Method Detail

equals

public boolean equals(java.lang.Object obj)
Tests equality of colors.

Specified by:
equals in class Color
Parameters:
obj - Object to compare to the current Color.
Returns:
true if the two colors are equal.

hashCode

public int hashCode()
Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.

Specified by:
hashCode in class Color
Returns:
A hash code for the current Color object.
See Also:
Color

draw

public void draw(PageWriter writer,
                 Apply apply)
Draws the color data to the given PageWriter object.

Specified by:
draw in class Color
Parameters:
writer - PageWriter object to receive the color data.
apply - Defines how the color is applied.
See Also:
PageWriter

getC

public float getC()
Gets the cyan value.


getM

public float getM()
Gets the magenta value.


getY

public float getY()
Gets the yellow value.


getK

public float getK()
Gets the black value.


DynamicPDF by ceTe Software

API Reference for DynamicPDF™ for Java generated on December 20, 2005
© Copyright 2005, ceTe Software