PDF Clown
0.1.2

org.pdfclown.documents.contents.colorSpaces
Class LeveledColor

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
All Implemented Interfaces:
Cloneable, IPdfObjectWrapper
Direct Known Subclasses:
CalGrayColor, CalRGBColor, DeviceColor, DeviceNColor, LabColor, SeparationColor

public abstract class LeveledColor
extends Color<PdfArray>

Color value defined by numeric-level components.

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

Constructor Summary
protected LeveledColor(ColorSpace<?> colorSpace, PdfDirectObject baseObject)
           
 
Method Summary
 boolean equals(Object object)
           
 List<PdfDirectObject> getComponents()
          Gets the components defining this color value.
protected  double getComponentValue(int index)
          Gets the specified color component.
 int hashCode()
           
protected  void setComponentValue(int index, double value)
           
 
Methods inherited from class org.pdfclown.documents.contents.colorSpaces.Color
getColorSpace, normalizeComponent
 
Methods inherited from class org.pdfclown.objects.PdfObjectWrapper
checkCompatibility, clone, 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
 

Constructor Detail

LeveledColor

protected LeveledColor(ColorSpace<?> colorSpace,
                       PdfDirectObject baseObject)
Method Detail

equals

public final boolean equals(Object object)
Overrides:
equals in class PdfObjectWrapper<PdfArray>

getComponents

public final List<PdfDirectObject> getComponents()
Description copied from class: Color
Gets the components defining this color value.

Specified by:
getComponents in class Color<PdfArray>

hashCode

public final int hashCode()
Overrides:
hashCode in class Object

getComponentValue

protected final double getComponentValue(int index)
Gets the specified color component.

Parameters:
index - Component index.

setComponentValue

protected final void setComponentValue(int index,
                                       double value)
See Also:
getComponentValue(int)

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.