PDF Clown
0.1.2

org.pdfclown.documents.contents.colorSpaces
Class DeviceCMYKColor

java.lang.Object
  extended by org.pdfclown.objects.PdfObjectWrapper<TDataObject>
      extended by org.pdfclown.documents.contents.colorSpaces.Color<PdfArray>
          extended by org.pdfclown.documents.contents.colorSpaces.LeveledColor
              extended by org.pdfclown.documents.contents.colorSpaces.DeviceColor
                  extended by org.pdfclown.documents.contents.colorSpaces.DeviceCMYKColor
All Implemented Interfaces:
Cloneable, IPdfObjectWrapper

@PDF(value=PDF11)
public final class DeviceCMYKColor
extends DeviceColor

Device Cyan-Magenta-Yellow-Key color value [PDF:1.6:4.5.3].

The 'Key' component is renamed 'Black' to avoid semantic ambiguities.

Version:
0.1.2, 02/04/12
Author:
Stefano Chizzolini (http://www.stefanochizzolini.it)

Field Summary
static DeviceCMYKColor Black
           
static DeviceCMYKColor Default
           
static DeviceCMYKColor White
           
 
Constructor Summary
DeviceCMYKColor(double c, double m, double y, double k)
           
 
Method Summary
 Object clone(Document context)
          Gets a clone of the object, registered inside the given document context.
static DeviceCMYKColor get(PdfArray components)
          Gets the color corresponding to the specified components.
 double getC()
          Gets the cyan component.
 double getK()
          Gets the black (key) component.
 double getM()
          Gets the magenta component.
 double getY()
          Gets the yellow component.
 void setC(double value)
           
 void setK(double value)
           
 void setM(double value)
           
 void setY(double value)
           
 
Methods inherited from class org.pdfclown.documents.contents.colorSpaces.LeveledColor
equals, getComponents, getComponentValue, hashCode, setComponentValue
 
Methods inherited from class org.pdfclown.documents.contents.colorSpaces.Color
getColorSpace, normalizeComponent
 
Methods inherited from class org.pdfclown.objects.PdfObjectWrapper
checkCompatibility, delete, exists, getBaseDataObject, getBaseObject, getBaseObject, getContainer, getDataContainer, getDocument, getFile, getMetadata, retrieveName, retrieveNamedBaseObject, setBaseObject, setMetadata
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

Black

public static final DeviceCMYKColor Black

White

public static final DeviceCMYKColor White

Default

public static final DeviceCMYKColor Default
Constructor Detail

DeviceCMYKColor

public DeviceCMYKColor(double c,
                       double m,
                       double y,
                       double k)
Method Detail

get

public static DeviceCMYKColor get(PdfArray components)
Gets the color corresponding to the specified components.

Parameters:
components - Color components to convert.
Since:
0.1.0

clone

public Object clone(Document context)
Description copied from class: PdfObjectWrapper
Gets a clone of the object, registered inside the given document context.

Overrides:
clone in class PdfObjectWrapper<PdfArray>
Parameters:
context - Which document the clone has to be registered in.

getC

public double getC()
Gets the cyan component.


getK

public double getK()
Gets the black (key) component.


getM

public double getM()
Gets the magenta component.


getY

public double getY()
Gets the yellow component.


setC

public void setC(double value)
See Also:
getC()

setK

public void setK(double value)
See Also:
getK()

setM

public void setM(double value)
See Also:
getM()

setY

public void setY(double value)
See Also:
getY()

PDF Clown
0.1.2

Project home page

Copyright © 2006-2013 Stefano Chizzolini. Some Rights Reserved.
This documentation is available under the terms of the GNU Free Documentation License.